RACE Reactive Autonomous Coordinate Executor Created by: Neil Javalla Dustin Torres Derrick Yanga.

16
RACE Reactive Autonomous Coordinate Executor Created by: Neil Javalla Dustin Torres Derrick Yanga

Transcript of RACE Reactive Autonomous Coordinate Executor Created by: Neil Javalla Dustin Torres Derrick Yanga.

Page 1: RACE Reactive Autonomous Coordinate Executor Created by: Neil Javalla Dustin Torres Derrick Yanga.

RACE

Reactive Autonomous

Coordinate ExecutorCreated by:

Neil Javalla

Dustin Torres

Derrick Yanga

Page 2: RACE Reactive Autonomous Coordinate Executor Created by: Neil Javalla Dustin Torres Derrick Yanga.

RACE

•Path Programmable

•Avoids Obstacles

•Adaptable

Page 3: RACE Reactive Autonomous Coordinate Executor Created by: Neil Javalla Dustin Torres Derrick Yanga.

Schematics

Page 4: RACE Reactive Autonomous Coordinate Executor Created by: Neil Javalla Dustin Torres Derrick Yanga.
Page 5: RACE Reactive Autonomous Coordinate Executor Created by: Neil Javalla Dustin Torres Derrick Yanga.

Programmed Path

Page 6: RACE Reactive Autonomous Coordinate Executor Created by: Neil Javalla Dustin Torres Derrick Yanga.

Programmed Path

Page 7: RACE Reactive Autonomous Coordinate Executor Created by: Neil Javalla Dustin Torres Derrick Yanga.

Programmed Path

Page 8: RACE Reactive Autonomous Coordinate Executor Created by: Neil Javalla Dustin Torres Derrick Yanga.

Programmed Path

Page 9: RACE Reactive Autonomous Coordinate Executor Created by: Neil Javalla Dustin Torres Derrick Yanga.

Programmed Path

Page 10: RACE Reactive Autonomous Coordinate Executor Created by: Neil Javalla Dustin Torres Derrick Yanga.

Programmed Path

Page 11: RACE Reactive Autonomous Coordinate Executor Created by: Neil Javalla Dustin Torres Derrick Yanga.

Programmed Path

Page 12: RACE Reactive Autonomous Coordinate Executor Created by: Neil Javalla Dustin Torres Derrick Yanga.

Programmed Path

Page 13: RACE Reactive Autonomous Coordinate Executor Created by: Neil Javalla Dustin Torres Derrick Yanga.

Components

Arduino One Speed Control

– Electronic speed controller

Steering Control– Servo

Arduino Two Detects Obstacles

– IR Sensor– Average algorithm

Sends obstacle data to Arduino one

– Wire

Page 14: RACE Reactive Autonomous Coordinate Executor Created by: Neil Javalla Dustin Torres Derrick Yanga.

Detecting obstacle

Read IR data "in"

add "in" to running average.remove oldest value of

running average

yes

IS average > threshold ?

Obstacle = true

no_obstacle++

no

Is no_obstacle > 500 ?

no_obstacle = 0obstacle = false

yes

no

Page 15: RACE Reactive Autonomous Coordinate Executor Created by: Neil Javalla Dustin Torres Derrick Yanga.

Timing Diagram

•The clock runs at 50Hz

•The speed controller gets sent a signal at the beginning of each clock cycle to determine the speed. We used a signal of 1270us

•Servo also gets a signal at the beginning of each clock cycle and it is variable

•1100us is complete right turn

•1500us is center

•1900us is complete left turn

Page 16: RACE Reactive Autonomous Coordinate Executor Created by: Neil Javalla Dustin Torres Derrick Yanga.

Challenges

Surface trouble– On different surfaces the speed varies, which in turn changes the

angle and makes it hard for our car to be surface independent Servo trouble

– The servo was not exact and created a drift making it hard for the car to go straight

IR sensor trouble– Erroneous values can through off the sensing of objects

Battery trouble– Even with voltage regulators, a dieing battery will change the

current through our circuit, inevitably causing a change in speed