I made my LED light blink green using the arduino board.
Components used:
The 220 ohm resistor
The ground and live wires
The pre-coded program in the Arduino environment.
The USB Cable
The bread board
The 2 rubber bands
The blue wire to complete the circuit
The green LED
I used the USB cable to connect the assembled components to my laptop to upload the code to the arduino board. Here is the code that was used:
/*
* Blink
*
* The basic Arduino example. Turns on an LED on for one second,
* then off for one second, and so on... We use pin 13 because,
* depending on your Arduino board, it has either a built-in LED
* or a built-in resistor so that you need only an LED.
*
*/
int ledPin = 13; // LED connected to digital pin 13
void setup() // run once, when the sketch starts
{
pinMode(ledPin, OUTPUT); // sets the digital pin as output
}
void loop() // run over and over again
{
digitalWrite(ledPin, HIGH); // sets the LED on
delay(1000); // waits for a second
digitalWrite(ledPin, LOW); // sets the LED off
delay(1000); // waits for a second
}
Comments
feedback
Looks Good! Please separate the components into a different section though. Refer to my example report for guidance.
congrats!
dave