We started this week Design and program a smart device that perform a certain function or solve a problem: program Arduino UNO to read signals from multiple input components (Sensor, Switch, or variable resistor) to control multiple action components (Motor, Buzzer, LED...etc) using Arduino C (Text Code).
The office lamp has a sound source controlled by a keypad button.
The lamp consists of four LEDs, a buzzer, a push button, and a keypad. Each button has a function. The number one button illuminates one LED, and the number two button lights two LEDS and adds a LED up to No. 4.
Press No. 5, turn off one LED, and the light gradually decreases with pressing until No. 7.
By pressing the number 8, it lights all the LEDs sequentially from left to right and makes a sound. Pressing the number 9 reverses the direction of the LEDs, and pressing the (*) button turns off all the LEDs. If you press the (zero) button, it lights the LEDs sequentially and issues a short sound.
Press the button (#) It lights the LEDs one after the other and makes a long sound.
By pressing the push button, a sound is issued according to how long you press the button.
Thinker cad
cardboarding
Arduino
electronics
keypad 3*3
Buzzer
4 resistor
4 LEDS
jumpers
pushbutton
tools
cutter board
cutter - scissors
glue gun
Softwares
Tinkercad
Arduino ide
materials
cardboard - kitchen paper
Step one is to use TinkerCAD to connect the components and test the polarity and circuitry.
One must actually put the components together, by wiring them
but
Make sure one side of each resistor is connected to ground.
On the other side of the resistor, connect the negative side of the LED.
Make sure each leg is connected with a resistor. (except for the ground leg).
and from the resistor, a jumper wire is connected to the other jumper wires that are already hooked up with the LED's that have been mentioned earlier.
google is your besti
The office lamp has a sound source controlled by a keypad and a push button.
The number one button illuminates one LED, and the number two button lights two LEDS and adds a LED up to No. 4.
Press No. 5, turn off one LED, and the light gradually decreases with pressing until No. 7.
By pressing the number 8, it lights all the LEDs sequentially from left to right and makes a sound. Pressing the number 9 reverses the direction of the LEDs, and pressing the (*) button turns off all the LEDs. If you press the (zero) button, it lights the LEDs sequentially and issues a short sound.
Press the button (#) It lights the LEDs one after the other and makes a long sound.
By pressing the push button, a sound is issued according to how long you press the button.
Now it comes to cardboard the enclosure
Hussein helped me to understand how the keypad works and with coding by editing my bugs and how to organaized my code by comand (ctrl,T).
I got stuck controlling the LEDs with the keypad, and I reached to define every number as an a push button, so I searched for that and I found that video
I learned how to control different inputs and multi-outputs simultaneously.
Making a LEDs controller by using a keyPad and making that desk lamp .
I really enjoyed learning with Indian brothers.