Introduction: The Perfect Way to Start Off Your Arduino Experience
Electronics are taking over the world! not literally, but it is an important part for the world in future years. and with these new electronics come, so does the arduino, the third best selling computer in the world.
Blink is the most important project if you are a new arduino user.
Blink is an easy project for anybody, and it gets easier if you read this summary.
I hope reading this will help you very much.
Have a great day
Step 1: Materials
Materials for blink:
- arduino
- LED/s
- computer
- male/male wires
- breadboard
- arduino cable
- resistor
Step 2: Blink Setup
follow picture above for setup
to master blink you must start off with the original code
void setup()
{
pinMode (13 , OUTPUT); //this is what you are plugging into the arduino
}
void loop()
{
digitalWrite(13, HIGH);
delay(1000);
digitalWrite(13, LOW);
delay(1000);
}
Step 3: Don't You Want More Lights?
use picture above for setup
in blink the sky is the limit for the amount of lights you can add to your breadboard
First, you must start with the original code:
void setup()
{
pinMode (13 , OUTPUT);
}
void loop()
{
digitalWrite(13, HIGH);
delay(1000);
digitalWrite(13, LOW);
delay(1000);
}
than you fix it up with another light, like so (what is underlined is what to add to your new code)
void setup()
{
pinMode (13 , OUTPUT);
pinMode (12,OUTPUT);
}
void loop()
{
digitalWrite(13, HIGH);
delay(1000);
digitalWrite(13, LOW);
delay(1000);
digitalWrite(12, HIGH);
delay(1000);
digitalWrite(12, LOW);
delay(1000);
}
Step 4: Add More Lights
To add more lights to your arduino,
redo the underlined information from step 2,
then change the output numbers.
It's easy!
I hope you found this informative, and have a great time setting up blink.
Step 5: How to Make Your Led Blink Faster
see videos above for examples
to make a light blink faster lower the delay
delay(1000)= 1 second
delay(500)= 1/2 second
delay(2000)= 2 seconds
delay(125)=1/8 seconds
delay(250)= 1/4 seconds