Arduino
Arduino
Arduino is an Open-source-electronic-prototyping-base for simple used
hardware and software in the field of microcontroller.
Parts of Arduino
Connection
● LED positive to digital pin 12
● LED negative to GND pin
LED Connection to Arduino
Long leg - 12
Short leg - GND
Connect the USB cable to laptop
Programming
To make the programming easy we will be using
graphical programming to code Arduino
TinkerCAD
1. Go to [Link]
2. Create an account/login to tinkercad
3. Click ‘Create’
4. Select ‘Circuits’.
● Click on ‘Arduino UNO’.
● Then click on ‘Code’.
Delete the blocks which are already there. Drag and drop all the blocks to
the bin icon.
● Click on ‘Output’.
● Click and drag the ‘set pin 0 to HIGH’ block.
● Change the pin number to 12.
This block will switch on the LED bulb connected to pin 12.
To switch it on forever, let’s add a forever block.
Go to ‘Control’ category.
Drag and drop the ‘forever’ block.
Add a wait block to give a delay time for the
block.
Download the program to the Arduino
board.
Download and install Arduino IDE in your computer.
Please go to the link below to download the IDE.
[Link]
Download the program to the Arduino board.
Click the download button to download the
code from TinkerCAD.
● Open the file from the downloads folder in your computer using Arduino IDE.
● Connect the board to the computer using the USB cable.
● Select the board ‘Arduino UNO’
● Click on the upload button(Arrow icon).
Projectboard connection
Short leg - Series pin
Long leg - Parallel pin
Connect wires to series and
parallel pins
Connect wire from series
pin to GND
Connect other wire to pin 13
How can we connect more than one LED?
LED 1
Short leg - Pin 8
Long leg - Pin 9
LED 2
Short leg - Pin 10
Long leg - Pin 11
Connect one more LED
Connect three
LEDs
Short legs
Long legs
Let's make an LED Blinking circuit
with Arduino
Challenge
Make combinations of LED and let it blink
in different ways