juan david rios – graduate student ece imdl fall 2012 dr. a. antonio arroyo - eric m. schwartz...

14
AlienBot project Juan David Rios – Graduate Student ECE IMDL FALL 2012 Dr. A. Antonio Arroyo - Eric M. Schwartz November 29/2012

Upload: marilynn-johnston

Post on 04-Jan-2016

216 views

Category:

Documents


2 download

TRANSCRIPT

Page 1: Juan David Rios – Graduate Student ECE IMDL FALL 2012 Dr. A. Antonio Arroyo - Eric M. Schwartz November 29/2012

AlienBot project

Juan David Rios – Graduate Student ECEIMDL FALL 2012Dr. A. Antonio Arroyo - Eric M. SchwartzNovember 29/2012

Page 2: Juan David Rios – Graduate Student ECE IMDL FALL 2012 Dr. A. Antonio Arroyo - Eric M. Schwartz November 29/2012

Summary

1. General design Global structure of AlienBot

2. Hardware – Final components Components of the robot

3. Behaviors and software Explanation of the behaviors and the

software4. Conclusions

Page 3: Juan David Rios – Graduate Student ECE IMDL FALL 2012 Dr. A. Antonio Arroyo - Eric M. Schwartz November 29/2012

General design

Page 4: Juan David Rios – Graduate Student ECE IMDL FALL 2012 Dr. A. Antonio Arroyo - Eric M. Schwartz November 29/2012

Hardware

Energy sources

Lipo battery – 5000 mAh

Lipo battery – 2200 mAh

Drivers

H bridge MC33926

Power regulator6Vdc

NPN Transistor2N2222

Page 5: Juan David Rios – Graduate Student ECE IMDL FALL 2012 Dr. A. Antonio Arroyo - Eric M. Schwartz November 29/2012

Mechanical components

Sensors

Metalgear motor100 rpm

Pan/tilt system

Futaba servo 3004

Bluetooth module

IR array sensor

Ultrasonic module

HTC one S camera

MC33926 – Current sensorLaser pointer

Page 6: Juan David Rios – Graduate Student ECE IMDL FALL 2012 Dr. A. Antonio Arroyo - Eric M. Schwartz November 29/2012

Main devices Feedback devices

Arduino mega ADK

HTC one S

Lenovo laptop

Laptop display

Laptop speakers

Page 7: Juan David Rios – Graduate Student ECE IMDL FALL 2012 Dr. A. Antonio Arroyo - Eric M. Schwartz November 29/2012
Page 8: Juan David Rios – Graduate Student ECE IMDL FALL 2012 Dr. A. Antonio Arroyo - Eric M. Schwartz November 29/2012

Behaviors and software

Behaviors and precedence:

1) Avoid obstacles2) Color tracking3) Line tracking4) Move forward

Page 9: Juan David Rios – Graduate Student ECE IMDL FALL 2012 Dr. A. Antonio Arroyo - Eric M. Schwartz November 29/2012

Obstacle avoidance

The ultrasonic modules are the key component of this behavior

L F R Action0 0 0 Nothing0 0 1 Turn left and move forward

0 1 0Move backwards, then turn (left or right) randomly and move forward

0 1 1 Turn left and move forward1 0 0 Turn right and move forward

1 0 1Move backwards, then turn (left or right) randomly and move forward

1 1 0 Turn right and move forward

1 1 1Move backwards, then turn (left or right) randomly and move forward

Threshold: 20 cm

Page 10: Juan David Rios – Graduate Student ECE IMDL FALL 2012 Dr. A. Antonio Arroyo - Eric M. Schwartz November 29/2012

Line tracking

Using an array of 8 IR sensors A digital PD algorithm was used to

control this behavior.

Readline value Meaning0 Line is over sensor 1

1000 Line is over sensor 22000 Line is over sensor 32500 Line is between sensor 3 and 47000 Line is over sensor 8

Page 11: Juan David Rios – Graduate Student ECE IMDL FALL 2012 Dr. A. Antonio Arroyo - Eric M. Schwartz November 29/2012

Color tracking

Color detection using Python and OpenCV with a smartphone camera. Servos controlled by Arduino.

Condition ActionErrorx<0 Move right (pan servo)Errorx>0 Move left (pan servo)Errory<0 Move down (tilt servo)Errory>0 Move up (tilt servo)

Page 12: Juan David Rios – Graduate Student ECE IMDL FALL 2012 Dr. A. Antonio Arroyo - Eric M. Schwartz November 29/2012

Logic of AlienBot

Page 13: Juan David Rios – Graduate Student ECE IMDL FALL 2012 Dr. A. Antonio Arroyo - Eric M. Schwartz November 29/2012

This course was awesome, I learned a lot and build my first robot.

A design of a robot is a very complex task. It requires knowledge several disciplines.

Working with one behavior is not the same as working with several behaviors (sample time, synchronization, etc.)

Conclusions

Page 14: Juan David Rios – Graduate Student ECE IMDL FALL 2012 Dr. A. Antonio Arroyo - Eric M. Schwartz November 29/2012

Questions?