Fensterdrehgeriffkontakt - Die nächste Runde

Begonnen von papa, 02 April 2020, 09:37:44

Vorheriges Thema - Nächstes Thema

Nighthawk

Hallo Papa,

richtig keine der LEDs blink oder leuctet, auch wenn ich einen der Taster drücke.
Die LEDs sind mit der Kathode (grüne Markierung) auf der Batterieseite eingelötet.

papa

Das ist falsch herum - die grüne Markierung muss zum Rand.
Hast Du den Rest bestücken lassen - oder selbst gemacht ? Mach mal ein ordentliches Foto von beiden Seiten.
BananaPi + CUL868 + CUL433 + HM-UART + 1Wire

Nighthawk

ich habe die schmale Variante bestellt und soweit wie möglich bestücken lassen.
Es fehlten noch ein paar Kondensatoren, ein Widerstand, die zwei LEDs, die Taster und die Batteriehalterung.
Die LED Pins habe ich gemessen und die Batterieseite lag gegen GND, daher bin ich davon ausgegangen, dass es so herum richtig ist.

papa

Ach die schmale - da muss ich erst mal schauen. Bin jetzt unterwegs.
Die habe ich nicht aufgebaut.
BananaPi + CUL868 + CUL433 + HM-UART + 1Wire

papa

Für die schmale Version ist das richtig.
Hast Du schon geprüft, ob die Batterie richtig Kontakt hat. Ich mache auf das große, rechteckige Pad immer etwas Lötzinn drauf. Alternativ könntest Du die Platine auch mal über den ISP-Anschluss mit SPannung versorgen.
BananaPi + CUL868 + CUL433 + HM-UART + 1Wire

Nighthawk

spannung habe ich auch über den ISP bzw. auch über USB2Seriell Adapter dran gehabt, leider zuckt da nichts.
Könnte diese Meldung für das Problem verantwortlich sein?
avrdude: warning: cannot set sck period. please check for usbasp firmware update.
Laut google muss ich die ISP Firmware aktualisieren, leider klappt es mit meinen arduino clones nicht, daher habe ich mir noch ein ISP bestellt, kosten ja hier nichts ;-)

papa

Nein - das sollte kein Problem sein.
Auf einen Kurzschluß hast Du ach schon mal geprüft ? So langsam fällt mir auch nichts mehr ein.
BananaPi + CUL868 + CUL433 + HM-UART + 1Wire

gloob

Zeig doch bitte mal den Inhalt von der CMD beim flashen des Bootloaders, vielleicht hängt es da schon.
Raspberry Pi 3 | miniCUL 433MHz | nanoCUL 868 MHz | nanoCUL 433 MHz | MySensors WLAN Gateway | LaCrosse WLAN Gateway | SignalESP 433 MHz | SignalESP 868 MHz | HM-MOD-UART WLAN Gateway | IR - 360 Grad WLAN Gateway

Nighthawk

Einen Kurzschluss kann ich nicht erkennen, auch nicht unter dem Microskop.

Ich dachte mit der makeota.html erstelle ich eine firmware die den Bootloader schon beinhaltet?

Das flashen wurde dann mit folgendem Kommando gestartet:
avrdude -p m328p -P usb -c usbasp -V -U flash:w:'/home/alex/Downloads/YUQ7660527.hex' -F

Der flashablauf ist in meinem Post #176  zu sehen.

gloob

Hast du es mal mit einem Standard-Arduino-Bootloader probiert? Was ist die Ausgabe der Arduino IDE wenn du einen Sketch flasht?
Wenn die OTA Firmware genutzt wird, kannst du leider die Arduino IDE nicht mehr nutzen um einen Sketch aufzuspielen.
Raspberry Pi 3 | miniCUL 433MHz | nanoCUL 868 MHz | nanoCUL 433 MHz | MySensors WLAN Gateway | LaCrosse WLAN Gateway | SignalESP 433 MHz | SignalESP 868 MHz | HM-MOD-UART WLAN Gateway | IR - 360 Grad WLAN Gateway

Nighthawk

Hallo gloob,

hier die Ausgabe von der Arduino IDE (leider ebenfalls ohne jede zucken der LEDs):

avrdude: Version 6.3-20190619
         Copyright (c) 2000-2005 Brian Dean, http://www.bdmicro.com/
         Copyright (c) 2007-2014 Joerg Wunsch

         System wide configuration file is "/home/alex/Downloads/arduino-1.8.12-linux64/arduino-1.8.12/hardware/tools/avr/etc/avrdude.conf"
         User configuration file is "/home/alex/.avrduderc"
         User configuration file does not exist or is not a regular file, skipping

         Using Port                    : usb
         Using Programmer              : usbasp
         AVR Part                      : ATmega328P
         Chip Erase delay              : 9000 us
         PAGEL                         : PD7
         BS2                           : PC2
         RESET disposition             : dedicated
         RETRY pulse                   : SCK
         serial program mode           : yes
         parallel program mode         : yes
         Timeout                       : 200
         StabDelay                     : 100
         CmdexeDelay                   : 25
         SyncLoops                     : 32
         ByteDelay                     : 0
         PollIndex                     : 3
         PollValue                     : 0x53
         Memory Detail                 :

                                  Block Poll               Page                       Polled
           Memory Type Mode Delay Size  Indx Paged  Size   Size #Pages MinW  MaxW   ReadBack
           ----------- ---- ----- ----- ---- ------ ------ ---- ------ ----- ----- ---------
           eeprom        65    20     4    0 no       1024    4      0  3600  3600 0xff 0xff
           flash         65     6   128    0 yes     32768  128    256  4500  4500 0xff 0xff
           lfuse          0     0     0    0 no          1    0      0  4500  4500 0x00 0x00
           hfuse          0     0     0    0 no          1    0      0  4500  4500 0x00 0x00
           efuse          0     0     0    0 no          1    0      0  4500  4500 0x00 0x00
           lock           0     0     0    0 no          1    0      0  4500  4500 0x00 0x00
           calibration    0     0     0    0 no          1    0      0     0     0 0x00 0x00
           signature      0     0     0    0 no          3    0      0     0     0 0x00 0x00

         Programmer Type : usbasp
         Description     : USBasp, http://www.fischl.de/usbasp/

avrdude: auto set sck period (because given equals null)
avrdude: warning: cannot set sck period. please check for usbasp firmware update.
avrdude: AVR device initialized and ready to accept instructions

Reading | ################################################## | 100% 0.00s

avrdude: Device signature = 0x1e950f (probably m328p)
avrdude: NOTE: "flash" memory has been specified, an erase cycle will be performed
         To disable this feature, specify the -D option.
avrdude: erasing chip
avrdude: auto set sck period (because given equals null)
avrdude: warning: cannot set sck period. please check for usbasp firmware update.
avrdude: reading input file "/tmp/arduino_build_995142/HB-SEC-RHS-3.ino.hex"
avrdude: writing flash (20150 bytes):

Writing | ################################################## | 100% 20.91s

avrdude: 20150 bytes of flash written
avrdude: verifying flash memory against /tmp/arduino_build_995142/HB-SEC-RHS-3.ino.hex:
avrdude: load data flash data from input file /tmp/arduino_build_995142/HB-SEC-RHS-3.ino.hex:
avrdude: input file /tmp/arduino_build_995142/HB-SEC-RHS-3.ino.hex contains 20150 bytes
avrdude: reading on-chip flash data:

Reading | ################################################## | 100% 10.27s

avrdude: verifying ...
avrdude: 20150 bytes of flash verified

avrdude done.  Thank you.

gloob

Hast du mal probiert den Sketch über einen Serial Adapter zu flashen? Dann sieht man auch mal ob was auf der Console kommt.
Raspberry Pi 3 | miniCUL 433MHz | nanoCUL 868 MHz | nanoCUL 433 MHz | MySensors WLAN Gateway | LaCrosse WLAN Gateway | SignalESP 433 MHz | SignalESP 868 MHz | HM-MOD-UART WLAN Gateway | IR - 360 Grad WLAN Gateway

Nighthawk

Über Serialadapter klappt es leider gar nicht.

avrdude: Version 6.3-20190619
         Copyright (c) 2000-2005 Brian Dean, http://www.bdmicro.com/
         Copyright (c) 2007-2014 Joerg Wunsch

         System wide configuration file is "/home/alex/Downloads/arduino-1.8.12-linux64/arduino-1.8.12/hardware/tools/avr/etc/avrdude.conf"
         User configuration file is "/home/alex/.avrduderc"
         User configuration file does not exist or is not a regular file, skipping

         Using Port                    : /dev/ttyUSB0
         Using Programmer              : arduino
         Overriding Baud Rate          : 57600
avrdude: stk500_recv(): programmer is not responding
avrdude: stk500_getsync() attempt 1 of 10: not in sync: resp=0x00
avrdude: stk500_recv(): programmer is not responding
avrdude: stk500_getsync() attempt 2 of 10: not in sync: resp=0x00
avrdude: stk500_recv(): programmer is not responding
avrdude: stk500_getsync() attempt 3 of 10: not in sync: resp=0x00
avrdude: stk500_recv(): programmer is not responding
avrdude: stk500_getsync() attempt 4 of 10: not in sync: resp=0x00
avrdude: stk500_recv(): programmer is not responding
avrdude: stk500_getsync() attempt 5 of 10: not in sync: resp=0x00
avrdude: stk500_recv(): programmer is not responding
avrdude: stk500_getsync() attempt 6 of 10: not in sync: resp=0x00
avrdude: stk500_recv(): programmer is not responding
avrdude: stk500_getsync() attempt 7 of 10: not in sync: resp=0x00
avrdude: stk500_recv(): programmer is not responding
avrdude: stk500_getsync() attempt 8 of 10: not in sync: resp=0x00
avrdude: stk500_recv(): programmer is not responding
avrdude: stk500_getsync() attempt 9 of 10: not in sync: resp=0x00
avrdude: stk500_recv(): programmer is not responding
avrdude: stk500_getsync() attempt 10 of 10: not in sync: resp=0x00

avrdude done.  Thank you.

Problem beim Hochladen auf das Board. Hilfestellung dazu unter http://www.arduino.cc/en/Guide/Troubleshooting#upload.

papa

Hast Du auch vorher den Standard-Bootloader per ISP geflasht ?
https://github.com/pa-pa/AskSinPP/blob/master/bootloader/avr/ATmegaBOOT_168_atmega328_pro_8MHz.hex

Hast Du auch mal eine andere Platine versucht ? Manchmal ist halt irgendwo der Wurm drin - das lässt sich auch nur sehr schwer ohne Zugriff auf die Hardware analysieren.
BananaPi + CUL868 + CUL433 + HM-UART + 1Wire

Nighthawk

Habe ich eben probiert, leider ebenfalls ohne Erfolg.