Four different hinge arrangements:
Arrangement A – Single Shoulder Bolt
Arrangement B – Pin with two end screws and washers
Arrangement C – Pin with internal cir clip
Arrangement D – Pin with two external circlips
This simple circuit was created to count the number of times that two buttons have been pressed alternatively.
The buttons must be pressed one after another to add +1 count, so the circuit could be used for counting the number of times a door or lid feature is opened and closed. The counting can’t continue until the full open/close cycle has been completed.
The number of button presses is displayed in the serial dialog box and also on a 16×2 LCD.
Link to the code is here: Lid_Counter_03