Arduino
Arduino
Arduino
Robotics
What is a Robot?
A robot is an output of the robotics industry, which
involves the creation of programmable machines that can
help people or replicate their actions.
Each robot has a different amount of control, ranging
from human-controlled bots that conduct tasks that a
human has complete control over to fully autonomous bots
that accomplish tasks without any external influences.
Robotics
Type of Robots?
Robots come in various types from all
shapes and sizes to perform the tasks they
are designed for. Following are some
common types of robots: Fig 4.1 Edison Programmable Robot
1. Programmable Robots,
2. Humanoid Robots,
3. Autonomous Robots,
4. Industrials Robots,
5. Exoskeletons,
Fig 4.5 Drones
Nimble Bot
Fig 4.6 Nimble Bot
What is Output?
The output allows Arduino to affect the real world in some way. An output could be subtle
and discreet, such as in the vibration of a cellphone, or it could be a huge visual display on
the side of a building that can be seen for miles around. The first sketch walks you through
blinking an LED. From there, you can go on to build your very own smart robotic car.
Arduino
Reset Button
In electronics and technology, a reset button is a button that can
reset the device. In Arduino UNO, the reset button restarts the
code or program from the very beginning of it.
Arduino
Serial Communication Pins – (Tx, Rx)
• You can program Arduino to speak through Serial
Communication.
• It is the procedure by which information and data are sent one
after another ‘’bit by bit’’.
• A bit is the fundamental building block of digital data, Fig 4.16 Tx and Rx Pins
consisting of 0 or a 1.
• Sending messages and data back and forth from Arduino to a
computer or even other hardware and Arduinos
Nimble Shield by TechTree
Voltage
Regulators
Power Jack
Power Button
Buzzer
LED SONAR
Connection
Battery Indicator
Servo Connection
Motor Connections
Bluetooth
Connection
TCRT Connections
Motor Driver/H-Bridge
LDRs
Fig 4.18 Nimble Shield labelled diagram
Nimble Shield
LED
• A light-emitting diode (LED) is a
semiconductor device that emits light when
an electric current flows through it.
• LED is a two legged device.
• By connecting a resistor with the LED, we
can allow voltages to drop against the LED
to avoid damaging it.
Symbol
Nimble Shield
Buzzer
• A buzzer or beeper is an audio device.
• Typical uses of buzzers and beepers
include alarm devices and timers.
Difference between
buzzer and speaker?
Symbol
Let’s code
Let’s code
A forever loop
can be infinite
Like the sunrise
and the sunset
Project I – LED Blinking
Commands (Methods)
pinMode(pin #,INPUT or OUTPUT);
pinMode(13,OUTPUT);
pinMode(7,INPUT);
digitalWrite(13,1);
digitalWrite(13,0);
digitalWrite(7,1);
delay(500);
delay(1000);
delay(20);
Symbol
Project III – Reading LDR Data
In this project, we will use one of the two
LDRs in Nimble Shield to monitor the
current light condition. To monitor the
light value, we have to use Serial Monitor.
Note: Every time we use Serial Monitor,
we need to connect the serial port.
Left LDR = A4
Right LDR = A5
Project IV – If/Else with LDR
In this project, we will use the LDR to detect
light, then if there is darkness in the
surroundings LED will turn ON else it will be
OFF. For this project to work we need to find
the value between Light and Darkness. For
this project, the value is 400. We will compare
the current light value with this value. If the
value is greater than 400 this means darkness
hence LED is ON otherwise, it is OFF.