I am working on a circuit that uses an rfid fob to unlock and lock car doors. The rfid sensor is to be placed inside the lower windshield dash area, along with a 16x2 lcd that says locked or unlocked.
To test the circuit I am using a button in place of the off the shelf rfid sensor system and leds to take the place of the lock actuator. Upon installation the rfid sensor will interact with pin2 via digital write. The rfid sensor outputs a 3v pulse when the fob is authenticated. The leds will be replaced with a 2 channel relay module that will send 12v power to the lock motor for a short amount of time in either normal polarity or reverse polarity, like a solenoid.
The two problems I am having are:
- at boot it always locks (maybe ok but I would prefer if it did not lock or unlock at boot.)
- with repeated button presses it flips between lock and unlock without observing the delay. In operation this would make the lock mechanism jiggle between lock and unlock and stop somewhere in the middle.
Thank you for any advice