RTC "comm error", wenn Bluetooth 5V kriegt

runtimeterror

Moderator
(PCB 1.3, Arduino Due-Klon)
Wenn ich das Bluetoothmodul (HC-05, ZS-040) gemäß Anleitung versorge:
set jumper JP10 (Bluetooth signal voltage) to 3.3VP for Marotronics Bluetooth module
set jumper JP4 (Bluetooth operating voltage) to 5V for Marotronics Bluetooth module

dann kann ich die RTC nicht mehr erreichen:


Code:
reading RTC time...
DS1307 comm error
writing new RTC datetime Sun 28-02-2016 23:59...
DS1307 comm error
reading RTC datetime...
DS1307 comm error


Die LED vom Bluetoothmodul blinkt rot und über die serielle Konsole wird es auch gefunden und kann konfiguriert werden.

Ziehe ich den JP 4 ab, erlischt die LED und die RTC funktioniert fehlerfrei.


Code:
reading RTC time...
RTC date received: Tue 01.03.2016
writing new RTC datetime Sun 28-02-2016 23:59...
reading RTC datetime...
RTC datetime received: Sun 28.02.2016  23:59


Auf dem Modul aufgedruckt steht:
- LEVEL: 3.3 V
- Power: 3.6 V - 6 V

Im Shop steht:
- Operating Voltage:3.3V
- Power Supply: +3.3VDC 50mA

Letzteres finde ich irreführend.

Irgendeine Idee, was da klemmen könnte? Ich habe keine weiteren i²C-Geräte angeschlossen und alle optionalen Jumper abgezogen. Der Due ist über den Programming Port mit dem Notebook verbunden, auf Batteriebetrieb und "Dauer-On". Der Motortest funktioniert und die Batterie liegt bei 24.3 V (laut Konsole und Multimeter)
 
Ich habe mir die Schaltung jetzt nicht angeschaut. Aber hat du vielleicht irgendwo eine Lötbrücke drin oder irgend was falsch verbunden? Was ist wenn du das BT Modul abziehst? Dann nacheinander die Jumper setzt, bis du herausgefunden hast, welche Handlung das Problem verursacht. Danach von dieser Stelle aus weiter suchen.
 
Wie schon geschrieben: es sind nur JP4, JP 10, das Bluetoothmodul und RTC angeschlossen.

Ansonsten nur die zum Betrieb notwendigen Teile: Akku, +9 V, DueReset, Dauer-An und die Motortreiber + INA + Motor links (die kann ich mal entfernen, aber ich denke das ändert nichts)

Wenn ich das Bluetothmodul oder JP 4 entferne geht die RTC, sonst nicht. Lötbrücken kann man nie ausschließen, habe das Board aber für meine Begriffe sehr sauber gelötet und kontrolliert. (Bilder mit Detailaufnahmen im wiki beim PCB 1.3 EN)
 
Ok I re-tested everything with all non-mandatory components removed (no INA, no motor driver, no motor, no bluetooth, no RTC) and ran an SPI test:

Code:
Scanning for I2C devices...
No I2C devices found


Then I started to add RTC, JP 4, JP 10, Bluetooth, INA and after each test I got

Code:
Scanning for I2C devices...
I2C device found at address 0x50 (probably AT24C32)
I2C device found at address 0x68 (probably DS1307)
done


Then I added the motor drivers. The board stopped responding and the DCDC converter became a little hot. I measured 1 A on the 9 V-jumper. Then I noticed the Arduino board was very hot, too.

I separated the Due-board from the PCB and hooked it up to my PC with nothing else connected. The LEDs lit for some seconds and journalctl outputs:

Code:
Mai 29 22:16:22 kai-notebook kernel: usb 1-2: new full-speed USB device number 48 using xhci_hcd
Mai 29 22:16:22 kai-notebook kernel: usb 1-2: New USB device found, idVendor=2341, idProduct=003d
Mai 29 22:16:22 kai-notebook kernel: usb 1-2: New USB device strings: Mfr=1, Product=2, SerialNumber=220
Mai 29 22:16:22 kai-notebook kernel: usb 1-2: Product: Arduino Due Prog. Port
Mai 29 22:16:22 kai-notebook kernel: usb 1-2: Manufacturer: Arduino (www.arduino.cc)
Mai 29 22:16:22 kai-notebook kernel: usb 1-2: SerialNumber: 95635333231351119101
Mai 29 22:16:22 kai-notebook kernel: cdc_acm 1-2:1.0: ttyACM0: USB ACM device
Mai 29 22:16:22 kai-notebook mtp-probe[11703]: checking bus 1, device 48: "/sys/devices/pci0000:00/0000:00:14.0/usb1/1-2"
Mai 29 22:16:22 kai-notebook mtp-probe[11703]: bus: 1, device: 48 was not an MTP device
Mai 29 22:16:22 kai-notebook upowerd[1968]: unhandled action 'bind' on /sys/devices/pci0000:00/0000:00:14.0/usb1/1-2/1-2:1.1
Mai 29 22:16:22 kai-notebook upowerd[1968]: unhandled action 'bind' on /sys/devices/pci0000:00/0000:00:14.0/usb1/1-2/1-2:1.0
Mai 29 22:16:22 kai-notebook upowerd[1968]: unhandled action 'bind' on /sys/devices/pci0000:00/0000:00:14.0/usb1/1-2
Mai 29 22:16:25 kai-notebook kernel: usb 1-2: USB disconnect, device number 48
Mai 29 22:16:25 kai-notebook kernel: cdc_acm 1-2:1.0: failed to set dtr/rts
Mai 29 22:16:25 kai-notebook upowerd[1968]: unhandled action 'unbind' on /sys/devices/pci0000:00/0000:00:14.0/usb1/1-2/1-2:1.1
Mai 29 22:16:25 kai-notebook upowerd[1968]: unhandled action 'unbind' on /sys/devices/pci0000:00/0000:00:14.0/usb1/1-2/1-2:1.0
Mai 29 22:16:25 kai-notebook upowerd[1968]: unhandled action 'unbind' on /sys/devices/pci0000:00/0000:00:14.0/usb1/1-2


Output for the native port:

Code:
Mai 29 22:15:58 kai-notebook kernel: usb 1-2: new full-speed USB device number 45 using xhci_hcd
Mai 29 22:15:58 kai-notebook kernel: usb 1-2: device descriptor read/64, error -71
Mai 29 22:15:59 kai-notebook kernel: usb 1-2: device descriptor read/64, error -71
Mai 29 22:15:59 kai-notebook kernel: usb 1-2: new full-speed USB device number 46 using xhci_hcd
Mai 29 22:15:59 kai-notebook kernel: usb 1-2: device descriptor read/64, error -71
Mai 29 22:15:59 kai-notebook kernel: usb 1-2: device descriptor read/64, error -71
Mai 29 22:15:59 kai-notebook kernel: usb usb1-port2: attempt power cycle


Then I noticed the board gets extremely hot around the USB connectors and stopped all further experiments. luckily my PCs USB port is functional.

So now I have whole bunch of new problems:
1. Why does the Due get so hot and can this be repaired?
2. What caused this defect?
3. Is the cause related to my RTC vs. Bluetooth problem

Any help is REALLY appreciated :(

Update: I powered the Due with a regulated power source and measured 1 A @ 5V on each port. Next check: microscope inspection ...
 
I routed the problem into the Arduino forum: http://forum.arduino.cc/index.php?topic=550290.0
Maybe we can still try to figure out what happened. I'm no longer 100 % sure that I removed the battery when connecting the motor drivers and/or INA. Could that be the culprit?

The 5 V pin has a voltage of 3.5 V and the 3.3 V pin has 2.3 V. The USB however has 5 V. I measured the resistance:
+5V to GND gives me 4.4 kOhm
+3.3V to GND gives me 2.4 Ohm
Can someone please give me the values that are to be expected?
 
Ich habe den gekillten Arduino zwischenzeitig ersetzt.

Mit der RTC bekomme ich mittlerweile gar keine Kommunikation mehr hin. Bevor ich eine neue bestelle: kann ich irgendwie anderweitig prüfen, ob das Modul noch funktioniert? Batterie hatte ich sicherheitshalber schon ersetzt.

Zur Frage, ob da was schlecht gelötet ist: ich konnte nichts entdecken; meine Ergebnisse kann man sich unter http://wiki.ardumower.de/index.php?title=PCB_1.3_(English)#Assembly ansehen
 
Ich habe wohl durch meine Rumprobiererei vergessen, JP1 wieder zu setzen. Jetzt geht tatsächlich alles! RTC wird erkannt und Bluetooth lässt sich pairen.

Ich bekomme bei einem I²C-Scan folgende Geräte aufgelistet:

Code:
18:55:16.152 -> I2C device found at address 0x50 (probably AT24C32)
18:55:16.152 -> I2C device found at address 0x68 (probably DS1307)


Ist das nicht beides die RTC? Wie würde ein Bluetooth-Modul aussehen? Müsste das nicht auch dort erscheinen?
 
Hi .
The BT module is not i2c device so all is Ok.
You can also see the IMU in i2c scan if it is connected.
By
 
Oben