-
Thread
FT800 / FT810 Library
= 1; } if(PrevTag == 10){ rok++; if(rok>99) rok = 19; } if(PrevTag == 15){ if(rok>19)rok--; else rok = 99; } if(PrevTag == 16){ if(miesiac
) x0 -=10; // if(PrevTag == TAG_Y0_MINUS ) y0 -=10; //&& y0 >= 10 if(PrevTag == TAG_Y0_PLUS && y0 < 600) y0 +=10; if(PrevTag == TAG_X1_PLUS && x1 < 1000) x1 +=10; if(PrevTag == TAG_X1_MINUS
-
Thread
Sinus aus PWM - X-Mega Problem
Hier meine ISR: [c] ISR(TCF0_OVF_vect) { //PORTF.OUT ^= (1<<4); // Testpin if(step >= 320) step=0; if(step <= 160) { TCF0.CCA = sinustabelle32MHz[step]; } if(step >= 161) { TCF0.CCB = sinustabelle32MHz[step]; } step++; } [
zu haben!? Warum gerade 321 Werte in der Tabelle? Ist doch unsymmetrisch! Nimm 320 und mach: [c] if(step > 319) step=0; if(step < 160) // 0..159 = 160 { TCF0.CCA = sinustabelle32MHz[step]; } if(step >= 160) // 160... 319 = 160 { TCF0.CCB = sinustabelle32MHz[step
-
Thread
WordClock mit WS2812
Jetzt kann man auch auf den WC24er Zwischenboden eine komplett abdeckende Aluplatte mit der Größe von 310x310mm drauflegen. Okay, das Standardmaß von 300x300mm geht natürlich auch - obwohl es mit der optischen Abdeckung aller Löcher verdammt knapp ist. Nichtsdestotrotz bevorzuge ich die 310x310mm, welche
waren die 310er Platten da.
-
Thread
hsv2rgb 8bit fehlerhaft?
brightness_floor; uint8_t rampdown_adj_with_floor = rampdown_amp_adj + brightness_floor; if( section ) { if( section == 1) { // section 1: 0x40..0x7F rgb[led].r = brightness_floor; rgb[led].g = rampdown_adj_with_floor; rgb[led].b = rampup_adj_with_floor;
brightness_floor; uint8_t rampdown_adj_with_floor = rampdown_amp_adj + brightness_floor; if (section) { if (section == 1) { // section 1: 0x40..0x7F rgb[led].r = brightness_floor; rgb[led].g = rampdown_adj_with_floor; rgb[led].b = rampup_adj_with_floor;
-
Thread
Assembler wieder auf dem Weg nach vorn Gesperrt
Moby A. schrieb im Beitrag #4360121: > IfThen Logik ganz schön komplex werden, Seit wann kann der AVR-Assembler IfThen zur Laufzeit?
Befüllen. Aber dann "schwingt" sich das eben während der ersten BUFLEN Elemente ein... Denn dieses if: >>if(value_cnt == 8){ ist ja nur für den Befüllvorgang nicht erfüllt.
-
Thread
Basic für 80C31
)=G1 : POP G1 : DBY(41H)=G1 : PRINT 100 INPUT "Starting Data Address - ",S : IF S<512.OR.S>0FFFFH THEN 100 110 PRINT : INPUT "Ending Data Address - ",E 120 IF E<S.OR.E>0FFFFH THEN 110 130 PRINT : INPUT "PROM Address - ",P : IF P<8000H.OR.P>0FFFFH THEN 130 140
DBY(25)=G1 200 PRINT : PRINT "Type a CR on the keyboard when ready to program" 220 X=GET : IF X<>0DH THEN 220 230 REM program the EPROM 240 PGM 250 REM see if any errors 260 IF (DBY(30).OR.DBY(31))=0 THEN PRINT "Programming complete." : END 270 PRINT : PRINT "*** Error
-
Thread
ESP-Baseboard auf Proto-Shield
//Rotate LCD TM_ILI9341_Rotate(TM_ILI9341_Orientation_Portrait_2); //Initialize Touch if (TM_STMPE811_Init() != TM_STMPE811_State_Ok) { TM_ILI9341_Puts(20, 20, "STMPE811 Error", &TM_Font_11x18, ILI9341_COLOR_ORANGE, ILI9341_COLOR_BLACK); while (1); } //Select touch
"Press on LCD", &TM_Font_11x18, ILI9341_COLOR_ORANGE, ILI9341_COLOR_BLACK); TM_ILI9341_Puts(93, 310, "stm32f4-discovery.com", &TM_Font_7x10, ILI9341_COLOR_GREEN, ILI9341_COLOR_BLACK); while (1) { if (TM_STMPE811_ReadTouch(&touchData) == TM_STMPE811_State_Pressed) { //Touch valid
-
Thread
Radio Projekt mit Fehler, brauche Hilfe :(
[i]=RDS[i]; } Tft.fillScreen(100,150,15, 310,0x0000); Tft.drawString(RDS,100, 255,6,YELLOW); Serial.println(RDS); } } void DoTime() { if (millis() > LastTimeUpdate+1000) { LastTimeUpdate=millis(
if (LastMinute != clock.minute) { if (clock.minute < 10) sprintf(MinuteChars,"0%d:",clock.minute); else if (clock.minute >=10 && clock.minute <= 60) sprintf(MinuteChars,"%d:"
-
Thread
Timer geschickter programmieren
100) #define ZYKLUS 10 void task1(uint16_t intervall) { static uint16_t warte = 0; if(warte == 0) { warte = intervall; return; } if (--warte > 0) { return; } // mach deinen Job } void main() { while (1) { do {
AddDelayedEvent(mache_irgendwas,600); hier tut er 'irgendwas'... } void DispatchEvent(EVENT aEvent) { if (aEvent==mache_irgendwas) MacheIrgendwas(); ... } ..main(..) { InitSysTeck(); AddDelayedEvent(mache_irgendwas,600); immerzu: if (EventAvail()) DispatchEvent(GetEvent()); KümmereDichUmSonstwas
-
Thread
Frage zum Frequenzmultiplex bei Modulation Gesperrt
Wenn ich beispielsweise auf einen Träger mehrere Schwingungen draufklatsche und diese nun auf der anderen Seite empfangen will, wie entscheide ich genau, welches Signal der auf dem Träger ist empfangen wird? Hat man dafür einen Tiefpassfilter der mit einer Abstimmdiode oder veränderbaren Kapazität die Grenzfrequenz variiert? Vielen Dank im Voraus!
-
Thread
GCC optimiert 32bit Bitoperationen schlecht/gar nicht?
\ do { \ if (ai_##OP##_##N (X) != ni_##OP##_##N (X)) __builtin_abort(); \ if (ai_##OP##_##N (X) != ni_f##OP##_##N (X)) __builtin_abort(); \ if (ai_##OP##_##N (X) != ni_0##OP##_##N (0, X)) __builtin_abort
avr_rtx_costs_1() case ASHIFT: [...] case QImode: [...] val = INTVAL (XEXP (x, 1)); [...] else if (val >= 0 && val <= 7) *total = COSTS_N_INSNS (val); [/c] Hier fangen aber die Probleme an: TARGET_RTX_COSTS wird in einem anderen Kontext (und viel früher) aufgerufen als die Erzeugung des Codes
-
Thread
flash-Fehler mit ATtiny2313, compile ok
m.n. schrieb im Beitrag #4065220: > Oft setze > ich auch in if-Abfragen ganz viele Klammern, Da schaden sie ja nicht, bis auf Sonderfälle, wo man ggfs. sinnige Kompilerwarnings unterdrückt. z.B: > if (a=1) { vs. > if ((a=1)) { machen dasselbe. Wenn
also wieder eine Fließkommazahl benutzen. Ich habe jetzt die Stellen-Anzahl mittels eines else-if-Konstrukts ohne floats ermittelt: if(zahl==0)...else if(zahl>=1 && zahl<=9)... etc. Auf diese Weise kann ich aber nur die Stellen-Anzahl von Zahlen bis 65.535 (mit uint16_t zahl) oder bis 4.294.967.295
-
Artikel
P89626
-x dd if=/dev/${mtd} of=${outfile} ) if [ $? == 0 ]; then ( set -x md5sum ${outfile} > ${outfile}.md5 cat ${outfile}.md5 ) fi fi done nanddump. Hier ein Script, welches nanddump von Jeff Doozan benutzt (siehe
_" mtd_info=`cat /proc/mtd | grep ${mtd}` if [ -z "${mtd_info}" ]; then echo "Skip ${mtd} because it's not in /proc/mtd" else echo "Backup ${mtd_info}" prefix=${dest}/${mtd} backup=${prefix}.backup oob=${backup}.oob if [ -f ${backup} ]; then echo
-
Thread
LON Bus Windhager mitlesen/steuern
}if ($json->entries[$i]->OID == $OID_HKP_HK2) { $HKP_HK2 = $json->entries[$i]->value; } if ($json->entries[$i]->OID == $OID_WW_Ladepumpe) { $WW_Ladepumpe = $json->entries[$i]->value; } if
the Application, as specified by the first byte of the APDU: 00pxxxxx The <p> field is set to one if the operation succeeded, or zero if it failed. [/code]
-
Thread
AVR-Mikrocontrollertechnik-Kursus in Assembler besprechung Gesperrt
Fehlermeldung vom AVR-Studio ( siehe Pfeil ). Was mache ich falsch ? [avrasm] ; .include "Header_A310_BS.h" ;Label und Werte Zuweisungen .include "Hardware_A310_BS.h" ;Hardware Label Zuweisungen ; ;Einbinden der Controllerspezifischen Definitionsdatei ; .NOLIST ;List-Output
als das H-Nibble ? > > _*H-Flag*_ : > /Rd3 und K3 oder K3 und R3 oder R3 und /Rd3 > Set if there was a borrow from bit 3; cleared otherwise. > > _*C-Flag*_ : >/Rd7 und K7 oder K7 und R7 oder R7 und /Rd7 > Set if the absolute value of K is > larger than the absolute value of
-
Thread
Minutengenaue 24 Stunden-Wortuhr - wer will mitbauen?
if (b < 11) return 7; if (b < 15) return 8; if (b < 19) return 9; if (b < 23) return 10; if (b < 29) return 11; if (b < 35) return 12; if (b < 41) return 13; if (b < 48) return 14; if (b < 56) return 15; if (b < 64) return 16; if (b < 72) return 17; if (b < 82) return 18; if (b < 92) return 19; if (b < 102) return 20;
-
Thread
WiFi Relais mit ESP8266 ESP-01 Modul (Bascom)
Not-Abschaltung If Pina.7 = 0 Then Waitms 50 If Pina.7 = 0 Then Reset Porta.5 Reset Portb.2 If Savevalues = 1 Then Eepromchar = 0
If Uartchar > 0 Then Uartstring = Uartstring + Chr(uartchar) End If Loop Until Len(uartstring) > 12 Uartstring = Ucase(uartstring) If Instr(uartstring , "REL=?") > 0 Then
-
Thread
TWI mit USI nach AN-310
Oszi ersichtlich nicht die im define angegebene 0x88 übertragen wird - habe ich bei der lib nach AVR-310 etwas verpasst? Klaus.
der Spike genau liegt kann ich an Hand des Bildes nicht entscheiden. Hast du dir mal 'Atmel AVR310: Using the USI Module as a I2C Master http://www.atmel.com/Images/Atmel-2561-Using-the-USI-Module-as-a-I2C-Master_AP-Note_AVR310.pdf http://www.atmel.com/images/Atmel-2561-Using-the-USI-Module-as-a-I2C-Master_AP-Note_AVR310
-
Thread
PIC32 Programmierung
Summenfehlerwort Internerfehler break; } if(ucData==0xFF){ //nur beim Hochlaufbit Summenfehler Bit 7 ucData=0; return; } if(ucAnzsperr==0){ //Ausgabe wird durch Programm gesperrt ucData =ucErrTab[0]; if(ucData=!0){ //Fehler vorhanden? if(ucErr==0){ //Ausgabe nur wenn noch keine Fehler aktiv war ucErr=0xFF; PORTClearBits(bCcpuErr); //Erroranzeige setzen }
-
Thread
Mein erstes Selbstbau Funkgerät
Kajman-Schemat.jpg http://www.qsl.net/va3iul/Homebrew_RF_Circuit_Design_Ideas/Transceiver_SSB_9MHz-IF.gif Die Frage ist aber, ob Du Dir das antun möchtest. Diese beiden Schaltungen haben sicher nicht auf Anhieb funktioniert. An sowas tüftelt man ne ganze Weile rum. Zwischen LSB und USB kann man
CP800) heutzutage recht schwer beschaffbar sind, kann man sich mit der Parallelschaltung von zwei J310s behelfen. Das Breitbandlastnetzwerk schließt den Mischer durch einen Schaltungskniff breitbandig ab. Das funktioniert so, dass im Ausgangskreis zum Quarzfilter hin ein Serien Schwingkreis liegt
-
Thread
bare metal m68k-elf.gcc.
char *s; register int t, neg = 0, pc = 0; register unsigned int u = i; if (i == 0) { print_buf[0] = '0'; print_buf[1] = '\0'; return prints (out, print_buf, width, pad); } putcr('1'); if (sg && b == 10
) 11 abortstart: mov.l &SYSRAMLOC+0x1b00,%d0 12 #if(DEVICE>=68010) 13 mov.l &SYSRAMLOC+0x1000,%d1 14 #endif 15 #if(DEVICE>=68020) 16
-
Thread
Thermomix Rezeptchips
not know if this is the correct database layout. Can anyone here, that already decrypted a recipe chip, confirm if this is the correct database layout?
appreciated if you join and probably boost progress :)
-
Thread
Sammelbestellung Transistortester IV
frecher werden :D > > Man kann sie ja etwas suchen lassen :D > > Grüße > Moritz *schalalaa*, if You don't want to help, be quiet please ! Moritz, I look on github https://github.com/maugsburger/avr-component-tester and I can't find :(. There is schema, board, but no source version of program
Beitrag #3843654: > Eine Frage noch,was für Lot verwendest Du ? Reichelt "LÖTZINN 32-0,525" bei 310°C
-
Thread
Retro Fieber: Z80 oder 68000 ?
. (Deshalb klammere ich immer alles, auch wenn es nur ein Statement unter einem if ist).
search_code_end() { _Bool hit; uint16_t i; i = 0; hit = false; do { if (ram[i]=='$') if (ram[i+1]=='E') if (ram[i+2]=='O') if (ram[i+3]=='C') hit = true; i++; } while (!hit || (i > 0xF000));
-
Thread
Spinnt der Compiler?
weiter arbeiten. Evtl ändert sich (z.B. auch durch prellen) der Zustand der Taste nachdem du in das > if((Taste == up) || (Taste == down)) eingetaucht bist und ist dann bei > if(Taste == up) Nr--; > if(Taste == down) Nr++; schon wieder anderst.
****************** unsigned char get_key(void) { unsigned short int adc_wert = get_adc(2); if((adc_wert >= 140) && (adc_wert <= 200)) return(links); if((adc_wert >= 310) && (adc_wert <= 370)) return(down); if((adc_wert >= 480) && (adc_wert <= 540)) return(rechts); if((adc_wert >= 650
-
Thread
Probleme mit Signalgenerator
(newindex,12) & x"00000"; end if; end if; elsif control = x"00000001" then if y < x"00000000" then z <= Z00; if newindex = 0 then phase <= (phase + microsteps); elsif newindex
(newindex,12) & x"00000"; end if; end if; elsif control = x"00000001" then if y < x"00000000" then z <= Z00; if newindex = 0 then phase <= (phase + microsteps); elsif newindex
-
Thread
via Batchfile- älteste Datei in Verzeichnis (mit Unterverzeichnissen) ermitteln
| awk 'BEGIN{FS="\"";olddat=99999999999999}; /^\"\./{actdir=substr($2,2)}; /^-/{split($1,tmp," ");if (tmp[6]<olddat) {olddat=tmp[6];oldfile=actdir "/" $2}}; END{print olddat " \"" ENVIRON["PWD"] oldfile "\""}' 20000126103346 "/cygdrive/f/xxx/test Ordner/irg4p h50s.spi" real 0m0.310s user
= (unsigned long) 0; else if ( strcmp(argv[1], "-a") == 0 ) cmp = min_atime, result.atime = (unsigned long) -1; else if ( strcmp(argv[1], "-A") == 0 ) cmp = max_atime, result.atime = (unsigned long) 0; else if (
-
Thread
Wie DCF77 mit PRN im Eigenbau verwenden?
Filter gehen und auf die bins auf 50-80 reduzieren und dies mal testen. Derzeit: Jede 1ms: if(sample_dcf_pin()) inp++; // averaging Jede 10ms: if(inp<=10/2) inp=0; idx++; if(idx>=100) idx=0; // average > samples/2 ? if(inp) { if (bin[idx]<300) bin[idx]++; } // bound add/sub else { if (bin[idx]) bin[idx]--; } Jede max_val-noise_val<noise_thresh oder 550ms nach max_id Errechnen von max_val, max_id (bin) und noise_val. Ausrechnen, ob es ein kurzer ,langer Impuls, sync_mark
-
Thread
Mikrocontroller Rechenleistung reicht für aktuelles Projekt nicht?
(uint64_t square64) { if(square64<65536ULL) { return sqrt16_floorC(square64); } else if(square64<4294967296ULL) { return sqrt32_floorC(square64); } else { return sqrt64_floorC(square64);
(uint64_t square64) { if(square64<65536ULL) { return sqrt16_floorC(square64); } else if(square64<4294967296ULL) { return sqrt32_floorC(square64); } else { return sqrt64_floorC(square64);
-
Thread
LED Tisch mit Berührungs-/Gegenstandserkennung
durchaus Phototransistoren, die relativ selektiv sind was die > Wellenlänge angeht. Z.B. Osram SFH 310 FA oder 309 FA (andere > Wellenlänge) oder auch Vishay TEFT4300 (sind jetzt alles TH Bauteile). Ich hatte darüber nachgedacht die Frequenz von IR-Fernbedienungen zu verwenden, also um die 40 Khz
avr-hardware-design-considerations_application-note_avr042.pdf Shared use of SPI programming lines If additional devices are connected to the ISP lines, the programmer must be protected from any device, other than the AVR, that may try to drive the lines. This is especially important with the SPI bus
-
Thread
Wofür gilt der sichere Vcc-Bereich beim Atmega328
Das habe ich auch gelesen, aber an diversen Stellen gibt es eine Fußnote die da lautet: If 8 MHz frequency exceeds the specification of the device (depends on VCC), the CKDIV8 Fuse can be programmed in order to divide the internal frequency by 8. It must be ensured that the resulting divided
Hallo Chefkoch! Steht im ausführlichen Datenblatt auf Seite 310 (Speed Grades). Bei 3.3 V geht der Mega328 bis 13.33.. Mhz.
-
Thread
Heizungs-Datenerfassung (HT3)
Rule. Z.B zum Modus HK verstellen. rule "HK1 Modus" when Item hk1modi changed then if (hk1modi.state ==0) publish ("mosquitto","set/ht3/hc1_Tniveau","auto") if (hk1modi.state ==1) publish ("mosquitto","set/ht3/hc1_Tniveau","frost") if (hk1modi.state ==2) publish ("mosquitto","set
decodiert werden konnten. Details dazu in sw/lib/Ccollgate.py # read values from queue, wait if empty or stop if (None, None) (nickname, value) = self._ht_if.decoded_data_4_DBs().get() # terminate thread if both values are None, else process them if (nickname, value) == (None, None
-
Thread
Fehler beim ausführen von MAKE (e=2) kann Datei nicht finden
\firefly\mik\tiny44\isrs.s:309: Error: constant value required t:\atmel\firefly\mik\tiny44\isrs.s:310: Error: constant value required t:\atmel\firefly\mik\tiny44\isrs.s:311: Error: constant value required t:\atmel\firefly\mik\tiny44\isrs.s:312: Error: constant value required t:\atmel\firefly\mik\
print-directory Print the current directory. --no-print-directory Turn off -w, even if it was turned on implicitly. -W FILE, --what-if=FILE, --new-file=FILE, --assume-new=FILE Consider FILE to be infinitely new. --warn-undefined-variables Warn when
-
Thread
Fehler bei Programmieren von C
_JJJJMMTT[t]); }{ scanf("%i",&z); for (z=0;z<18;z++) if(Mensa_Essen[2]==z) else printf("Essen: ",Mensa_Essen[z]); } return 0 ; } [/c] Kann mir vielleicht jemand weiter helfen? Ich seh den Wald vor lauter Bäumen nicht Mfg Verzweifler
printf("Datum:",ISO8601_JJJJMMTT[t]); }{ scanf("%i",&z); for (z=0;z<18;z++) if(Mensa_Essen[2]==z) else printf("Essen: ",Mensa_Essen[z]); } return 0 ; } [/c]
-
Thread
EMS > Adapter > NetIO > Raspi
------------------------------------------------------------------ void loop(){ int ptr; if (nefitSerial2.available()){ // check if we need to read ptr = readBytes(buffer); if (ptr>4){ if (crcCheckOK(buffer,ptr)){ nefitFrame2register(buffer,ptr); } } }
cvpump = nefitRegister[3]; if (cvpump == 1){cvpumpstatus = "On";} else if (cvpump == 0){cvpumpstatus = "Off";} else {cvpumpstatus = "Off";} if (cvpump != lastcvpump) { httpRequestswitch(IDXcvpump, cvpumpstatus
-
Thread
MSP430 Gleitkommazahl in Flash speichern
value); int main(void) { WDTCTL = WDTPW + WDTHOLD; // Stop watchdog timer if (CALBC1_1MHZ==0xFF) // If calibration constant erased { while(1); // do not load, trap CPU!! } DCOCTL = 0; // Select
value); int main(void) { WDTCTL = WDTPW + WDTHOLD; // Stop watchdog timer if (CALBC1_1MHZ==0xFF) // If calibration constant erased { while(1); // do not load, trap CPU!! } DCOCTL = 0; // Select
-
Thread
ATMega 328p lm35
; EEPROM.write(addr,t); EEPROM.write(addr+1,h); addr+=2; if(addr>1023)addr=0; digitalWrite(13,0); delay(168750); } } [/c]
Und wofür ist diese Gechichte mit if(digitalRead(8)==0) gut? Wenn das nicht der Fall ist wird nie gemessen oder serielle Ausgabe erzeugt ... LG, Sebastian
-
Thread
Ausführung von Eagle ULPs unzuverlässig
=R0 R307;move R311 (R 321 2652);rotate =MR180 R311;move R306 (R -909 282);rotate =R270 R306;move R310 (R 102 2481);rotate =MR180 R310;move R308 (R -204 2478);rotate =MR0 R308;move R312 (R 24 2580);rotate =MR180 R312;move C301 (R -33 1680);rotate =R90 C301;move C303 (R -423 1650);rotate =R270 C303;move
R307; move R311 (R 321 2652);rotate =MR180 R311; move R306 (R -909 282);rotate =R270 R306; move R310 (R 102 2481);rotate =MR180 R310; move R308 (R -204 2478);rotate =MR0 R308; move R312 (R 24 2580);rotate =MR180 R312; move C301 (R -33 1680);rotate =R90 C301; move C303 (R -423 1650);rotate =R270
-
Thread
Vorteile von Basic, Pascal, C und C++ in einem: LunaAVR Gesperrt
Hier nehme ich den C-Source, kopiere ihn in meinen Luna-Quelltext, ersetze die { und } durch "end if" "next", "wend" usw., passe die Operatoren und Ggf. Parameterdeklaration ein bisschen an und er läuft. Ginge bei BASCOM beispielsweise nicht, das versteht ja nichtmal ein (adr + (offset * 4)) in einer
:200040001895189518951895189518951895189518951895F89408E00EBF0FE50DBF14D0F9 :200060008F9A979802B310E8012702BB04EF11E001D0F8CFF801012B31F0CEEADBE02197A9 :20008000F1F73197D1F708950F901F90E0E6F0E0CFE5D8E088248192EC17FD07E1F71F92AC :0400A0000F9208951E :00000001FF [/code] = 164 Byte Klar, das geht
-
Thread
WLAN / WIFI Modul für µC - Erfahrungen
Messwert abholen: THREAD(handle_input(struct httpd_state *s)) { PSOCK_BEGIN(&s->sin); ... if (strncmp(s->inputbuf, http_post, 5) != 0) ... if(s->inputbuf[1] == ISO_space) { strncpy(s->filename, http_index_html, sizeof(s->filename)); } else { if (reply_shmtl) { http_reply_create
Torsten C. schrieb im Beitrag #3418275: > RAK310 (Low Cost SDIO^^, ali 734502719: 5,43€): > Ich habe keine Datenblätter gefunden, aber habe deshalb mal dort > angefragt. Antwort: ... if you use it in LED control, u'd better select RAK410 which
-
Thread
Automower G3 mit USB Diagnoseport fernsteuern?
Saugeil! Mal sehen, wann ich zum Testen an meinen 310er Husky komme... Ich hab nichts mehr diesbezüglich gehört: Anbindung per virtueller, serieller Schnittstelle an FHEM in Ordnung? Grüße!
only in the communication commands but also in finding a way to steer > the navigation. I wonder if the bouncing angles are random and if it > would be possible to add little routine to fetch the next angle from. If > so, you could have a say in the navigation and make it more > deterministic
-
Thread
Byte Wert suchen und Folgebyte speichern
spi_receive_data(0x00); // Read first Byte value1 = spi_receive_data(0x00); // Read second Byte if ((addr & 0xF0) == 0x10) return SUCCESS; else if ((addr & 0xF0) == 0x20) return SUCCESS; else if ((addr & 0xF0) == 0x60) // Check address if 2 bytes (0x60, 0x61) return SUCCESS;
if (susi_F5F12 & 0x02) // Check if Bit 1 is set PORTC &= 0x04; // Green LED off break; default: break; } } int main(void) { init_timer2();
-
Thread
Merkwüdiger Fehler: Mal fehlt powl, mal nicht
} }; long double calc_power (const long double y) { if (y < ald_2ghzband[1][0]) { return 2; /////////////////////////////////////////////////////// } return 0; } int main (int argc, char *argv[]) { long double y = 0, u = 0, v = 0; char **endptr = &(argv[1]) + 10; if (argc < 2) return (-1); y = strtold (argv[1], endptr); u = calc_power (y); u += 20.0; v = powl (10.0, u / 10.0); printf ("%.2Lf %.1Lf %.1Lf\n", y, v, u); return
-
Thread
c51 Problem mit Initialisierung von globalen Variablen / extern /
testvar übergeben bekommt) auf my_count zugreifen: [c]int CountTest(testvar) { int i=0; if (testvar == 1) my_count++; .... if (my_count > 10) tu irgendwas; .... }[/c] Nun habe ich das Problem, dass sich my_count anscheinend nie ändert, mir kommt es so vor, als würde
fertiggestellt, ich möchte nun die firmware für das modul erweitern/modifizieren. dabei geht es um ein STM310-modul von enocean: http://www.enocean.com/en/download/STM31xHW-STMSEN_Firmware_V2.4.0.0.zip/
-
Artikel
AVR-Studio Bugs
a bug...) IDE-Fenster. B) Main IDE Window: ------------------------------------------------- B.1) -If files are opened or closed, this is only saved to project file if project options have been opened and comfirmed with OK-Button (then IDE will ask if changes to project should be saved). (This is not ot really a bug, but at least if you have closed 50 or more Tabs/Windows an then close the IDE you would not expect to have all windows open again if IDE is started the next time...) B.2) -If project files are renamed, the IDE sometimes
-
Thread
Pollin Geigerzähler Bericht
Progrmierstecker 6-polig für AVRISP mkII vorhanden. - Einstellbereich der HV bei Ub = 12 Volt von +310 Volt bis +450 Volt. gemessen mit Metex ME-22 und Vorwiderstand 90 Meg-Ohm im 200 Volt Bereich. - Hintergrund Nullrate 7-11 counts per minute (cpm) - Meine ebay Uranglasperlen für 2,50 Euro machen
picture is for reference only - kit comes unassembled, without Geiger-Müller tube or the battery) If you need a Geiger-Müller tube pleas inquire for quote through eBay messaging system. If purchased together with a kit I shall ship the tube in the same package with no additional shipping cost. Currently
-
Thread
Taktanzahl einer for-Schleife
ich habe folgenden Code: while ((PIN_SHT & (1<<PIN_DATA)) && (i < 320000)) i++; if (i >= 320000) *error_code = 3; mit 2Mhz; 320000 = 320ms So die while schleife kontrolliert, ob der Pin_data high wird oder die Zählvariable 320000 erreicht hat und bricht dann die Schleife
> while ((PIN_SHT & (1<<PIN_DATA)) && (i++ < 320)) > > _delay_ms( 1 ); > > > > if (i >= 320) > > *error_code = 3; > > dann stimmt die Zeit wenigstens so einigermassen. Ja habe ich mir auch überlegt genau muss es ja eh nicht sein! ob jetzt 310 oder 330ms spiel keine Rolle
-
Thread
PIC18F bleibt bei Tastendruck hängen
pragma interrupt high_isr void high_isr (void) { char buffer[20]; unsigned int i; if ( PIR1bits.TMR1IF ) // check for TMR0 overflow { /* if menu is zero the temp is shown */ if( menu == 0 ) { ultoa( Temperature, buffer );
ON temp */ if( menu == 1 ) { On_1--; } /* minus Off temp */ if( menu == 2 ) { Off_1--; } } // END down button if( !
-
Thread
BLDC Sinuskommutierung Ansteuerung H-Brücke
dU); n2=(IMAX-(IMAX/4+1)-dV); n3=(IMAX-(IMAX/4+1)-dW); /* // Begrenzung der Werte if (n1<0) n1=0; if (n2<0) n2=0; if (n3<0) n3=0; if (n1 > (1<<BITS)) n1=(1<<BITS); if (n2 > (1<<BITS)) n2=(1<<BITS); if (n3 > (1<<BITS)) n3=(1<<BITS); */ pM->dU=n1; pM->dV=n2; pM
Induktivität in Serie zur Motorenwicklung etwas? Ich würde mal 3x100uH Versuchen, der Motor hat ja 310uH. Gruss
-
Thread
Anfängerfrage - Stoppuhr mittels CCP Module
volatile uint8_t clockRunning = FALSE; volatile uint8_t clockTick = TRUE; void time() { if( clockRunning ) { hs++; if(hs == 10) { hs = 0; zs++; clockTick = TRUE; if( zs == 10 ) { zs = 0; s++; if(s == 60)
} else if( Taste 2 ist gedrückt ) clockRunning = FALSE; if( clockTick ) { clockTick = FALSE; lcd_gotoxy(9,1); if(m > 0) { printf(lcd_putc,"%02u:%02u:%u",