Knight Gear: Group 6 Rene A. Gajardo Do Kim Jorge L. Morales Siddharth Padhi
Knight Gear: Group 6 Rene A. Gajardo Do Kim Jorge L. Morales Siddharth Padhi
Group 6
Rene A. Gajardo
Do Kim
Jorge L. Morales
Siddharth Padhi
Motivation
• Heavy course work would require more materials.
• Posture is affected by the larger amount of things
that a student carries.
• Knight Gear would allow for easier moving of school
materials and more.
Goals and Objectives
• Easy to use robot that follows the user using tracking
algorithm.
• Carry a limited load of materials for the user.
o Limit determined by weight sensor.
charge/discharge
66
efficiency (%)
memory effect no
Power Regulation
• Motors draw too much of currents - > separate power source for motors
• Power dissipation of other electronic devices :
• (6V– 5V) * 380mA = 0.38W
->Low dropout linear voltage regulators will be used.
LM2940 LDO regulator for 6V to 5V @ Io =1A
6V 2000mAh
6V 2000mAH NiMH battery
battery pack pack
Switch
6V DC
Ultrasonic geared
Microcontr Motor / Infrared Weight Accelerom Wireless Motors
oller driver IC proximity sensor eter antenna
sensors
Motor Controller
Motors
Spur DC geared motors (x4)
• DC motor combined with a gearbox that work to decrease
the motor’s speed but increase the torque
Current 450mA
stall current 4A
1
Motor controller cont.
H-bridge
• H-bridge circuit is commonly used in robotics and other
applications to allow DC motors to run forwards and
backwards
0
Motor controller cont.
XL-
MaxSonar 1cm 10Hz 300in-420in 3.5V-5.5V 3.4mA 0C – 65C $27.95
-EZ
XL-
MaxSonar 1 cm 10Hz 300in-420in 3.5V-5.5V 3.4mA - 40C – 70C $29.95
-AE
LV-
MaxSonar 1 cm 20Hz 254in 2.5V-5.5V 2.0mA - $21.95
-EZ
HRLV
MaxSonar 1 mm 10Hz 195in 2.5V-5.5V 3.1mA 0C – 65C $28.95
-EZ
HRXL
6Hz-
MaxSonar 1 mm 196in-393in 2.7V-5.5V 3.1mA -40C – 65C $97.95
7.5Hz
-WR
Why LV Max Sonar EZ2 ?
• Beam gets narrower
and
sensitivity gets lower
from EZ0 to EZ4
• Wider beam width is
better for detection
but provides more
noise and ghost
echoes
• EZ2 is a sensible pick
to
get good beam
width
while also avoiding
noise and ghost
echoes.
Infrared Proximity Sensor
• Infrared proximity sensors send out beams of
infrared light and then analyze the returning light.
• The photo-detector inside the sensor detects any
incoming reflection of this light.
• These reflections allow the sensor to determine the
location of the object.
• In Knight Gear, infrared light will be emitted from this
sensor which will be reflected back by the
person/object to the proximity sensor.
• Infrared proximity
sensor works as a
triangulation.
• The sensor will evaluate
the time taken and
returning angle with
modulation to assay
the distance.
Voltage • GP2Y0A02YK0F is
Products Operational
Range
Distance Price
the best choice
• Range of 150 cm is
GP2Y0A02YK0F 2.7V - 6.2V 150cm $14.95 ideal for Knight
Gear
LIS331 ±6, 12, 24g SPI and I2C 3 2.16 – 3.6 V 250µA $27.95
length 2 feet
width 1.5 feet
height 2 feet
Code Flow
Overall code
• The robot turns in the direction of the of the sensor
which detected the signal first.
• The magnitude of the turn and the speed of the
robot is calculated by the difference in time in
which the sensors detect the user.
• It will use the echo of the sensors on the robot for
avoidance detection.
Proportional-Integral
Controller
• We implement a PI controller instead of a PID
controller to save memory.
• Runs only on current error and integral of previous
errors.
• Using small constant multipliers to lower the
deviation on Knight Gear.
• The error is determined by the time it takes for the
signal in the users transmitter to reach both sensors
on Knight Gear.
• After the calculating the movement vector, the
Collision Detection is called.
Collision Detection
• The code makes the two ultrasonic sensors on the
robot send a signal and wait for an echo.
• If an echo is not heard or if the distance is greater
than half a meter, Knight Gear does not need to do
collision avoidance and pings the user
• If an echo is heard and the distance calculated is
less than one meter, the accelerometer data is
gathered and Knight Gear determines if it will
collide with the object at its current velocity.
Collision Detection
Continued
• If Knight Gear calculates that it will collide it takes
one of three actions:
o If the left sensor detects an obstacle, then Knight Gear turns right.
o If the right sensor detects an obstacle, Knight Gear turns left.
o If both sensors detect an obstacle around the same time Knight Gear
comes to a stop
Collision Detection
Continued
• From here Knight Gear waits for a second or two
then if the obstacle is no longer in the way it pings
the user again.
• If the obstacle is still in the way it will rotate left and
run collision detection again.
Work Distribution
Subsystem Group Member
Main Software Rene Gajardo
Linear Control System Siddharth Padhi
Frame Do Kim
Motors Do Kim
Power Supply Do Kim
Microcontroller Jorge Morales
Sensors Siddharth Padhi
Wheel Configuration Siddharth Padhi
Wireless Communication Rene Gajardo
PCB Board Jorge Morales
Autonomous Algorithms Rene Gajardo
Budget
Part Cost
Ultrasound Sensor $83.85
Infrared Sensor $13.95
Weight Sensor $9.95
Accelerometer $24.95
Battery $5
Motor $48
Motor Controller $1.87
Chassis $54.60
Microcontroller $4.68
GPS Module $29.99
Total $276.84
Progress
100
90
80
70
60
50
40
30
20
10
0
Research Design Prototyping Testing Overall
Issues
• Problem with microcontroller decision.
o Not enough PWM lines (only have 2, need 4)
• Solar panel.
o Problems with implementation into our circuit
o Over budget
• Localization.
o No way of implementing indoor localization.
Questions?