Kaldek / rat-ratgdo

Open source schematics for ratgdo PCB
MIT License
302 stars 46 forks source link

Need help troubleshooting board #72

Closed cwesterfield closed 5 months ago

cwesterfield commented 6 months ago

I built 3 units using the "ratgdo open source D1 Mini_schem_v6.png" schematic. I loaded them up with the a esphome yaml, and installed them.

Door 1 and 3 work as expected. Door 2 is RX only. I started digging into it, and saw there was a yaml for 2.5i. I also saw where I had built the firmware files for a d1 lite, but I actually used a d1 mini 4.0.0 usb-c. I have not modified or touched Door 1 & 3 in anyway.

On Door 2:

I'm reading all i can about the issue, but it seems there isn't a definitive troubleshooting guide.

Can I assume that since I can get door state, motor status, and light status, that my wiring is okay?

What might make it so that I can receive states and not send commands?

If this is likely a rolling code issue, is there way to just start over at 1 and see if they will sync?

I can post my yaml if it might be helpful.

rlowens commented 6 months ago

d1 lite, but I actually used a d1 mini 4.0.0 usb-c

Only difference is flash size and it works fine to use 1MB ("lite") firmware in a 4MB board until you run out of space for updating. If you were able to OTA to the non-lite setting, you are good from there on.

Can I assume that since I can get door state, motor status, and light status, that my wiring is okay? What might make it so that I can receive states and not send commands?

You can be sure your wiring from D2 (GPIO 4 uart_rx_pin) to Red Wire/Control and your ground is working. You have some problem from D1 (GPIO 5 uart_tx_pin) to Red Wire. Either connection wire or part wise. Re-check the connections between each part and then swap out Q2 2N7000 for another 2N7000 or another MOSFET (the ratgdo uses 2N7002 for all the other transistors but uses an AO3400A here - some of us have it working fine with a 2N7000 anyway but that may be your problem here). Another part that has been suggested is IRLB8721.

From the rat-ratgdo instructions:

Note: Our simple through-hole Bill Of Materials uses 2n7000 MOSFETs for both RX and TX, however depending on the manufacturere of your 2n7000 and its production batch, it might not be 100% reliable for the TX circuit. There are many examples working using the 2n7000 however, so there is a very high chance it will work.

If this is likely a rolling code issue

No, it isn't.

cwesterfield commented 5 months ago

Thanks for the explanation. I fiddled with the board I made and eventually lost RX.

I built an entire new board (still with the 2 2n7000s) and as of right now, its working.