First thing's first, got to make that delay happen. As of right now, the servo opens and then closes right away when the reader reads the correct card. That is not enough time for someone to enter the door. We need a solution for that.
Tried setting different delays, but changing the delay as the code is just makes the rotation slowwww. Instead, I will try what Dragan suggested: Make two separate "if" statements instead of combining them. A delay will go in between the two so that it will be delay and then "if angle = 180 { " and rotate backward. Will update later on how that goes.
No comments:
Post a Comment