Project Three: Blink 2 leds using Arduino board
Project Two: Blink 2 leds using Arduino board
Project Three: Blink 2 leds using Arduino board will basically get you up and blink two leds using Arduino board.
Components
Quantity | Module/component | Description | price Range |
1 | Arduino board (Uno)+Cable | more | 1200-2500/= |
2 | Resistor | Any electronics supply store | 10-20/= |
2 | LED | From 1k Ω to 2KΩ | 10-20/= |
7 | Connecting Wires (Jumpers) | learn more | 50/= |
1 | Breadboard | learn more | 150/= |
Send us a request using the contact section if you don't have any.
Note: In this project, we are using 2 Resistors ( 1k resistor ), 2 Leds, Arduino pin 6, Pin 7 and Gnd pin to create a connection(Circuit)
Project summary
1. From led Anode pin (longer leg)
led Anode pin >>>Resistor end >>> then the other side of the resistor end to Pin 7(Arduino)
2. From led cathode (shorter leg)
led cathode >>>Ground pin (Arduino GND)
3. Plug the power into the Arduino.
Now copy the code below and paste it Arduino IDE and upload to Arduino 4. After successful upload led should blink The LED should light up.
1. From led Anode pin (longer leg)
led Anode pin >>>Resistor end >>> then the other side of the resistor end to Pin 7(Arduino)
2. From led cathode (shorter leg)
led cathode >>>Ground pin (Arduino GND)
3. Plug the power into the Arduino.
Now copy the code below and paste it Arduino IDE and upload to Arduino 4. After successful upload led should blink The LED should light up.
Note: Will be using /*comment goes here*/ or //comment goes here as comment
More about comment
Comments are lines in the program that are used to inform developer or others about the way the program works. Comments are ignored by the compiler, in this case, we are using Arduino IDE as a compiler.
project code
/////////////////////////////////////////////////////
Your final code without comments should look like as follows:
/////////////////////////////////////////////
altering the code
By altering the code for the delay you can create something a little more interesting
You can also replace above code with this one
//////////////////////
Need help? please contact us
Comments
Post a Comment