top of page

Playing With Arduino

Arduino Output
I was asked to create a circuit and code that lights up four LED lights one at a time and then plays a tune when all four LED lights have lit up. Before each LED lights up, a message is sent to the terminal noting what LED will light up next (e.g., “LED on pin 6 turns on”).
Images and link to video of the final product below:
(Left: Lilly Pad; Middle: 4 LED lights after they are all turned on; Right: buzzer)
Links:
Link to video.
Link to download the part of the code that lights up four LED lights one at a time and send a message to the terminal noting what LED will light up next:
Arduino Input
I was asked to create a circuit and code that:
• one LED light turns
- on if the light sensor notes that the room is dark
- off if the light sensor notes that the room is bright
• another LED light turns
- on if a button is pushed
- off when the button is released
Images and link to video of the final product below:
Left: light sensor and LED light circuit; Right: Button and Light sensor circuit
Links:
Link to video
Link to part of code that turns one LED light on if the light sensor notes that the room is dark or on if the room is bright:
Arduino System
I was asked to develop a system, circuit, and code that will record: how long someone is sitting and save how much time the person spends doing so.
It was requested that four independent LED lights will indicate how long a person has been in the condition by having each light represent 30 seconds. Thus, after 30 seconds, the first light turns on; after 1 minute the second light turns on; etc. A fifth independent LED notes when a person is not in the condition (e.g., when the person is inside the 5th LED lights up, but turns off when the person is outside). When the LilyPad Arduino is connected to a computer, it will be able to share how long a person was in the condition through the serial connection.
Images and link to video of the final product below: 
Left: Button; Middle: 5th LED that stays on when button is not presses; Right: LED lights that turns on while button is pressed.
There is only three LED's lights being visibly turned on because I only had 4,
but it is programed and wired and will worked if another LED was connected.
Links:
Link to Video
Link to the part of the code that lights up the 4th LED after 20 seconds (of the button being pressed).
bottom of page