SmartKit UserGuide
SmartKit UserGuide
www.quadstore.in
3
Introduction:
Understanding Arduino Uno R3 board
There are many varieties of Arduino boards that can be used for different purposes. Some boards look a bit
different from the one below, but most Arduino’s have majority of these components in common:
Note:
Do NOT use a power supply greater than 20 Volts as you will overpower (and thereby destroy) your Arduino.
The recommended voltage for most Arduino models is between 6 and 12 Volts.
Pins (5V, 3.3V, GND, Analog, Digital, PWM, AREF)
The pins on your Arduino are the places where you connect wires to construct a circuit (probably in conjuction
with a breadboard and some wire. They usually have black plastic ‘headers’ that allow you to just plug a wire
right into the board. The Arduino has several different kinds of pins, each of which is labeled on the board and
used for different functions.
* GND (3): Short for ‘Ground’. There are several GND pins on the Arduino, any of which can be used to ground
your circuit.
* 5V (4) & 3.3V (5): As you might guess, the 5V pin supplies 5 volts of power, and the 3.3V pin supplies 3.3
volts of power. Most of the simple components used with the Arduino run happily off of 5 or 3.3 volts.
* Analog (6): The area of pins under the ‘Analog In’ label (A0 through A5 on the UNO) are Analog In pins. These
pins can read the signal from an analog sensor (like a temperature sensor) and convert it into a digital value
that we can read.
* Digital (7): Across from the analog pins are the digital pins (0 through 13 on the UNO). These pins can be
used for both digital input (like telling if a button is pushed) and digital output (like powering an LED).
www.quadstore.in
www.quadstore.in
4
* PWM (8): You may have noticed the tilde (~) next to some of the digital pins (3, 5, 6, 9, 10, and 11 on the UNO).
These pins act as normal digital pins, but can also be used for something called Pulse-Width Modulation
(PWM). We have a tutorial on PWM, but for now, think of these pins as being able to simulate analog output
(like fading an LED in and out).
* AREF (9): Stands for Analog Reference. Most of the time you can leave this pin alone. It is sometimes used
to set an external reference voltage (between 0 and 5 Volts) as the upper limit for the analog input pins.
Reset Button
Just like the original Nintendo, the Arduino has a reset button (10). Pushing it will temporarily connect the
reset pin to ground and restart any code that is loaded on the Arduino. This can be very useful if your code
doesn’t repeat, but you want to test it multiple times. Unlike the original Nintendo however, blowing on the
Arduino doesn’t usually fix any problems.
TX RX LEDs
TX is short for transmit, RX is short for receive. These markings appear quite a bit in electronics to indicate
the pins responsible for serial communication. In our case, there are two places on the Arduino UNO where TX
and RX appear – once by digital pins 0 and 1, and a second time next to the TX and RX indicator LEDs (12).
These LEDs will give us some nice visual indications whenever our Arduino is receiving or transmitting data
(like when we’re loading a new program onto the board).
Main IC
The black thing with all the metal legs is an IC, or Integrated Circuit (13). Think of it as the brains of our Arduino.
The main IC on the Arduino is slightly different from board type to board type, but is usually from the ATmega
line of IC’s from the ATMEL company. This can be important, as you may need to know the IC type (along with
your board type) before loading up a new program from the Arduino software. This information can usually be
found in writing on the top side of the IC. If you want to know more about the difference between various IC’s,
reading the datasheets is often a good idea.
Voltage Regulator
The voltage regulator (14) is not actually something you can (or should) interact with on the Arduino. But it is
potentially useful to know that it is there and what it’s for. The voltage regulator does exactly what it says – it
controls the amount of voltage that is let into the Arduino board. Think of it as a kind of gatekeeper; it will turn
away an extra voltage that might harm the circuit. Of course, it has its limits, so don’t hook up your Arduino
to anything greater than 20 volts.
www.quadstore.in
5
www.arduino.cc/en/Main/Software
www.quadstore.in
www.quadstore.in
Beginner Level Projects 6
For different operating system platforms, the way of using Arduino IDE is different. Please refer to the following
links: Windows User: http://www.arduino.cc/en/Guide/Windows Mac OS X
User:http://www.arduino.cc/en/Guide/MacOSX Linux User: http://playground.arduino.cc/Learning/Linux
For more detailed information about Arduino IDE, please refer to the following link: http://www.arduino.cc/en/
Guide/HomePage
www.quadstore.in
7 Beginner Level Projects
STEP-3: Install Drivers
Depending on your computer’s operating system, you will need to follow specific instructions. Please go
to the URLs below for specific instructions on how to install the drivers onto your Arduino Uno.
Go to the web address below to access the instructions for installations on a Windows-based computer.
http://arduino.cc/en/Guide/Windows
Macs do not require you to install drivers. Enter the following URL if you have questions. Otherwise
proceed to next page.
http://arduino.cc/en/Guide/MacOSX
32 bit / 64 bit, Installation Process Go to the web address below to access the instructions for
installations on a Linux-based computer.
http://www.arduino.cc/playground/Learning/Linux
www.quadstore.in
www.quadstore.in
Beginner Level Projects 8
Upload
Compiles your code and uploads it to the configured board. See uploading below for details.
NOTE:
If you are using an external programmer with your board, you can hold down the "shift" key on your
computer when using this icon. The text will change to "Upload using Programmer"
New
Creates a new sketch.
Open
Presents a menu of all the sketches in your sketchbook. Clicking one will open it within the current
window overwriting its content.
NOTE:
due to a bug in Java, this menu doesn't scroll; if you need to open a sketch late in the list, use the File |
Sketchbookmenu instead.
Save
Saves your sketch.
Serial Monitor
Opens the serial monitor.
www.quadstore.in
9 Beginner Level Projects
STEP-5: Select your board: Arduino Uno
Mac OS: Select the serial device of the Arduino board from the Tools > Serial Port menu. On the Mac, this
should be something with /dev/tty.usbmodem (for the Uno or Mega 2560) or /dev/tty.usbserial (for older
boards) in it.
Linux: http://playground.arduino.cc/Learning/Linux
www.quadstore.in
www.quadstore.in
Beginner Level Projects 10
If you already have arduino code in your systemfolders then just open it. Select the correct COM port
for the bord. Then Click on verify button. Once the code is compiled without any error then click on
upload button. Once the code is uploaded you will see a message at the bottom stating .
Now your code has been successfully uploaded.....
Alternatively, if you want to upload an example code you can go to File -> Examples -> and click on the
example code you wish to upload.
www.quadstore.in
11 Beginner Level Projects
Project 2:
Installing Libraries
What are Libraries?
Libraries are a collection of code that makes it easy for you to connect to a sensor, display, module, etc.
For example, the built-in LiquidCrystal library makes it easy to talk to character LCD displays. There are
hundreds of additional libraries available on the Internet for download. The built-in libraries and some
of these additional libraries are listed in the reference. To use these additional libraries, you will need to
install them.
The library manager will open and you will find a list of libraries that are already installed orready for
installation. In this example, we will install the Bridge library. Scroll down the list to findit,thenselectthe
versionofthelibraryyouwanttoinstall.Sometimes,onlyoneversionof the library is available. If the version
selection menu does not appear, don't worry; it is normal.
www.quadstore.in
www.quadstore.in
Beginner Level Projects 12
Finally click on install and wait for the IDE to install the new library. Downloading may take time depending
on your connection speed. Once it has finished, an Installed tag should appear next to the Bridge library.
You can close the library manager.
You can now find the new library available in the Include Library menu.
Method-2: Importing a .zip library (Recommended for all the projects which we
use)
LibrariesareoftendistributedasaZIPfileorfolder.Thenameofthefolderisthenameofthe library. Inside the
folder will be the following: .cpp file, .h file, often a keywords.txt file, examples folder, and other files
required by the library. Starting with version 1.0.5, you can install third-party libraries in the IDE. Do not
unzip the downloaded library; leave itas-is.
In the Arduino IDE, navigate to Sketch > Include Library > Add .ZIP Library.
www.quadstore.in
13 Beginner Level Projects
You will be prompted to select the library you would like to add. Navigate to the .zip file's location and
open it.
Return to the Sketch > Import Library menu. You should now see the library at the bottom of the drop-
down menu. It is ready to be used in your sketch. The zip file will have been expanded in the libraries folder
in your Arduino sketches directory.
NB: The Library will be available to use in sketches, but examples for the library will not be shown in the
File > Examples until after the IDE has restarted.
www.quadstore.in
www.quadstore.in
Beginner Level Projects 14
Project 3:
Serial Monitor – Send Data
We will use the serial port on UNO R3 to send data to computer
Parts Required:
• Uno R3 board, USB Cable
Interface of Serial Monitor window is as follows. If you can't open it, make sure UNO had been connected
to the computer, and choose the right serial port in the menu bar "Tools".
www.quadstore.in
15 Beginner Level Projects
Circuit Connection:
Connect UNO to the computer with USB cable.
www.quadstore.in
www.quadstore.in
Beginner Level Projects 16
Project 4:
Serial Monitor – Receive Data
We will use the serial port to receive data from Uno R3.
Parts Required:
• Uno R3 board, USB Cable
Circuit Connection:
Connect UNO to the computer with USB cable
Code: Verify and Upload the code named “Serial_Receive_Data.ino” to Uno R3 board
Output: Open the “Serial Monitor”, then you'll see the number constantly sent from UNO.Fill character in the
sending area, and click the Send button, then you'll see the string returned from UNO.
www.quadstore.in
17 Beginner Level Projects
Project 5:
Blinking LED using UNO R3 boards built-in LED
Make an inbuilt led below 13th pin blink.
Parts Required:
• Uno R3 board, USB Cable
Circuit Connection:
Connect the uno r3 board to the computer using the usb cable.
Code: Verify and Upload the code named “Blinking_LED_inbuilt.ino” to Uno R3 board.
Output: LED blinks continuously in certain interval.
www.quadstore.in
www.quadstore.in
Beginner Level Projects 18
Project 6:
Blinking LED using an external LED
Make an external LED blink.
Parts Required:
• Uno R3 board, USB Cable
* Breadboard
* Few jumper wires
* LED
* Resistor – 220ohm
Circuit Connection:
Provide the connection as per the below circuit.
Code: Verify and Upload the code named “Blinking_LED_external.ino” to Uno R3 board
Output: LED blinks continuously in certain interval
www.quadstore.in
19 Beginner Level Projects
Project 7:
Smooth LED
Make an LED blink smoothly.
Parts Required:
* Uno R3 board, USB Cable
* Breadboard
* Few jumper wires
* LED
* Resistor – 220ohm
Circuit Connection:
Provide the connection as per the below circuit.
Code: Verify and Upload the code named “Blinking_LED_smoothly.ino” to Uno R3 board
Output: LED will turn from low brightness to high and vice versa.
www.quadstore.in
www.quadstore.in
Beginner Level Projects 20
Project 8:
Smooth LED
Turn the Led ON by pressing push button.
Parts Required:
* Uno R3 board, USB Cable
* Breadboard
* Few jumper wires
* LED
* Resistor – 220ohm
* Push Button
Circuit Connection:
Provide the connection as per the below circuit.
Code: Verify and Upload the code named “PushButton.ino” to Uno R3 board.
Output: Press the Push Button and you will see the LED glow.
www.quadstore.in
21 Beginner Level Projects
Project 9:
Potentiometer
Adjust the brightness of Led using potentiometer.
Parts Required:
* Uno R3 board, USB Cable
* Breadboard
* Few jumper wires
* LED
* Resistor – 220ohm
* Potentiometer
Circuit Connection:
Provide the connection as per the below circuit.
Code: Verify and Upload the code named “Potentiometer.ino” to Uno R3 board
Output: Rotate the potentiometer from left to right to see the brightness of the LED changing.
www.quadstore.in
www.quadstore.in
Beginner Level Projects 22
Project 10:
Photoresistor
Adjust the brightness of Led using photoresistor.
Parts Required:
* Uno R3 board, USB Cable
* Breadboard
* Few jumper wires
* LED
* Resistor – 220ohm for LED
* 3 pin Photoresistor
Circuit Connection:
Provide the connection as per the below circuit.
Code: Verify and Upload the code named “Photoresistor.ino” to Uno R3 board
Output: Close the photoresistor with your finger to see the intensity of the LED increase.
www.quadstore.in
23 Beginner Level Projects
Project 11:
RGB Led
Turn on the RGB led to see different colors pop up.
Parts Required:
* Uno R3 board, USB Cable
* Breadboard
* Few jumper wires
* RGB LED Module
Circuit Connection:
Provide the connection as per the below circuit.
Code: Verify and Upload the code named “RGB_LED.ino” to Uno R3 board
Output: Color of the LED changes from RED to GREEN to BLUE in cycles.
www.quadstore.in
www.quadstore.in
Beginner Level Projects 24
Project 12:
Active Buzzer
Make the buzzer beep in certain interval.
Parts Required:
* Uno R3 board, USB Cable
* Breadboard
* Few jumper wires
* Active Buzzer (Identification: Has a small sticker on top of it. Remove this sticker before use)
* Resistor – 220ohm
Circuit Connection:
Provide the connection as per the below circuit.
Code: Verify and Upload the code named “Active_Buzzer.ino” to Uno R3 board
Output: Active Buzzer will beep continuously in certain interval.
www.quadstore.in
25 Beginner Level Projects
Project 13:
Passive Buzzer or Tone Generator
Hear the tone/music through passive buzzer.
Parts Required:
* Uno R3 board, USB Cable
* Breadboard
* Few jumper wires
* Passive Buzzer or Tone Generator
* Resistor – 220ohm
Circuit Connection:
Provide the connection as per the below circuit.
Code: Verify and Upload the code named “Passive_Buzzer.ino” to Uno R3 board
Output: Produces musical tones.
www.quadstore.in
www.quadstore.in
Beginner Level Projects 26
Project 14:
Passive Buzzer or Tone Generator
Make the servo rotate from from 0 to 180 degrees and vice versa.
Parts Required:
* Uno R3 board, USB Cable
* Male to Male Jumper Wires
* Servo Motor
Circuit Connection:
Provide the connection as per the below circuit.
Code: Verify and Upload the code named “Servo.ino” to Uno R3 board
Output: Servo arm will rotate from 0 to 180 degrees and comes back to its original position
www.quadstore.in
27 Beginner Level Projects
Project 15:
Servo control through potentiometer
Control the rotation of servo using potentiometer.
Parts Required:
* Uno R3 board, USB Cable
* Breadboard
* Male to Male Jumper Wires
* Servo Motor
* Potentiometer 10k
Circuit Connection:
Provide the connection as per the below circuit.
Code: Verify and Upload the code named “Servo_Potentiometer.ino” to Uno R3 board
Output: Rotate the potentiometer from left to right and see the rotation of the servo arm based on the
rotation of potentiometer.
www.quadstore.in
www.quadstore.in
28
Parts Required:
* Uno R3 board, USB Cable
* Few jumper wires
* 3pin DHT11 Sensor
Circuit Connection:
Provide the connection as per the below circuit.
Library: Install DHT.zip library before uploading the code.Otherwise your code will give error message.
Code: Verify and Upload the code named “DHT11_TempSensor_3pin.ino” to Uno R3 board.
Output: Open “Serial Monitor” to see the current temperature and humidity displayed.
www.quadstore.in
29 Intermediate Level Projects
Project 17:
1-digit 7 Segment Display
Display numbers from 0 to 9 in the 1-digit 7 Segment display.
Parts Required:
* Uno R3 board, USB Cable
* Breadboard
* Few jumper wires
* Resistor – 1Kohm
* 1-digit 7 Segment Display
Circuit Connection:
Provide the connection as per the below circuit.
Library: Install SevSeg.zip library before uploading the code. Otherwise your code will give error message.
Code: Verify and Upload the code named “1Digit_7Segment.inio” to Uno R3 board
Output: You can see the numbers displayed from 0 to 9.
www.quadstore.in
www.quadstore.in
Intermediate Level Projects 30
Project 18:
i2c 1602 Lcd Display
Display counter number in 1602 display.
Parts Required:
* Uno R3 board, USB Cable
* Few jumper wires
* I2c 1602 LCD display
Circuit Connection:
Provide the connection as per the below circuit.
Library: Install Newliquidcrystal_1.3.5 library before uploading the code. Otherwise your code will give
error message.
Code: Verify and Upload the code named “i2c_1602_LCDdisplay.ino” to Uno R3 board
Output: You will see LCD display counters with increase in number for every blink.
www.quadstore.in
31 Intermediate Level Projects
Project 19:
Ultrasonic Sensor HC-SR04
Display the distance of object in serial monitor.
Parts Required:
* Uno R3 board, USB Cable
* Few jumper wires
* Ultrasonic Sensor HC-SR04
Circuit Connection:
Provide the connection as per the below circuit.
Code: Verify and Upload the code named “Ultrasonic_Sensor.ino” to Uno R3 board
Output: Open “Serial Monitor”. Place any object in front of the ultrasonic sensor and move the object closer
and further to see the distance displayed in serial monitor.
www.quadstore.in
www.quadstore.in
Intermediate Level Projects 32
Project 20:
1 channel Relay
Turn on the LED and DC motor using relay module.
Parts Required:
* Uno R3 board, USB Cable
* Breadboard
* Few jumper wires
* 1 Channel Relay.
Circuit Connection:
Provide the connection as per the below circuit.
Code: Verify and Upload the code named “Relay.ino” to Uno R3 board
Output: The relay will switch ON and OFFin certain interval continuously.
www.quadstore.in
33 Intermediate Level Projects
Project 21:
Bluetooth HC-05 or HC-06
Control LED turn ON and OFF using Bluetooth mobile app.
Parts Required:
* Uno R3 board, USB Cable
* Breadboard
* Few jumper wires
* Bluetooth HC-05 module(or) HC-06 module
* LED
* Resistor – 220ohm
* Install “Arduino Bluetooth Controller” App from Playstore
Circuit Connection:
Provide the connection as per the below circuit. Connection is same for both HC-05 or HC-06 modules.
Follow the below steps to perform proper connection between phones Bluetooth app and HC-05/06
module.
1. Before uploading the code, you need to remove the VCC pin from Bluetooth HC-05/06 module.
2. Code: Verify and Upload the code named “Bluetooth_HC05.ino” to Uno R3 board
www.quadstore.in
www.quadstore.in
Intermediate Level Projects 34
3. Connect the VCC pin back to Bluetooth HC-05/06 module.
4. Enable Bluetooth in your mobile setting and click on Pair new device.
5. You should see the device name HC-05 or HC-06 based on your bluetooth module.
www.quadstore.in
35 Intermediate Level Projects
8. Device will be successfully paired with your mobile. But still you will see the led in the bluetooh HC-05 or
HC-06 module blinking.
9. Install the app named “Arduino bluetooth Controller” from Playstore
10. Open the app and under Connect to a device select HC-05 or HC-06
www.quadstore.in
www.quadstore.in
Intermediate Level Projects 36
11. Connect in “Switch Mode” option
www.quadstore.in
37 Intermediate Level Projects
13. Enter x for ON button and y for OFF button and then go back to previous screen.
www.quadstore.in
www.quadstore.in
Intermediate Level Projects 38
15. Click on the button once again to turn the Led OFF
www.quadstore.in
39 Intermediate Level Projects
Project 22:
L293D Motor Shield
Make the DC motor run using L293D motor shield.
Parts Required:
* Uno R3 board, USB Cable
* Few jumper wires
Circuit Connection:
First Insert the L293D Motor shield on top of Uno R3 board andProvide the connection as per the below
circuit.
Code: Verify and Upload the code named “L293D_Motor_Shield.ino” to Uno R3 board
Output: You will see the DC motor rotate clockwise and anticlockwise alternatively.
www.quadstore.in
www.quadstore.in
Intermediate Level Projects 40
Project 23:
Controlling DC motor using Relay
Turn on the LED and DC motor using relay module.
Parts Required:
* Uno R3 board, USB Cable
* Breadboard
* Few jumper wires
* 2 Channel Relay.
* LED
* Resistor – 220ohm
* DC motor
Circuit Connection:
Provide the connection as per the below circuit.
Code: Verify and Upload the code named “DCMotor.ino” to Uno R3 board
Output: The relay will switch ON and OFF and you will see DC motor also turns ON and OFF while the relay
does.
www.quadstore.in
41
Step-1: Peel the outer sticker from the car chassis and the motor holders to make the chassis reveal its
original bright color.
www.quadstore.in
www.quadstore.in
Advance Level Projects 42
Step-2: Insert the motor holder into its respective slot and install the gear motor using the screws and nuts
provided.
Step-3: Repeat the steps and install the gear motor in other side of the chassis as well.
www.quadstore.in
43 Advance Level Projects
Step-4: Use the small screws and install all 4 Hex mount at the back end of the car chassis.
Step-5: Install the castor wheel on top of the hex mount using the screws.
Step-6: Insert the wheels into the gear motor. Please align the wheel according the slot of the gear motor to
insert properly. This completes the assembly instructions of 2WD car chassis.
www.quadstore.in
www.quadstore.in
Advance Level Projects 44
Project 25:
Line Following Robot Car
In this project we will build a line following car which will follow the black line in a white background.
Step-1: Take an assembled 2WD Car chassis. Just in case you are not aware how to assemble the 2WD car
chassis please refer to the “2WD Card Chassis Assembly Instruction” section for details.
Step-2: Install 2 hex connectors and screw the line sensors to them as shown in the picture.
www.quadstore.in
45 Advance Level Projects
Step-3: Insert 6 x AA batteries in battery holder and place it in the back side of the car chassis using double
side stickers.
Step-4: Insert the L293D motor driver shield on top of the Uno R3 board and use a double side tape and fix
it on top of the battery holder.
www.quadstore.in
www.quadstore.in
Advance Level Projects 46
Wire-2 (Black) M4
Wire-2 (Black) M1
NOTE:
Kindly note that there is no polarity in gear motors. Hence the red and black wires provided with
the motor is just for reference purpose. They can be interchanged if the motor is required to
rotate in different directions.
www.quadstore.in
47 Advance Level Projects
Upload Code to Uno R3 board:
Use the provided USB cable and connect the Uno R3 board to your laptop/desktop computer.
Installing Libraries:
Before uploading the code to the Uno R3 board you need to install the “AFMotor.zip” library. Follow the
below steps to install the library.
www.quadstore.in
www.quadstore.in
Advance Level Projects 48
Step-6: Insert the DC power jack from battery holder into Uno R3 dc jack and Power ON the Uno R3 board.
Now you should make sure the line sensors are working as expected.
Condition-1: When line sensor is in white surface then you should notice the below points.
* You should see both LED’s in each line sensor should be turned ON.
* Both wheels of the car should rotate in forward direction. If any of the wheels or both wheels rotation
in reverse direction, then please interchange the red and black wire connection which goes to the L293D
motor driver shield.
www.quadstore.in
49 Advance Level Projects
Condition-2: Black Surface: When line sensors is in black surface you see only one Led in each light sensor
should be turned ON.
Note: If the above steps are not working as expected then please adjust the potentiometer in the
line sensor using the screwdriver to its desired level to make it work.
Demonstration when one of the line sensor is in black surface and when the other one is in white surface.
Make sure your line sensors also work in the same manner.
www.quadstore.in
www.quadstore.in
Advance Level Projects 50
Step-7: Make a circuit in oval shape or round shape using black insulation tape. Kindly note the surface
should be white with black line in it. If you are using reflective surfaces like floor, marble, granite, tiles it
might not work well. So please use a chart paper or matt white surface to get the best results.
www.quadstore.in
51 Advance Level Projects
Project 26:
Obstacle Avoidance Robot Car
Step-1: Take an assembled 2WD Car chassis. Just in case you are not aware how to assemble the 2WD car
chassis please refer to the “2WD Card Chassis Assembly Instruction” section for details.
Step-2: Insert Servo motor from bottom to the servo slot and screw them. Insert servo arm to the servo.
Step-3: Place the Ultrasonic sensor holder on the servo arm and screw them. Kindly note the direction in
which the ultrasonic sensor holder is mounted, because it has to match with the pin terminals mintioned in
the ultrasonic sensor. Insert the ulrasonics sensor into the holder.
www.quadstore.in
www.quadstore.in
Advance Level Projects 52
Step-4: Insert 6 x AA batteries in battery holder and place it in the back side of the car chassis using double
side stickers.
www.quadstore.in
53 Advance Level Projects
Step-5: Insert the L293D motor driver shield on top of the Uno R3 board and use a double side tape and fix
it on top of the battery holder.
www.quadstore.in
www.quadstore.in
Advance Level Projects 54
Wire-2 (Black) M4
Wire-2 (Black) M1
Note: kindly note that there is no polarity in gear motors. Hence the red and black wires provided
with the motor is just for reference purpose. They can be interchanged if the motor is required to
rotate in different directions.
Echo A5
Trig A0
Vcc +5
www.quadstore.in
55 Advance Level Projects
Orange color s
Wire
Use the provided USB cable and connect the Uno R3 board to your laptop/desktop computer.
Installing Libraries:
Before uploading the code to the Uno R3 board you need to install the “AFMotor.zip” library.
www.quadstore.in
www.quadstore.in
Advance Level Projects 56
NOTE: If you had already installed this AFMotor.zip library during the previous projects then you
can ignore this step. Else follow the below steps to install the library.
www.quadstore.in
57 Advance Level Projects
Compile and Upload the code to Uno R3 board.
Step-7: Insert the DC power jack from battery holder into Uno R3 dc jack and Power ON the Uno R3 board.
Result: You will see the car avoiding the obstacles and going towards the longest path available where
there is no obstacle in front of it.
www.quadstore.in
www.quadstore.in
Advance Level Projects 58
Project 27:
Light Following Car
In this project we will build a light following car which will follow the light in the dark.
Step-1: Take an assembled 2WD Car chassis. Just in case you are not aware how to assemble the 2WD car
chassis please refer to the “2WD Card Chassis Assembly Instruction” section for details.
Step-2: Insert 6 x AA batteries in battery holder and place it in the back side of the car chassis using double
side stickers.
www.quadstore.in
59 Advance Level Projects
Step-3: Insert the L293D motor driver shield on top of the Uno R3 board and use a double side tape and fix
it on top of the battery holder.
www.quadstore.in
www.quadstore.in
Advance Level Projects 60
Step-4: Use double side tape and fix the Photoresistor in the 45 degree angle as shown in the picture
below.
www.quadstore.in
61 Advance Level Projects
Motors to L293D driver shield
Wire-2 (Black) M4
Wire-2 (Black) M1
Note: kindly note that there is no polarity in gear motors. Hence the red and black wires provided
with the motor is just for reference purpose. They can be interchanged if the motor is required to
rotate in different directions.
www.quadstore.in
www.quadstore.in
Advance Level Projects 62
Use the provided USB cable and connect the Uno R3 board to your laptop/desktop computer.
Installing Libraries:
Before uploading the code to the Uno R3 board you need to install the “AFMotor.zip” library.
NOTE: If you had already installed this AFMotor.zip library during the previous projects then you
can ignore this step and directly compile and upload the code to UNO R3 board. Else follow the
below steps to install the library.
www.quadstore.in
63 Advance Level Projects
Step-8: Insert the DC power jack from battery holder into Uno R3 dc jack and Power ON the Uno R3 board.
Result: In a dark room, show the light in front of the cars photoresistor sensors and see the robot car
following the light.
www.quadstore.in
www.quadstore.in
Advance Level Projects 64
Project 28:
Bluetooth Controlled Car
Introduction: In this project we will demonstrate how to assemble a Bluetooth controlled car using Android
app. (Works only with Android mobile phones). Does not support iOS.
Parts Required:
* 2WD Car Chassis Assembled
* Uno R3
* L293D motor driver shield
* HC05 Bluetooth module
* Arduino Bluetooth RC Car app – Download from PlayStore.
* IMPORTANT NOTE: Kindly upload the code for Bluetooth car to UNO R3 board before installation. If you
want to upload the code after installation, then you need to remove the power supply of the Bluetooth
module before uploading. If you try to upload the code with Bluetooth module power supply, it will throw
error message.
Use the provided USB cable and connect the Uno R3 board to your laptop/desktop computer.
Installing Libraries:
Before uploading the code to the Uno R3 board you need to install the “AFMotor.zip” library.
NOTE: If you had already installed this AFMotor.zip library during the previous projects then you
can ignore this step and directly compile and upload the code to UNO R3 board. Else follow the
below steps to install the library.
www.quadstore.in
65 Advance Level Projects
Step-2: Take an assembled 2WD Car chassis. Just in case you are not aware how to assemble the 2WD car
chassis please refer to the “2WD Card Chassis Assembly Instruction” section for details.
www.quadstore.in
www.quadstore.in
Advance Level Projects 66
Step-3: Insert 6 x AA batteries in battery holder and place it in the back side of the car chassis using double
side stickers.
www.quadstore.in
67 Advance Level Projects
Step-4: Insert the L293D motor driver shield on top of the Uno R3 board and use a double side tape and fix
it on top of the battery holder.
www.quadstore.in
www.quadstore.in
Advance Level Projects 68
Wire-2 (Black) M4
Wire-2 (Black) M1
Note: kindly note that there is no polarity in gear motors. Hence the red and black wires provided
with the motor is just for reference purpose. They can be interchanged if the motor is required to
rotate in different directions.
www.quadstore.in
69 Advance Level Projects
Installing the Bluetooth RC controller app from PlayStore in your Android mobile phone:
Go to playstore and search for “Arduino Bluetooth RC Car” and install it.
Power on the Car and you would see the RED led in the Bluetooth module blinking. This means the Bluetooth
module is waiting for paring with the app.
www.quadstore.in
www.quadstore.in
Advance Level Projects 70
In your mobile phone
Click “Pair new device” and from the Available devices select “HC-05”
www.quadstore.in
71 Advance Level Projects
When prompted for password please enter 1234 and click Ok.
Kindly note still your Bluetooth module is NOT yet paired with the app.
Now open the “Arduino Bluetooth RC Car” app. You will see a RED circle indicator blinking on the left corner
of the app which indicates that bluetooth module is not yet paired with the app.
www.quadstore.in
www.quadstore.in
Advance Level Projects 72
Click “Connect to Car” option
Now you should see the red flashing led turning to SOLD Green and also a text which reads Connected to
HC-05 being displayed.
www.quadstore.in
73 Advance Level Projects
Result: Now that the app is connected to your Bluetooth car use the Forward, Backward, Left and Right
direction button to make the car move in desired direction.
www.quadstore.in
www.quadstore.in
Advance Level Projects 74
Project 29:
Wifi ESP8266-01 with Blynk app
Introduction:Control LED using wifi and blynk app from your mobile.
Parts Required:
* Uno R3 board, USB Cable
* Breadboard
* Few jumper wires
* ESP8266-01 module
* LED
* Resistor – 220ohm
* Blynk app need to be installed
Note: You need to change the circuit connection twice for setting up the ESP8266-01 wifi module.
First circuit connection for changing the baudrate of ESP8266-01 module: Provide the connection as per
the below circuit.
www.quadstore.in
75 Advance Level Projects
Action-1: Procedure for changing the baudrate of ESP8266-01 to 9600 from 115200
www.quadstore.in
www.quadstore.in
Advance Level Projects 76
9. Now type the command AT in serial monitor and click Send button.
www.quadstore.in
77 Advance Level Projects
11. Now type command AT+UART_DEF=9600,8,1,0,0 command will change the baudrate of ESP8266 to
9600.
12. Now select baudrate of serial monitor to 9600 from drop down.
www.quadstore.in
www.quadstore.in
Advance Level Projects 78
14. Success! Now the baudrate of ESP8266-01 has been changed to 9600.
www.quadstore.in
79 Advance Level Projects
5. Auth token will be generated and sent to your email address.
www.quadstore.in
www.quadstore.in
Advance Level Projects 80
www.quadstore.in
81 Advance Level Projects
9. Change the PIN to “Digital - pin 7”, rename the widget to “Switch” and change the PUSH option to
SWITCH and go back.
www.quadstore.in
www.quadstore.in
Advance Level Projects 82
Second circuit connection for using the ESP8266-01 wifi module with your phones Blynk app: Provide the
connection as per the below circuit.
3. Make the following changes in your CODE to reflect the correct “Auth Token”, “Network Name” and
“Network Password”
www.quadstore.in
83 Advance Level Projects
Note: You would have received the Auth Token in your email. Kindly copy and paste it in the code.
www.quadstore.in
www.quadstore.in
Advance Level Projects 84
5. Once you have entered the Auth token, User Name and Passowrd you code should look something like
this;
6. Now perform the below steps to get connected with the wifi module:
7. Remove 3.3v power cable from ESP8266-01 module and then upload the updated code.
8. Plug in the 3.3v power cable back to ESP8266-01 module.
9. Open “Serial Monitor” and check if the ESP8266-01 module is getting connected to your Wifi network
successfully.
10. Ensure the baudrate is at 9600 then you should see like the screen below where the Wifi module gets
connected.
www.quadstore.in
85 Advance Level Projects
11. Open Blynk app and you should see the project getting connected to your Uno R3 board through wifi
automatically.
12. Output: Click ON and OFF button through Blynk app to control the LED.
13. When ON button is clicked you would see the LED turn ON through Wifi.
www.quadstore.in
www.quadstore.in
Advance Level Projects 86
Similarly, when OFF button is clicked the LED turns OFF through Wifi.
www.quadstore.in
87 Advance Level Projects
Project 30:
Introduction to NodeMCU ESP8266
The Node MCU is an open source firmware and development kit that helps you to prototype your IoT
product with ArduinoIDE or in few Lau script lines.
It includes firmware which runs on the ESP8266 Wi-Fi SoC. And hardware which is based on the ESP-12
module. In this tutorial we explain how to use NodeMCU with Arduino IDE
www.quadstore.in
www.quadstore.in
88
www.quadstore.in