Control LED With Arduino (Testing Arduino Board)

by shakeeldhanushka in Circuits > Arduino

244 Views, 1 Favorites, 0 Comments

Control LED With Arduino (Testing Arduino Board)

Untitled Sketch_bb.jpg

We can use led to test the Arduino boards and this is a good point to start Arduino. Here you will learn to connect led with Arduino and blink it.

Supplies

Arduino Uno board * 1

USB A to USB B cable * 1

LED * 1

Jumper wires

220ohm resistor * 1

Write Code to Arduino

blink_led.jpg
test.jpg

write it > verify it> upload

here I have used Arduino example code from files > example > basic > blink.

Downloads

Connecting Circuit

Untitled Sketch_bb.jpg

in here 220ohm resistor is optional because Arduino pin13 has inbuilt resistor and here were are also using pin13 to connect led. if you use another pin it will be safer to use 220ohm with led.

also we can use on-board led to this project

NOTE: Their is no anode(+) or cathode (-) to a resistor.

connect the Arduino board with your computer when your circuit is done, green color on-board led will turn on if it is connect correctly to the computer.