Interesting Push Button
My "Interesting Push Button" causes the LEDs to light up from one end to the other. As the electricity conducts through the scissors, wire cutter, and screw driver, the lights start at LED 13 and goes to LED 9. Then they start at LED 9 again and back to LED 13. Only one light is lit at one time. Once the wire is lifted off of the screw driver, the sequence stops. It starts all over again once the wire is placed back on the screw driver. Every time the LED 13 lights up, the light on the RedBoard, 13, will light up.
CODE
int ledpin = 9;
int buttonPin = 2;
int buttonState = 0;
void setup() {
Serial.begin(9600);
pinMode(buttonPin, INPUT);
}
void loop() {
delay(100);
buttonState = digitalRead(buttonPin);
if (buttonState == HIGH)
{
Serial.println("Button Pressed");
while (ledpin >=9)
{
pinMode (ledpin, OUTPUT);
digitalWrite(ledpin, HIGH);
delay(100);
digitalWrite(ledpin, LOW);
ledpin=ledpin-1;
}
{
Serial.println("Waiting");
while (ledpin <= 13)
{
pinMode (ledpin, OUTPUT);
digitalWrite(ledpin, HIGH);
delay(100);
digitalWrite(ledpin, LOW);
ledpin=ledpin+1;
}
}
ledpin = 9;
ledpin = 13;
}
}
URL to Video
https://www.youtube.com/watch?v=3bdYIU7NU1o&feature=youtu.be
Tuesday, February 28, 2017
Tuesday, January 17, 2017
Arduino Projects
The Word Clock
The first Arduino Project I thought was extremely cool was "The Word Clock". One day, a husband wanted to give his wife a beautiful gift. Knowing she was an English teacher, he thought it would be unique to make her a word clock. This clock is all words instead of numbers, and the lights go to the correct words that correlate with the time. I think this clock is extremely cool because it has the power to tell the time in many different ways. For example, instead of saying 9:35, the clock says, "It's twenty five minutes to ten." I can't imagine how he got this to work, but it's one of the coolest things I have ever seen.Link: http://www.instructables.com/id/The-Word-Clock-Arduino-version/
Addressable Milk Bottles (LED Lighting + Arduino)
The second Arduino project I found interesting was the addressable milk bottles. Used PPE milk bottles can be used as LED lights and are environmentally friendly. This helps with reusing milk bottles and uses less than 3 watts, but still bright enough to see by. I think this is a cool project because along with helping the environment, it's also very aesthetically pleasing. The light glow it gives is very calming and peaceful. It's a beautiful and useful way to reuse a simple product like a milk bottle.
Link: http://www.instructables.com/id/Milk-Bottle-LED-Lights-Arduino-Controlled/
Subscribe to:
Comments (Atom)

