Professional Documents
Culture Documents
Proposed Solutions
PART NO. FLASH (KB) SRAM (B) EEPROM (B) MAX FREQ IO PINS PWM ADC
void setup() {
pinMode(led, OUTPUT);
}
void loop() {
digitalWrite(led, HIGH);
delay(1000); // wait for a second
digitalWrite(led, LOW);
delay(1000); // wait for a second
}
DC Motor
BreadBoard
Rotating Motor in 1
direction
int led = 9;
void setup() {
pinMode(led, OUTPUT);
}
void loop() {
digitalWrite(led, HIGH);
delay(1000);
digitalWrite(led, LOW);
delay(1000);
}
Rotating Motor in both direction
int mot1= 5;
int mot2= 6;
void setup() {
pinMode(mot1, OUTPUT);
pinMode(mot2, OUTPUT);
}
void loop() {
, digitalWrite(mot1, HIGH);
digitalWrite(mot2, LOW);
delay(1000);
digitalWrite(mot1, LOW);
digitalWrite(mot2,HIGH);
delay(1000);
}
Larger DC Motors
Servo Motor
Servo Motor with
Arduino
Interfacing of Servo
Motor
#include <Servo.h>
Servo myservo;
int pos = 0;
void setup()
{
myservo.attach(9);
}
void loop()
{
myservo.write(pos);
delay(15);
}
Interfacing of Servo
Motor
#include <Servo.h>
Servo myservo;
int pos = 0;
void setup()
{
myservo.attach(9);
}
void loop()
{
for(pos = 0; pos < 180; pos += 1)
{
myservo.write(pos);
delay(15);
}
for(pos = 180; pos>=1; pos-=1)
{
myservo.write(pos);
delay(15); }}
Potentiometer with Arduino
void setup() {
Serial.begin(9600);
}
void loop() {
int sensorValue =
analogRead(A0);
float y=5.0*sensorValue/1023.0;
Serial.println(y);
delay(1000);
Distance Measurement
Infrared Sensors
Sonar Sensors
Sonar Sensor
(Max Sonar ez0 Mb 1000)
void setup() {
Serial.begin (9600);
pinMode(trigPin, OUTPUT);
pinMode(echoPin, INPUT);
pinMode(LEDPin, OUTPUT);
}
#include <TimerOne.h>
#define S0 6
#define S1 5
#define S2 4
#define S3 3
#define OUT 2
Special Category & Scenario-3
IMAGE BASED
GUIDANCE
SBC
Single-board computer (SBC) is a complete computer built
on a single circuit board, with microprocessor(s), memory,
input/output (I/O) and other features required of a
functional computer
BeagleBoard
Pandaboard
Raspberry Pi
Panda Board
BeagleBoard
+ Inexpensive
Two wheel
drive
Motor(
s)
Motor(
s)
Driven
Wheel
+ Easy to design
+ Easy to build
+ Light weight
+ Inexpensive
- Turning is
Driven
difficult Wheel
- Adjustments s
needed
Four wheels
four gearboxes Driven
Wheel
s
Motor( Motor(
s) s)
+ Easy to design
+ Easy to build
+ Powerful
+ strong and stable
+ Many options
- Heavy Driven
- Costly Wheel
Motor( Motor( s
s) s)
TANK DRIVE
Gearbox Gearbox
+ Powerful
+ VERY Stable
- HEAVY
- Inefficient
- EXPENSIVE
- Hard to
maintain
HOLONOMIC
DRIVES
HOLONOMIC
DRIVES
4 Wheel and 3 Wheel designs
Simple Mechanics
Immediate Turning
Freedom of movement
Use Dual Wheels to avoid
nervous drives
HOLONOMIC
DRIVES
Mecanum
Simple
Mechanics
Freedom of
movement
4 independent
wheels
Difficulty on
inclines
Slipping Issues
HOLONOMIC
DRIVES
Rota Caster
Simple
Mechanics
Freedom of
movement
3 or 4
independent
wheels
Difficulty on
inclines
HOLONOMIC
DRIVES
Swerve or Crab
All wheels steerable
High grip Wheels
No Friction Losses
Ability to Push or Hold
Wheels are Simple
Complex Design
Mechanical Issues
Wheel Turning Delay
Omni Directional
System
Mecanum
wheels
Rota Caster
wheels
Important
POINTS
CG or Centre Of
Gravity
Robot Mass is
represented at one point
Higher parts should be
light weight and lower
parts should be heavy
within reasons
Important
POINTS
CG or Centre Of
Gravity
Batter
y
motor
Ms Mobile s
pump,
etc.
Battery
Mr.
motors
Tippy
pump, etc.
Important
POINTS IS BAD
SLIPPAGE
Unnecessary
movement
Slippage is increased
when special wheels are
used
Good mechanical
design and good CG
management and weight
balancing decreases
Important
POINTS
Better Wiring
Believe it or not better
wiring can helps a lot
Use thick wires for
motors
Avoid mixing signal
and power wires
Use aluminum foil to
avoid noise.
Important
POINTS
NOISE IS BAD
REDUCE IT OR
ELSE
ROBOSPRINT
2013
STEP
Importance of motor
selection3
Stall current, RPM, torque,
power
GEAR RATIOS
Diameter
2:1 RIGHT
LEFT WHEEL
WHEEL
1x
2x Torque
2x
Torque
Speed
1x Rotates
Speed twice the
Left
wheel in
a single
rotation
Motors
ROBOSPRINT
2012
STEP
Sensors, Motor Drivers,
4 Products
Other
Know how technology
increases performance and
reliability
Websites which are usefull
www.arduino.cc
www.pandaboard.org
www.beagleboard.org
www.rasberrypi.org
www.roboticspk.com
www.robocave.pk
www.digipak.org
www.creativeelectron.net
ROBOSPRINT
2012
Final
Words
ROBOSPRINT
2012
Questions?
ROBOSPRINT
2012
THANK
YOU