Kaldek / rat-ratgdo

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

Wemos D1 mini, circuit checked hundreds of times, still wont connect #54

Closed mikekay1 closed 7 months ago

mikekay1 commented 7 months ago

Hey guys me again redesigned the whole thing ground up, I have the Chamberlain B970C, with battery backup. Something is going on here... and what was a weekend project has developed into an insomnia. Security 2.0+ for sure.

Everything is fine, I have only 4 terminals: R - 12V here for sure measured about 11.44 W - GND? W - Obstruction White B - Obstruction Black

Please someone tell me what I am doing wrong my circuit is perfect juat like working breadboard in the code.

Loaded this firmware: esphome-ratgdo/v2board_esp8266_d1_mini_lite.yaml@main

Im like ready to pay and just wait for the backorder except knowing me that shit wont work either when I get it.

Am I missing a fourth wire?

Please help, please...

foreverimagining commented 7 months ago

Have you tried the firmware for v2.5?

And if that doesn't work, how does your circuit compare to the more updated schematic here: https://github.com/Kaldek/rat-ratgdo/issues/44#issuecomment-1817084612?

mikekay1 commented 7 months ago

I have not tried v2.5, im trying to keep things simple. Honestly dont understanding why version 2.0 isnt working for me. Looking at the schematic now

mikekay1 commented 7 months ago

Im using 2x2n7000s, using gpio d1,d2 and d7 everything looks good., all except the 1k resistor... Could the battery backup be messing with me?

rlowens commented 7 months ago

I have not tried v2.5, im trying to keep things simple.

The major difference between ratgdo hardware version 2.0 and 2.5 is they moved from using D4 (GPIO2) for TX to D1 (GPIO5). You have build the schematic for ratgdo hardware version 2.5 but have flashed the software configuration for ratgdo hardware version 2.0, so your TX line is not going to work.

Flash the v2.5 firmware.

mikekay1 commented 7 months ago

Hot damn, let me try that, I went around switching all the wires hope I didnt blow a MOSFET. Am I able to just switch the number in the firmware of esphome and reinstall?

esphome-ratgdo/v25board_esp8266_d1_mini_lite.yaml@main

"V25"

mikekay1 commented 7 months ago

Also side question can I just move GPIO back to D4 and be fine? Sounds like this is the only change?

foreverimagining commented 7 months ago

esphome-ratgdo/v25board_esp8266_d1_mini_lite.yaml@main

Looks like that is the correct firmware version.

Also side question can I just move GPIO back to D4 and be fine? Sounds like this is the only change?

I would think this would be able to work, but they changed pins from D4 to D1 because D4 has to be pulled high at boot or else it will fail. Apparently, this caused some nuisances because it would pull the communication/power line to low, so it may be better not to use D4.

mikekay1 commented 7 months ago

Safe thanks for the reply man!

20231129_210745 20231129_210751 20231129_210801

Still no go but at least no more collision detected errors?

everything in the circuitry is on point, all colors match respective output to GDO for easy tracing. Orange is GND to weemos.

still no status, I tried hitting Sync but nothing -- question about that, do I have to do anything special on the GDO or remote to sync current rolling code or something???

foreverimagining commented 7 months ago

My experience from the legitimate v2.5 board (with yellow learn button) is that it's pretty plug-n-play. I flashed the firmware from the web installer, and it easily connected to my Home Assistant before I hooked it up to the GDO. Once I got the wiring done and plugged the D1 mini in again, everything showed up like expected, and it could control the door right off the bat. The only snag was a loose GND wire to one of the obstruction sensors that prevented me from closing the door until I switched it to another terminal on the lever connector.

Unless I'm not seeing something, I think you're missing these two resistors (besides the 1k, which may not be strictly required): Missing Resistors-01 I don't know how important they are, but it might be worth a try to add them.

If it is a rolling code issue, apparently you can just change the Client ID and try toggling the light a couple of times to see if it'll work. If it doesn't, it's supposed to be a wiring problem.

mikekay1 commented 7 months ago

I will look thank you

slhar commented 7 months ago

I built 3 of these with 2x 2n7000. Only one (my second build) has worked, and on that one TX and the beam detection works, so I can only open/close the door and have safety features.

I double and triple checked my translation of the schematic to the boards. I know why my first attempt failed. I am not sure why TX works, and RX does not when looking at the latest schematic the 7002 is still used on RX and TX uses the different mosfet.

Kaldek commented 7 months ago

I wonder if you folks have wonky grounds? I do a lot of automotive sensor work and man, if the grounds aren't top notch the weirdest crap happens. Not saying it's your issue but it's an often overlooked source of issues.

slhar commented 7 months ago

Second one was built on proto board. The third I breadboarded because, it must've been me. not sure what the real difference is honestly.

mikekay1 commented 7 months ago

Welp! its been fun. I officially have determined that either I have some very weird edge case scenario or we are using components that fail for some but work for others. I have literally tried every possible combination of this schematic including the new 2.5 version in hopes that maybe it was something to do with my GDO. everything is perfect, it will not detect any status no matter what I do. I think I will throw in my hat and buy one from paul, although with my luck that shit wont work either. Something tells me my battery backup on GDO is messing with me, I don't think its a bad ground. the short D1 to ground test works... oscilloscope showed everything in working order. I almost want to try this on a friends GDO but also dont have the time. This was supposed to make me look like a super smart guy, and instead I went into a rage trying to make this work.

Deep down chamberlain sucks, smart things that are not local suck, its too often I am smart device TV for example and the app store or web-os is dead in 2 years, or the netflix/spotify(etc) app stops getting updates. I digress! Thank you all so much for the help @Kaldek you can close the ticket man, your work was very much appreciated! It was fun learning a few things from this project.

Cheers!

20231205_130525

Kaldek commented 7 months ago

I'm sorry it didn't work mate. Please also buy one of Paul's boards and let us know if it works on the original. It's useful information, and it may help someone else.

mikekay1 commented 7 months ago

100 percent I will

slhar commented 7 months ago

I ordered a ratgdo today as well. I have a lift master with a battery backup too.

On Tue, Dec 5, 2023 at 2:13 PM mikekay1 @.***> wrote:

100 percent I will

— Reply to this email directly, view it on GitHub https://github.com/Kaldek/rat-ratgdo/issues/54#issuecomment-1841705586, or unsubscribe https://github.com/notifications/unsubscribe-auth/AF4XX5FCI7YZJ3NJM5NVCUTYH6MAHAVCNFSM6AAAAABAALBJ72VHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMYTQNBRG4YDKNJYGY . You are receiving this because you commented.Message ID: @.***>

hobbyist2 commented 7 months ago

I have similar issues and made a post about it. There is no resolution yet. My 8500W also has a battery backup https://github.com/Kaldek/rat-ratgdo/issues/52