Professional Documents
Culture Documents
? Introduce BIObot
Introduction to BIObot Robot
? Discuss How to Program & Control BIObot
Encoder is
Encoder is Behind Wheel
Behind Wheel
Front Center IR
1
Sharp GP2D120 IR Sensor
2.35v
? Capable of sensing objects 1.5”-12” away.
? Vout = 2.35v
? This 8-bit number can be correlated to a detection distance in
inches, feet, cm, m, etc…
5.25 cm ~ 2”
? Output of voltage divider returns 0-5 volts and is converted to ? PIC’s A/D hardware converts this to an 8-bit value.
an 8-bit number using PIC’s A/D hardware.
? Can be used for light tracking or avoidance behaviors. ? Vin = (8-bit A/D value)*(7.4k*5v) / (2.7k*255)
? There are a total of 128 encoder transitions per wheel rotation ? Only block#’s 3, 4, 5, 6, and 7 can be used to store data.
and the wheel diameter is 2.621”.
? Currently, BIObot only reads/writes block#3.
? PIC uses this information to perform Proportional, Integral, and
Derivative (PID) position and velocity control.
? Example: Write –> “abcd” then Read –> “61626364”
2
Controller System Diagram Communication
Sharp Wheel Encoders
GP2D120s A4,B0, Light Sensors Controlling Device
A1,A D6,D7
2
A5,E ,A3,
0 E1,
E2 PC, Laptop, PDA, etc…
Hardware UART
Antenna A0
C6,C7 BIObot
PIC18F452
Bluetooth
GM8
Battery Voltage or ZigBee
Motors
Module
3
Configure HyperTerminal Configure HyperTerminal
Select Properties
Open connection
Exit Settings
Questions?