Investigación sobre Micro mouseDescripción completa
this is about the robot
working of optical mouse
Full description
Descripción: Книга для чтения. 2 класс. Городская Мышь и Деревенская мышь
Description : one of the best book for kids. all loving kids..... read it and enjoy
Full description
Descripción completa
one of the best book for kids. all loving kids..... read it and enjoyDescripción completa
Coleção Penguin ReaderFull description
Descripción completa
dunnDescription complète
PARKIN
partitura
trabajoDescripción completa
resumen del capitulo 10
ejercicios unidad #5 michael parkinFull description
Descripción completa
Descripción: ejercicios unidad #5 michael parkin
tutorialDescripción completa
P.Raghaven .Raghavendra dra Prasa Prasad d
www.raghu.co.nr
INTRODUCTION
Micromouse is an autonomous robot designed to reach Micromouse reac h the center of an unkno unknown wn maze in shortest ossible time and distance .
www.raghu.co.nr
INTRODUCTION
Micromouse is an autonomous robot designed to reach Micromouse reac h the center of an unkno unknown wn maze in shortest ossible time and distance .
www.raghu.co.nr
M I R O
LEFT MOTOR MOTOR DRIVER RIGHT MOTOR
C O N T R O L L E R
SENSOR ELECTRONICS
SESNSORS
www.raghu.co.nr
Basi Ba sicc com com one nent ntss of of Mi Micr crom omou ouse se::
Sensors
Microcontroller
Batteries
www.raghu.conr
SENSORS
its environment. These
are used to detect the presence or absence of walls and to verify your position in the maze. The They y
will also be important impor tant in ensuring that the mouse maintains
www.raghu.co.nr
Commonly used sensors in the field of robotics igita sensors
www.raghu.co.nr
IR Digital sensors Transmitter
TSOP1738
Advantages Detects an obstacle at a distance more than 1meter if tuned perfectly. No ambient light effect. Easy to use.
www.raghu.co.nr
Designing a transmitter :
Use IC 555 in Astable mode
For approximate 50% duty cycle take Ra = 1 k ohm
www.raghu.co.nr
Receiver :
IR Analog sensors Transmitter
IR LED
Receiver IR Photodiode Advantages:
Can measure distance up to 15 cm.
Disadvantages:
Res onds to IR ra s resent in ambient li ht. Intensity of reflected rays is non-linear with respect to distance of obstacle
www.raghu.co.nr
IR Analog sensor
www.raghu.co.nr
Modulate IR ra s to avoid Ambient li ht effect :
Transmitter IR led
frequency greater than 1KHz
of Microcontroller
Peak Detector
High pass er , u -o freq more than 300Hz
Receiver IR Photodiode
obstacle
www.raghu.co.nr
Hi h-Pass filter :
www.raghu.co.nr
Peak Detector:
www.raghu.co.nr
Errors involved in mouse movement :
Forward errors begins when a
mouse is either too close or too far from the wall ahead
www.raghu.co.nr
Errors involved in mouse movement :
Offset errors, which happens often, is
caused by being too far to the left or to the right as you pass through a cell
www.raghu.co.nr
Errors involved in mouse movement :
Heading error is known as pointing at walls
rather than down the middle of the cell
www.raghu.co.nr
:
Top Down
Side Looking
SENSORS
www.raghu.co.nr
www.raghu.co.nr
Side lookin sensors :
www.raghu.co.nr
Initialize ADC
Select ADC channel
Start ADC
N0
ADC conversio n complete
Yes
Read ADC value
Sto
www.raghu.co.nr
Side looking Unsigned int left_adc; left_adc = adc(0xE0); unsigned int adc(unsigned int temp) { ADMUX = temp; //selects ADC channel = x ; s ar s while(conversion_not_over()); //waits till ADC conversion completes ADCSRA |= 0x10; // clears ADIF flag ; } _
_
{ unsigned int temp; tem = ADCSRA temp = temp & 0x10; // checks for ADIF flag return(!temp); }
www.raghu.co.nr
Reducing error using PD controller :
Error
PD
Motors
www.raghu.co.nr
Error calculating: If wall is on both sides _ – _ ; If err is +ve Mouse is near to left wall and as a correction it has to move towards right wall •
If wall is only on leftside err = left_adc – reff_value; If err is +ve Mouse is near to left wall and as a correction it has to move towards right wall •
If wall is only on rightside err = right_adc – reff_value; + Mouse is near to right wall and as a correction it has to move towards left wall •
The value of adj is used to either speed up or speed down one of the wheel .
www.raghu.co.nr
DC Motor
DC Motors are small, inexpensive and powerful motors used widely.
These are widely used in robotics for their small size and high energy out.
to be useful, and torque that are far too low.
Gear reduction is the standard method by which a motor is made useful .
Gear’s reduce the speed of motor and increases the torque
www.raghu.co.nr
Choosin a DC Motor o or w ear ea Operating voltage 12V Depends on our application Some available speeds in market 30 RPM 60 RPM
150 RPM 350 RPM 1000 RPM
www.raghu.co.nr
Red wire
Black wire
Positive
Negative
Clock wise
Negative
Positive
Anti clock wise
1
0
Clock
0
1
Anti clock
Direction of rotation
www.raghu.co.nr
i- irection contro o
otor bidirectional driving of DC motor
Direction
Pulse to
Clock wise
A and C
n
oc w se
an
www.raghu.co.nr
-
’
The most commonly used H-Bridges are L293D and L298 L293D has maximum current rating of 600ma L298 has maximum current ratin of 2A Both has 2 H-Bridges in them These are desi ned to drive inductive loads such as relays, solenoids Can be used to drive 2 DC motors or 1 ste er motor
www.raghu.co.nr
PWM
STEPPER MOTOR
STEPPER MOTOR is a brushless DC motor whose rotor rotates in discrete an ular increments when its stator windin s are energized in a programmed manner. Rotation occurs because of magnetic interaction between rotor poles and poles of sequentially energized stator windings. The rotor has no electrical windings, but has salient and/or .
www.raghu.co.nr
4 – Lead stepper
6 – Lead stepper
5 – Lead stepper
8 – Lead stepper
www.raghu.co.nr
Full Ste drivin of Ste
er Motor
Full step wave drive
4
3
2
1
1
0
0
0
0
1
0
0
0
0
1
0
0
0
0
1
www.raghu.co.in
Full Ste drivin of Ste
er Motor
Full step 2 phases active
4
3
2
1
1
1
0
0
0
1
1
0
0
0
1
1
www.raghu.co.in
Half Step driving of stepper motor
4
3
2
1
1
0
0
0
0
1
0
0
0
1
1
0
0
0
1
0
0
0
1
1
0
0
0
1
1
0
0
1
www.raghu.co.nr
Choosing a Stepper motor
12 V or 5 V o eratin volta e 1.8 degree step 6 Lead 250 to 500 ma of current or
Size and shape depends on application In most of the robotics cube sha ed motors are preferred with frame size of 3.9 to 4 cm
www.raghu.co.nr
Commonl used IC’s for drivin Ste
er motor
ULN2803 It has 8 channels It channel has maximum current rating of 500ma can be used to drive 2 unipolar stepper motors • •
•
L297 & L298
UDN2916
www.raghu.co.nr
www.raghu.co.nr
Bi – Polar drivin of Ste
er Motor
A
B
C
D
1
1
0
0
0
1
1
0
0
0
1
1
1
0
0
1
www.raghu.co.nr
4 – Lead stepper
6 – Lead stepper
5 – Lead stepper
8 – Lead stepper
www.raghu.co.nr
Sample program for(p=0;p<=20;p++) PORTD=0xA9; delay(65); PORTD=0x65; delay(65); = x ; delay(65); = delay(65); }
void delay(unsigned int m) unsigned int n; while(m--) for(n=0;n<=100;n++); }
With this SW Steppers can’t be controlled individually
www.raghu.co.nr
SW for steppers :
Use timers to create delay.
Use Clear Timer on Compare match or Normal Mode
www.raghu.co.nr
Interrupt routine
Initialize timer
Give Pulse to stepper
Start Timer
Is Stepper tar et reached
Update Output compare register No Wait et
Yes Stop timer
www.raghu.co.nr
Chopper Driving:
For better erformance of Ste and current should be limited .
ers the should be over driven
For example a 5 V 500ma motor can be driven at more than 15V but current in the coil should be limited to approximately .
www.raghu.co.nr
Methods of current limiting :
Traditional method of usin a resistor of a series with common terminal.
ro riate ower in
This method is not recommended as there will be huge power .
www.raghu.co.nr
Best method of current limiting :
Pulse Width Modulation Motors should be driven at 3 to 4 times the rated voltage. Measure the current in the coil if it raises to 10% more than the limit switch off the supply to motors . If it falls to 10% below the limit switch on the supply to motors .
Few IC’s that can do the current chopping 1. L297 & L298 2. UDN 2916 3. UCN 5804
www.raghu.co.nr
Microcontroller:
Choose the controller that has sufficient
Amount of FLASH memory to store your program Amount of RAM memory for variables Number of Timers
output compare channels and ONE 8 bit timer Number of ADC channels Good operating speed ATMEGA32 of Amtel made is one that is suitable
www.raghu.co.nr
Batteries: Choose batteries that can provide high voltage and high power with low weight ou ave curren capac y more an ma
Can provides high current at 1.2 V Can be charged by Constant Current or Constant Voltage chargers