Simon’s locker- Carla Molins

 

  • Goal of the project and/or desired interaction

The goal of the project was to create a locker that opened (green light) when the right color code was pressed ( 4 different colours). The light must be red while the code remains wrong.

  • Quick description of assembly and list of core components

1x Arduino

1 x medium breadboard.

1x green LED

1 x red LED

4 x buttons

2 x resistors (220 ohms) – resistors

4 x resistors ( 10K ohms) – buttons

 

  • How it works

My proposal includes a counter that allows to keep tracking of the correct sequence thanks to validating certain if statements. At the end, green LED lights up, and after blinking and a short delay, red light turns ON again, and it’s locked again reseting the counter to start again.

  • Any problems you encountered and/or solved

I had problems to find the correct sequence that allowed to keep the good sequence. My counter kept reseting until I debugged the code.

Images of your circuitĀ 

.

Arduino CodeĀ 

https://github.com/Lywa/carla_molins_Pcomp/tree/master/locker_v2

Leave a Reply

Your email address will not be published. Required fields are marked *