Get Started With Arduino: Beginners Arduino Kit
by harshithar76 in Circuits > Arduino
279 Views, 0 Favorites, 0 Comments
Get Started With Arduino: Beginners Arduino Kit
Arduino is a go to board for many electronic projects. It can be used in projects with prototyping shields and it has a large collection of libraries and hence programming an Arduino board is simple. There are many variants in Arduino such as Arduino Uno, Arduino Nano, Arduino Micro, Arduino Leonardo and the list goes on. The most popular board among these is Arduino Uno. Unlike many other programmable circuit boards Arduino doesn't need a separate piece of hardware to program a code onto the board, a simple USB cable does the job. Platform to develop a code for Arduino is provided by Arduino team itself called Arduino IDE.
This beginners kit for getting started with Arduino includes basic components along with an Arduino Uno and a few simple projects that will help a beginner to learn how to use Arduino.
Supplies
This Arduino kit includes following components:
- Arduino Uno
- Prototyping Shield
- Bread board
- Servo motor
- DC motor
- Fan Blade
- Mini IR Remote Controller
- Relay
- 10K Potentiometer
- Resistors - 1K, 220R, 4.7K, 10K
- 9V battery
- 6xAA Battery Holder with power jack
- RGB LED 5MM
- LED 5MM
- Tilt Switch Sensor
- LM35 Temperature Sensor
- Ambient Light Sensor
- HC-SR04 Ultrasonic sensor module
- Mini Pushbutton Switcher
- Buzzer
- IR Receiver
- 12V 1A Adapter
- Jumper Cables- M/M, F/M
- 16x2 LCD module
- 4-Digit 7 segment display
- 1- Digit 7 segment display
A Simple Arduino Project Using Ultrasonic Sensor
This is a very simple project using Arduino UNO.
Here, we are using an LED that blinks when there is an object within a specified distance of ultrasonic sensor.
The distance value that we have taken is 10cm in the code. So, whenever there is an object in front of sensor within 10cm the led glows. And as the object moves away from the specified distance the led turns off.
Components Required
The components required for building this project are:
- Arduino UNO
- Breadboard
- Ultrasonic Sensor
- USB cable
- Jumper cables
- 1K ohm resistor
- LED
Making Connections
Next step is to connect all the components.
Rig up the circuit as per the code.
Type and Upload the Code
Download Arduino IDE to type the following code. Arduino IDE is an open source provided by Arduino company itself. Connect the Arduino UNO board to computer through USB programming cable. Then, compile and upload the code to the board.
Use the following code for this project:
#define trigPin 13
#define echoPin 12
#define led 11
void setup() {
Serial.begin (9600);
pinMode(trigPin, OUTPUT);
pinMode(echoPin, INPUT);
pinMode(led, OUTPUT);
}
void loop() {
long duration, distance;
digitalWrite(trigPin, LOW);
delayMicroseconds(2);
digitalWrite(trigPin, HIGH);
delayMicroseconds(10);
digitalWrite(trigPin, LOW);
duration = pulseIn(echoPin, HIGH);
distance = (duration/2) / 29.1;
if (distance < 10) { digitalWrite(led,HIGH);
}
else
{
digitalWrite(led,LOW);
}
Serial.print(distance);
Serial.println(" cm");
delay(500);
}
Testing
In the first image there is no object kept in front of the ultrasonic sensor. Hence, the LED is not blinking.
Whereas in the second image, the LED is blinking as there is an object kept within 10cm distance from the sensor.
This project helps us to learn three things:
- How to use Arduino UNO to control a process.
- How to program an Arduino.
- How ultrasonic sensors work.