OBSTACLE EVADING ULTRASONIC ROBOT. Aaron Hunter Eric Whitestone Joel Chenette Anne-Marie Cressin

Similar documents
ECE 511: FINAL PROJECT REPORT GROUP 7 MSP430 TANK

ECE 511: MICROPROCESSORS

Devantech SRF04 Ultra-Sonic Ranger Finder Cornerstone Electronics Technology and Robotics II

Timer System Applications. Microcomputer Architecture and Interfacing Colorado School of Mines Professor William Hoff

ECE 477 Digital Systems Senior Design Project Rev 8/09. Homework 5: Theory of Operation and Hardware Design Narrative

EE152 Final Project Report

Lab 5 Timer Module PWM ReadMeFirst

Robotic Navigation Distance Control Platform

Crazy Alarm Clock. Abstract

Substitute eyes for Blind using Android

Walle. Members: Sebastian Hening. Amir Pourshafiee. Behnam Zohoor CMPE 118/L. Introduction to Mechatronics. Professor: Gabriel H.

Introduction. Theory of Operation

MAKER: Development of Smart Mobile Robot System to Help Middle School Students Learn about Robot Perception

Sonar Made Simple. Ping. Echo. Figure 1 - Sonar Ping and Echo

LDOR: Laser Directed Object Retrieving Robot. Final Report

University of Florida Department of Electrical and Computer Engineering Intelligent Machine Design Laboratory EEL 4665 Spring 2013 LOSAT

IMDL Fall Final Report

Ocean Controls KT-5198 Dual Bidirectional DC Motor Speed Controller

LINE MAZE SOLVING ROBOT

o What happens if S1 and S2 or S3 and S4 are closed simultaneously? o Perform Motor Control, H-Bridges LAB 2 H-Bridges with SPST Switches

The Design of Intelligent Wheelchair Based on MSP430

Critical Design Review: M.A.D. Dog. Nicholas Maddy Timothy Dayley Kevin Liou

Capabilities. Seeker provides a lot of intermediate to advanced capabilities, but is easy

Hobby Servo Tutorial. Introduction. Sparkfun:

istand I can Stand SPECIAL SENSOR REPORT

Obstacle Avoidance Mobile Robot With Ultrasonic Sensors

Emergent Behavior Robot

INSTANT ROBOT SHIELD (AXE408)

ME 461 Laboratory #2 Timers and Pulse-Width Modulation

POKER BOT. Justin McIntire EEL5666 IMDL. Dr. Schwartz and Dr. Arroyo

L E C T U R E R, E L E C T R I C A L A N D M I C R O E L E C T R O N I C E N G I N E E R I N G

Instrument Cluster Display. Grant Scott III Erin Lawler Mike Carlson

HB-25 Motor Controller (#29144)

PIC Functionality. General I/O Dedicated Interrupt Change State Interrupt Input Capture Output Compare PWM ADC RS232

Programming and Interfacing

LaserPING Rangefinder Module (#28041)

ME 461 Laboratory #5 Characterization and Control of PMDC Motors

Object Detection for Collision Avoidance in ITS

Design Project Introduction DE2-based SecurityBot

EE 308 Spring S12 SUBSYSTEMS: PULSE WIDTH MODULATION, A/D CONVERTER, AND SYNCHRONOUS SERIAN INTERFACE

Today s Menu. Near Infrared Sensors

DMC-8 (SKU#ROB )

RC Servo Interface. Figure Bipolar amplifier connected to a large DC motor

Electronic Components

Electric Bike BLDC Hub Motor Control Using the Z8FMC1600 MCU

Chapter 1. Robots and Programs

Lazy Clock Electronics and Software

Mapping device with wireless communication

Autonomous Following RObot Initial Design Review

MD04-24Volt 20Amp H Bridge Motor Drive

Marine Debris Cleaner Phase 1 Navigation

Project Proposal. Low-Cost Motor Speed Controller for Bradley ECE Department Robots L.C.M.S.C. By Ben Lorentzen

UNIVERSITY OF VICTORIA FACULTY OF ENGINEERING. SENG 466 Software for Embedded and Mechatronic Systems. Project 1 Report. May 25, 2006.

Cypress Robot Kit Final Report

I 2 C RedBot & DC Motor Servo Motor Control

ECE 445 Spring 2017 Autonomous Trash Can. Group #85: Eshwar Cheekati, Michael Gao, Aditya Sule

Bill of Materials: PWM Stepper Motor Driver PART NO

Mars Rover: System Block Diagram. November 19, By: Dan Dunn Colin Shea Eric Spiller. Advisors: Dr. Huggins Dr. Malinowski Mr.

CHAPTER 4 CONTROL ALGORITHM FOR PROPOSED H-BRIDGE MULTILEVEL INVERTER

Autonomous Lawn Care Applications

Measuring Distance Using Sound

Obstacle Avoiding Robot

Bill of Materials: General Purpose Alarm, Pulsed PART NO

IR add-on module circuit board assembly - Jeffrey La Favre January 27, 2015

T.E.S.L.A (Terrain Exoskeleton (that) Shocks Large Animals) Mark Tate

Direct Current Waveforms

S Demonstrates the Operation of MAX9926U Modes

Solar Powered Obstacle Avoiding Robot

MD03-50Volt 20Amp H Bridge Motor Drive

Timer A (0 and 1) and PWM EE3376

Sensors and Sensing Motors, Encoders and Motor Control

ENGR 1110: Introduction to Engineering Lab 7 Pulse Width Modulation (PWM)

DE1.3 Electronics 1. Tips on Team Projects

Autonomous Following RObot Critical Design Review

University of Florida Department of Electrical and Computer Engineering EEL 5666 Intelligent Machines Design Laboratory GetMAD Final Report

Robotic Development Kit. Powered using ATMEL technology

WELCOME TO THE SEMINAR ON INTRODUCTION TO ROBOTICS

Index. n A. n B. n C. Base biasing transistor driver circuit, BCD-to-Decode IC, 44 46

Timer A. Last updated 8/7/18

Robot Navigation System with RFID and Ultrasonic Sensors A.Seshanka Venkatesh 1, K.Vamsi Krishna 2, N.K.R.Swamy 3, P.Simhachalam 4

University of Texas at El Paso Electrical and Computer Engineering Department

EE 308 Lab Spring 2009

EECS 270: Lab 7. Real-World Interfacing with an Ultrasonic Sensor and a Servo

Jaguar Motor Controller (Stellaris Brushed DC Motor Control Module with CAN)

Built-in soft-start feature. Up-Slope and Down-Slope. Power-Up safe start feature. Motor will only start if pulse of 1.5ms is detected.

Analog to Digital Conversion

MOBILE ROBOT LOCALIZATION with POSITION CONTROL

Embodiment from Engineer s Point of View

Mechatronics Laboratory Assignment 3 Introduction to I/O with the F28335 Motor Control Processor

PRESENTED BY HUMANOID IIT KANPUR

Simple-H User Manual

AUTOMATIC CLOTH FOLDING MACHINE

Airduino Guitar. 1. Introduction. Technical Work Preparation. Abstract. 2.1 Operation Concept. Shahid Manzoor *, Mouaiad Albacha and Sunil Govinda

Final Report. Chazer Gator. by Siddharth Garg

Autonomous Robot Control Circuit

Cedarville University Little Blue

Design & Implementation of PWM Based 3-Phase Switch-Mode Power Supply (SMPS)

C++ PROGRAM FOR DRIVING OF AN AGRICOL ROBOT

Ultrasonic Proximity Sensor/Module for Water Proof Types of Ultrasonic Sensors (HG-P40WP)

A Model Based Approach for Human Recognition and Reception by Robot

Transcription:

OBSTACLE EVADING ULTRASONIC ROBOT Aaron Hunter Eric Whitestone Joel Chenette Anne-Marie Cressin ECE 511 - Fall 2011 1

Abstract The purpose of this project is to demonstrate how simple algorithms can produce useful behavior in a robot. The goal is to design and implement a self navigating robot using a drive motor, steering servo, an MSP430 microcontroller, and ultrasonic sensors. Initially we used 6 Ultrasonic Range Finders which communicate through I2C interface, however several were damaged. We then purchased different sensors which were more robust. The robot was fully functional a few days after the presentation, starting from 12/16/ 2011. Table of Contents Abstract... 2 1. Motivation... 3 2. Solution... 3 3. Description... 4 4. Results and Conclusion... 4 5. Appendix... 5 Table of Figures Figure 1: Top-Level Block Diagram... 3 Figure 2: Full System Schematic... 6 2

1. Motivation The motivation for the project is to demonstrate the use of simple algorithms in a system that uses sonar technology to detect and avoid obstacles. Even though underlying communication and integration of components may be complex, the communication is abstracted from the simpler logic used for course correction. 2. Solution The Evading Ultrasonic Robot uses a proportional algorithm with the readings from the ultrasonic sensors to calculate the course correction parameters. The robot successfully navigates by following the closest wall. Steering is accomplished through a simple proportional algorithm. The smaller the value produced by the left-facing sensor, the closer you are to an obstacle on the left, the more to the right the wheels are oriented. The larger the value, the more to the left the wheels move. This produces a wall following behavior as the robot moves forward. The front sensor is used to turn the wheels to the right when the vehicle is getting away from an obstacle. Figure 1: Top-Level Block Diagram 3

3. Part Description 3.1 Interfacing with the sonar sensors The software interfaces with the new Ping))) Ultrasonic sensors through Pulse Width Modulation. The original sensors that were used interfaced with software using I2C. Timer B and three capture registers are used for interfacing with the sonars. The MSP430 interfaces with the sensors using a single bidirectional wire to each sensor. Timer B is used to produce an interrupt every 22 msec. This interrupt creates a 16 usec output pulse to all three sensors. This pulse activates the ranging sequence for the sensors. Before the ISR sensors exits, all three lines are set as inputs. Once the ranging sequence begins, each sensor pulls its data line high and sends out a 40 khz ultrasonic pulse. When the echo pulse is detected, the sensor pulls the line low. This action triggers a capture event on the capture/ compare registers of Timer B. Each line is connected though a different capture register, and when the interrupt is activated again all 3 of these registers are read and used to steer the robot. 3.2 Interfacing with the Servo and Drive Motor The steering servo and drive motor are controlled using Pulse Width Modulation. Timer A was used to generate these two PWMs signals using Up Mode. The steering servo requires a waveform that has a high pulse of 1.3 to 1.7 ms with a 20 ms period. The 20 ms frequency was selected by the undivided SMCLK with a TACCR0 value of 10000. In order to create the high pulse, the CCR1 was set to OUTMOD_6 with a TACCR1 value ranging from 9120-9380. As a 20 ms period was sufficient period to drive the rear wheel motor, we were able to use the same timer for the wheels as well. The CCR2 was set in OUTMOD_6 with a value ranging from 0-9999 in order to create a PWM with a duty cycle from 0% to 100%. 4. Results and Conclusion The Obstacle Evading Robot successfully avoids obstacles. Simple algorithms used to calculate steering and speed correction, successfully navigated the vehicle. At its conclusion, the initial vision of the robot materialized. The team successfully interfaced every component that was originally planned. Much time and effort went into the discovery process in learning how the different protocols operate. A major lesson learned while developing the robot was with debugging communication protocols. If the behavior of components is unexpected or unpredictable, always view the signals on an oscilloscope and compare the signals with the signals emitted from components that are known to work. Secondly, the testing of components as soon as possible will not only help in proof of concept early on, but also alert those involved to defective hardware. It is important to get a proof of concept early on, so that design changes can be made before time becomes a major issue. Youtube Link to working robot http://www.youtube.com/watch?v=wjgriua5u7y&feature=mfu_in_order&list=ul 4

5. Appendix 5.1 Roles/Responsibilities Anne-Marie Cressin - Hardware schematic, PCB Layout, hardware integration, presentations, report Joel Chenette - Hardware selection, hardware integration, I2C with old sensors, PWM for new sensors, assist with report Aaron Hunter - PWM for drive motor and steering servo, hardware integration, assist with presentation, assist with report Eric Whitestone - I2C with old sensors, assist with hardware integration, assist with presentations, report 5.2 Parts List Description Qty Manufacturer Manufacturer Part Number Price per Unit Total Price Microcontroller 1 Texas Instruments MSP430G2203 $2 $2 Ultrasonic Range Finder 6 Devantech LTD SRF02 $24.50 $147 H-Bridge 1 DFRobot DRI0002 $22 $22 Steering Servo 1 Hitec HS-322HD $10 $10 Voltage Regulator, 5VDC, 3A, with heatsink 1 Linear Technology LT1085CT-5#PBF $10 $10 Adjustable Voltage Regulator, used to provide 3.3VDC, with heatsink 1 National Semiconductor LM317 $5 $5 Random connectors, perfboard, etc n/a n/a n/a $20 $20 Ultrasonic Range Finder 3 Parallax 28015 $30 $90 Set of Batteries 1 n/a n/a n/a n/a Total Project Cost $306 5

5.3 Full System Schematic SET OF BATTERIES SET of BATTERIES 10.5VDC +10.5VDC C6 10 uf R10 POT C7 10 uf R7 R 1 2 3 VR1 VREG +10.5VDC VOLTAGE REGULATOR C8 0.1 uf R11 POT C9 5 uf +10.5VDC R8 R VR2 1 2 3 VREG +3.3VDC VOLTAGE REGULATOR SERVO PWR IN HS-322HD SERVO +3.3VDC DVCC D MSP? P2.0 PING1 LCD U4 PING Ultrasonic Range Finder 5VDC SERVO FROM P1 P1.3 P2.1 P6 P7 LCD DATA LCD DATA LCD CTRL LCD CTRL LCD FROM P2 FROM P3 P2.2 P2.3 MSP 30 LCD PING2 MSP-EX430G2 PING Ultrasonic Range Finder PING3 5VDC DRIVE MOTOR MOTOR DC + MOTOR DC - LEGO MOTOR DC + LEGO MOTOR DC - DC MOTOR 1 + DC MOTOR 1 - E1 M1 H-BRIDGE VD JUMPER SET VS DC MOTOR 2 + DC MOTOR 2 - E2 M2 PWM H-BRIDGE PING Ultrasonic Range Finder 5VDC LEGO VEHICLE +10.5 VDC FROM BATT Figure 2: Full System Schematic 6