Kaldek / rat-ratgdo

Open source schematics for ratgdo PCB
MIT License
332 stars 56 forks source link

not working with the code #90

Closed denveronly closed 8 months ago

denveronly commented 9 months ago

Hey there, Thanks for great work, so i followed and made a pcb, soldered it and got flashed.

I have Security 2.0 GDO photo_2024-02-15_20-55-45 The board i used is D1 8266. With the pins like in the project soldered. I flashed this code. And have it working partialy... 1) I can open and close 2) i can't stop or open\close partially (tried full close and full open several times) 3) i see obstruction 4) i really can only open and close and see obstruction, no other functions are visible

image

image

viber_image_2024-02-14_16-04-32-939 viber_image_2024-02-13_16-36-52-922

photo_2024-02-15_20-56-00 photo_2024-02-15_20-55-56 photo_2024-02-15_20-55-54 photo_2024-02-15_20-55-51

denveronly commented 9 months ago

Maybe it is the way it should be? I added manually number of seconds for Closing and Open procedure (16sec) And i have closed and open States, i can close and open partially,

Stop is not working (i have The door is not moving. ) when trying to stop on movement. I guess it doesnt report its movement state.

Should it be automatic?

rlowens commented 9 months ago

Several problems here. First off, you board is wired wrong: image

image

Obst pin (D7 by default but you used D0, which should work I think but you need to specify it in your device .yaml which I don't think you did) is supposed to be connected as a voltage divider between GDO Obst wire and GND, but you thought a cross-over in the schematic was a junction and connected it to part of the D1 tx line instead of GND.

Second, in the firmware: you have a security+ 2.0 GDO but are using security+ 1.0 firmware? I'm surprised this is working at all. image

You want "v25board_esp8266_d1_mini.yaml@main"

I think if you cut that bad trace and connect as I indicated it should work. Also need to specify in your yaml

substitutions:
  input_obst_pin: D0
  status_door_pin: none
ashishgururani commented 8 months ago

@denveronly did you figure this out? I am having the same issue here https://github.com/Kaldek/rat-ratgdo/issues/91

Kaldek commented 8 months ago

Closing due to lack of updates.