Introduction: How to Get Started With Arduino
So you want to get started with Arduino huh? Well, you came to the right place. Today, i'm gonna show you how to get started with Arduino. Lets go!
Step 1: What Is Arduino and His History.
Arduino is a computer and software community. They manufactures microcontroller boards and kits for building projects. The project is distributed as open-source hardware and sofware. This means permetting the manufacture of Arduino boards and software by anyone. The boards feature an USB to serial communication interface. The microcontrollers are programmed in a language called C and C++. Also, the Arduino Project provide and Integrated Develepment Environement (IDE) based on the Processing language project
The Arduino started in 2005 as a program for students at the Interaction Desing Institue in Ivrea, Italy. The goal was to provide a low-cost and easy way for novices and professionals to create devices that interact with their environment using sensors and actuators. The name Arduino comes from a bar in Ivrea, Italy, where the founders of the project used to meet. The bar was named after Arduino of Ivrea, who was the margrave of the March of Ivrea and King of Italy from 1002 to 1014.
The Arduino is open-source hardware. The designs are disributed under Creative Commons Attribution Share-Alike 2.5 license. An official Bill of Materials of Arduino boards has never been released by the Arduino staff. The developers have requested that the name Arduino be exclusive to the official product and not be used for derived works without permission. The Arduino Uno consist of an Atmega328P-20PU chip from Atmel.
Step 2: Arduino Uno PInout
Step 3: Download the Arduino IDE
Follow these steps to download the Arduino IDE:
1. Go to https://www.arduino.cc/en/Main/Software
2. Click on Software
3. Click on either Windows, Mac or Linux.
4. You can donate if you want or just download.
5. When this is done, you will simply need to continue the steps to download it to your computer.
6. You are done!
Step 4: Things You Will Need
For this project, you will need:
1x Breadboard
1x Set of Jumper Wire
1x Arduino Uno ( I'm using a clone from China)
1x 5mm red LED
1x 220 Ohm resistor
1x 10k Ohm resistor
1x 5v Buzzer
1x 10k Potentiometer
1x Tactile Switch
1x 16x2 LCD display
1x Servo Motor
1x 9v battery and snap (optional)
1x USB type A to B cable
1x Multimeter (optional)
1x pair of pliers (optional)
1x diagonal cutters (optional)
1x Wire stripper (optional)
Step 5: Make the Onboard LED Blink
Are you ready for your first Arduino Project? Lets go!
Its gonna be easy if you follow these steps.
1. Plug the arduino to your computer using the USB cable.
2. You will see 2 LEDs light up, one meaning the board is ON and the other indicating that the bootloader is working.
3. Open your Arduino IDE.
4. Go to File -) Exemples -) Basic -) Blink.
5. Click on Upload, on the left of the screen.
6. It will say Done uploading is there is no problems.
7. If there is an error, please visit the arduino website, and they will be happy to assist you.
8. The LED will blink!
9. Bravo! You've just done your first Arduino Project!
Step 6: What Is a Breadboard?
A breadboard is a cutting board to cut bread. Yeah, trust me!
Just kiddng! Its a prototyping platform, where you can plug components and remove them easily. Please refer to the photo to see how its made inside. There usualy is 2 bands on each sides indicating the power rails. Its made to easily connect all of the (-) and (+) together.
Step 7: Make an LED Blink on a Breadboard
You will need:
Breadboard x1
Arduino Uno x1
Jumper wires x1
220 ohms resistor x1
LED x1
USB cable x1
1. Take a red jumper and connect it to the red power rail. Connect the other end to the other red rail.
2. Do the same with the blue rail. Use a blue jumper instead of a red.
3. Take a red jumper, and connect it to 5V on the arduino. Connect the other end to one of the red power rails on the breadboard.
4. Connect a blue jumper to GND on arduino. Connect the other end to one of the blue power rails on the breadboard.
5. The LED as 2 leads. A short one and a long one. The long one indicate the positive (+) lead and the short one, the negative (-) lead. Its important to place the LED correctly because if you put in in the wrong way, it will not work.
6. Put the Long (+) lead at the left on the breadboard ( like shown in the photo)
7. Take the resistor and place one of his lead into the LED positive lead ( the left pin)
8. Take a red jumper, and connect it to the other resistor lead. Connect the other end to Arduino pin 13.
9. Take a blue jumper, and connect it to the blue power rail on the breadboard.
10. Connect your arduino via USB and watch the LED blink.
* Note that we did not uploded any code to the board because the blink sketch is already uploaded.
Step 8: Make a Buzzer Play a Tone
The next thing we will do is make a buzzer play a tone.
We will basiclly remove the LED and resitor and replace it with a buzzer.
You will need:
Breadboard x1
Jumper Wires x1
Arduino Uno x1
5v buzzer x1
USB cable x1
1. Remove the LED and the 220 ohm resistor from the bredboard.
2. Place the buzzer negative (-) lead on the blue jumper wire.
3. Take the red jumper, and connect it to the other positive (+) lead on the buzzer.
4. Plug your USB cable into your Arduino
5. Your done!
* Note that we did not uploded any code to the board because the blink sketch is already uploaded.
Step 9: Use a Tactile Switch
For our next project, we are gonna use a tactile switch to turn on or off an LED.
You will need:
Arduino Uno x1
Breadboard x1
Jumper wires x1
Tactile switch x1
10k resistor x1
USB cable x1
1. Place the tactile switch into the breadboard as shown in the photo.
2. Place the 10k resistor on pin n.2 on the tactile switch ( the right most pin)
3. Take a red jumper and connect it to the other resistor lead.
4. Take the other end of the jumper and connect it to the blue negative rail of the breadboard.
5. Take an other jumper wire and connect it to the left pin of the tactile switch.
6. Connect the other end to the red positive rail of the breadboard.
7. Finally, connect a yellow wire from the top right pin of the tactile switch, to pin 2 of the arduino.
8. Connect your Arduino to you PC with the USB cable and open the IDE.
9. Go to File -) Exemple -) Digital -) Button and upload it to the arduino board.
How to use,
Press on the switch and watch the onboard LED light up!
Step 10: Make a Servo Motor Move
Ok! Now its time to make a servo motor move!
You will need:
Servo Motor x1
Breadoard x1
Arduino Uno x1
Jumper Wires x1¸
USB cable x1
1. connect the red middle pin of the servo to 5v on the breadboard
2. Plug the brown servo wire to GND on the breadboard
3. Connect the yellow servo wire to pin 9 on the Arduino.
Adjust The servo horn
1. Place horn on the servo motor.
2.Turn it conter-clockwise until it stop.
3. Pull the horn out of the servo
4. Place it again in the middle.
4. PLug the USB cable into your arduino and in your computer.
5. Open the IDE and go to file -) Exemples-) Sevo -) Sweep
6. Upload the code into your Arduino
7. Your are done!
Step 11: Final Project : Write Text on 16x2 LCD
Are you ready for your final project? You've made it! Almost...
We are gonna write text on a simple 16x LCD screen.
You will need:
Arduino Uno x1
Breadboard x1
USB cable x1
10k Potentiometer x1
16x2 LCD x1
Jumper Wires x1
* The photos order is in the wrong way around. Please start with the very last photo ( step 1).
1. Because now you are an expert at electronic, im not gonna explain you step by step every steps, but i have pictures and a bredboard layout.
2. Connect your arduino with the USB cable to your computer.
3. Open the IDE and go to File -) Exemples -) LiquidCrystal -) HelloWorld.
4 Click the upload button.
5. Your done! Finally!
Step 12: Resistor Hack
Here is a simple hack when you are using resistors on a bredboard!