How to Get Started With Arduino

by antoine57 in Circuits > Microcontrollers

3381 Views, 59 Favorites, 0 Comments

How to Get Started With Arduino

IMG_5574[1].JPG

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!

What Is Arduino and His History.

open.jpg

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.

Arduino Uno PInout

pin.png

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!

Things You Will Need

arduino uno.jpg
jumper.jpg
breadboard.jpg
tact.jpg
red LED.jpg
buzzer.jpg
220 ohms.jpg
10k.jpg
potentiometer.jpg
cable.jpg
servo.jpg
lcd.jpg
pliers.jpg
wire striper.png
hakko.jpg
multimeter.jpg
snap.jpg

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)

Make the Onboard LED Blink

IMG_5589[1].JPG
IMG_5590[1].JPG
IMG_5745[1].JPG
IMG_5746[1].JPG
IMG_5751[1].JPG
IMG_5752[1].JPG
IMG_5753[1].JPG

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!

What Is a Breadboard?

breadboard.jpg
iinside.jpg

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.

Make an LED Blink on a Breadboard

IMG_5592[1].JPG
IMG_5593[1].JPG
IMG_5594[1].JPG
IMG_5595[1].JPG
IMG_5596[1].JPG
IMG_5597[1].JPG
IMG_5598[1].JPG
IMG_5599[1].JPG
IMG_5600[1].JPG
IMG_5601[1].JPG
IMG_5602[1].JPG
IMG_5604[1].JPG
IMG_5606[1].JPG
IMG_5607[1].JPG
IMG_5608[1].JPG
IMG_5610[1].JPG

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.

Make a Buzzer Play a Tone

IMG_5612[1].JPG
IMG_5613[1].JPG
IMG_5614[1].JPG
IMG_5615[1].JPG
IMG_5616[1].JPG

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.

Use a Tactile Switch

IMG_5617[1].JPG
IMG_5618[1].JPG
IMG_5619[1].JPG
IMG_5620[1].JPG
IMG_5621[1].JPG
IMG_5622[1].JPG
IMG_5623[1].JPG
IMG_5624[1].JPG
IMG_5625[1].JPG
IMG_5626[1].JPG
IMG_5627[1].JPG
IMG_5628[1].JPG

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!

Make a Servo Motor Move

IMG_5629[1].JPG
IMG_5630[1].JPG
IMG_5631[1].JPG
IMG_5632[1].JPG
IMG_5636[1].JPG
IMG_5637[1].JPG
IMG_5641[1].JPG
IMG_5643[1].JPG
IMG_5644[1].JPG
IMG_5646[1].JPG
IMG_5647[1].JPG
IMG_5648[1].JPG
IMG_5649[1].JPG

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!

Final Project : Write Text on 16x2 LCD

IMG_5700[1].JPG
IMG_5699[1].JPG
IMG_5698[1].JPG
IMG_5697[1].JPG
IMG_5696[1].JPG
IMG_5695[1].JPG
IMG_5694[1].JPG
IMG_5693[1].JPG
IMG_5692[1].JPG
IMG_5690[1].JPG
IMG_5689[1].JPG
IMG_5688[1].JPG
IMG_5687[1].JPG
IMG_5686[1].JPG
IMG_5685[1].JPG
IMG_5684[1].JPG
IMG_5682[1].JPG
IMG_5681[1].JPG
IMG_5680[1].JPG
IMG_5679[1].JPG
IMG_5678[1].JPG
IMG_5677[1].JPG
IMG_5676[1].JPG
IMG_5675[1].JPG
IMG_5674[1].JPG
IMG_5673[1].JPG
IMG_5672[1].JPG
IMG_5671[1].JPG
IMG_5670[1].JPG
IMG_5668[1].JPG
IMG_5666[1].JPG
IMG_5665[1].JPG
IMG_5664[1].JPG
IMG_5663[1].JPG
IMG_5662[1].JPG
IMG_5661[1].JPG
IMG_5660[1].JPG
IMG_5659[1].JPG
IMG_5658[1].JPG
IMG_5657[1].JPG
IMG_5656[1].JPG
IMG_5655[1].JPG
IMG_5654[1].JPG
IMG_5653[1].JPG
IMG_5652[1].JPG
IMG_5651[1].JPG
IMG_5650[1].JPG
lcd screen.png

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!

Resistor Hack

IMG_5701[1].JPG
IMG_5703[1].JPG
IMG_5704[1].JPG
IMG_5705[1].JPG
IMG_5706[1].JPG
IMG_5709[1].JPG

Here is a simple hack when you are using resistors on a bredboard!