32
ECE 4007 L01 DK6 1 FAST: Fully Autonomous Sentry Turret Patrick Croom, Kevin Neas, Anthony Ogidi, Joleon Pettway ECE 4007 Dr. David Keezer

ECE 4007 L01 DK6 1 FAST: Fully Autonomous Sentry Turret Patrick Croom, Kevin Neas, Anthony Ogidi, Joleon Pettway ECE 4007 Dr. David Keezer

Embed Size (px)

Citation preview

Page 1: ECE 4007 L01 DK6 1 FAST: Fully Autonomous Sentry Turret Patrick Croom, Kevin Neas, Anthony Ogidi, Joleon Pettway ECE 4007 Dr. David Keezer

ECE 4007 L01 DK6 1

FAST: Fully Autonomous Sentry Turret

Patrick Croom, Kevin Neas, Anthony Ogidi, Joleon Pettway

ECE 4007Dr. David Keezer

Page 2: ECE 4007 L01 DK6 1 FAST: Fully Autonomous Sentry Turret Patrick Croom, Kevin Neas, Anthony Ogidi, Joleon Pettway ECE 4007 Dr. David Keezer

ECE 4007 L01 DK6 2

FAST Overview

• Fully Autonomous Sentry Turret – area denial gun turret with integral IFF capabilities

• Improve security, reduce unnecessary casualties, and reduce operational costs

• Intended for US Department of Defense, other armed federal organizations, and licensed private security companies

• $1893.50 component cost; $200,000 prototype development

Page 3: ECE 4007 L01 DK6 1 FAST: Fully Autonomous Sentry Turret Patrick Croom, Kevin Neas, Anthony Ogidi, Joleon Pettway ECE 4007 Dr. David Keezer

Final Budget

ECE 4007 L01 DK6 3

Parts Cost

Servo (x2) $90

Mount $45

Box $25

Arduino $30

Laptop $1500

12V Battery $140

USB (x2) $7

Wires $3

IR $2

LED $1.50

Webcam $50

Total $1893.50Overall Development Cost : ≈ $200,000.00

Page 4: ECE 4007 L01 DK6 1 FAST: Fully Autonomous Sentry Turret Patrick Croom, Kevin Neas, Anthony Ogidi, Joleon Pettway ECE 4007 Dr. David Keezer

ECE 4007 L01 DK6 4

Design Objectives

• Once activated, this system will operate without user interaction

• Uses visual monitoring to detect significant sources of movement

• Rapidly engages targets while avoiding designated friendly personnel

• Easy to use, portable, and low cost

Page 5: ECE 4007 L01 DK6 1 FAST: Fully Autonomous Sentry Turret Patrick Croom, Kevin Neas, Anthony Ogidi, Joleon Pettway ECE 4007 Dr. David Keezer

ECE 4007 L01 DK6 5

System Configuration

WebcamNotebook Computer

Phidget Control Board

Azimuth Servo

Altitude Servo

Power Supply

Digital Video(USB)

USB

DC Voltage

Voltage Data

Arduino Board

IR SensorUSB

Page 6: ECE 4007 L01 DK6 1 FAST: Fully Autonomous Sentry Turret Patrick Croom, Kevin Neas, Anthony Ogidi, Joleon Pettway ECE 4007 Dr. David Keezer

FAST Prototype Components

ECE 4007 L01 DK6 6

Page 7: ECE 4007 L01 DK6 1 FAST: Fully Autonomous Sentry Turret Patrick Croom, Kevin Neas, Anthony Ogidi, Joleon Pettway ECE 4007 Dr. David Keezer

FAST Prototype

ECE 4007 L01 DK6 7

Page 8: ECE 4007 L01 DK6 1 FAST: Fully Autonomous Sentry Turret Patrick Croom, Kevin Neas, Anthony Ogidi, Joleon Pettway ECE 4007 Dr. David Keezer

ECE 4007 L01 DK6 8

Motion Tracking Interface

Page 9: ECE 4007 L01 DK6 1 FAST: Fully Autonomous Sentry Turret Patrick Croom, Kevin Neas, Anthony Ogidi, Joleon Pettway ECE 4007 Dr. David Keezer

ECE 4007 L01 DK6 9

Tracking and Targeting Algorithm

StartSave

Current Frame

Save Next Frame

Detect Differences

Locate rectangle around

connecting edges

Mark largest rectangle and its center on

video

Check for safe

parameters

Convert pixel location to

azimuth and altitude angles

Send angle

data to servo

controller

If Yes

If No

Page 10: ECE 4007 L01 DK6 1 FAST: Fully Autonomous Sentry Turret Patrick Croom, Kevin Neas, Anthony Ogidi, Joleon Pettway ECE 4007 Dr. David Keezer

Motion Algorithm and Memory

• Image comparison of video stream is done in virtual memory

• Frames are compared in bitmap form in computer’s memory and are not saved on the hard drive

• This allows for faster computation and comparison of successive frames

Page 11: ECE 4007 L01 DK6 1 FAST: Fully Autonomous Sentry Turret Patrick Croom, Kevin Neas, Anthony Ogidi, Joleon Pettway ECE 4007 Dr. David Keezer

Pixel Location to Degrees of Rotation

• Converts the center point of the target into degrees of rotation

• Algorithm estimates distance to target based its size – Example: If a target is 42 pixels in height, the

algorithm estimates that the target is X feet away

• The data is then used in trigonometric equations to determine where to position the servos

Page 12: ECE 4007 L01 DK6 1 FAST: Fully Autonomous Sentry Turret Patrick Croom, Kevin Neas, Anthony Ogidi, Joleon Pettway ECE 4007 Dr. David Keezer

Safe Position

• After five iterations without detecting movement, the software sets the servos to safe position.

• The servos are also set to safe position when a target is wearing the safe color and/or when the system receives the correct IR “safe” signal

Page 13: ECE 4007 L01 DK6 1 FAST: Fully Autonomous Sentry Turret Patrick Croom, Kevin Neas, Anthony Ogidi, Joleon Pettway ECE 4007 Dr. David Keezer

IFF Color

• Each iteration, the algorithm retrieves the RGB values of the center pixel of that target

• If the RGB values meet the specified “safe” range, the servos are set to safe position

• Otherwise, the target will be engaged

Page 14: ECE 4007 L01 DK6 1 FAST: Fully Autonomous Sentry Turret Patrick Croom, Kevin Neas, Anthony Ogidi, Joleon Pettway ECE 4007 Dr. David Keezer

IR Configuration

ECE 4007 L01 DK6 14

220 Ω

Page 15: ECE 4007 L01 DK6 1 FAST: Fully Autonomous Sentry Turret Patrick Croom, Kevin Neas, Anthony Ogidi, Joleon Pettway ECE 4007 Dr. David Keezer

Sony Remote Protocol

• 13 pulses long• A pulse is LOW points, not HIGH• The first pulse lasts for 2.4 ms• Each subsequent pulse is 1.2 ms for a 1, 0.6 ms

for a 0• Each data pulse is 0.3 ms apart• When the button is held down, each set of 13

pulses is <10 ms apart

ECE 4007 L01 DK6 15

101001100…

Page 16: ECE 4007 L01 DK6 1 FAST: Fully Autonomous Sentry Turret Patrick Croom, Kevin Neas, Anthony Ogidi, Joleon Pettway ECE 4007 Dr. David Keezer

Arduino Code

• Arduino measures pulses based on LOW pulses• Long HIGH pulse signifies start of sequence• Converts binary string to decimal

• 10100111101 = 1341

• Only operates while receiving a signal• Does not send partial numbers – sends 0 instead• LED flashes when a 13 bit sequence is received• Sends 4 digit decimal number through USB serial

port• Prints each number on a separate line

ECE 4007 L01 DK6 16

Page 17: ECE 4007 L01 DK6 1 FAST: Fully Autonomous Sentry Turret Patrick Croom, Kevin Neas, Anthony Ogidi, Joleon Pettway ECE 4007 Dr. David Keezer

Reading Serial Port

• After each new frame, checks for correct IR number

• Calls ReadLine() to receive entire number• 10 ms timeout – no signal returns false• Compares first four digits to “safe” number

• Currently set to “1341” – The big button• Last digit of every sequence is the next line

character – “\n”• If the correct button is pushed – returns

True• Else – returns False

ECE 4007 L01 DK6 17

Page 18: ECE 4007 L01 DK6 1 FAST: Fully Autonomous Sentry Turret Patrick Croom, Kevin Neas, Anthony Ogidi, Joleon Pettway ECE 4007 Dr. David Keezer

Acceptance Testing

• Testing Target Engagement– Single target: linear path– Single target: erratic path– Multiple targets / Target priority

• Testing Safety Functions– Safe passage with IR remote – Safe passage of proper color– Escorting

ECE 4007 L01 DK6 18

Page 19: ECE 4007 L01 DK6 1 FAST: Fully Autonomous Sentry Turret Patrick Croom, Kevin Neas, Anthony Ogidi, Joleon Pettway ECE 4007 Dr. David Keezer

Single Target: Linear Movement

ECE 4007 L01 DK6 19

Page 20: ECE 4007 L01 DK6 1 FAST: Fully Autonomous Sentry Turret Patrick Croom, Kevin Neas, Anthony Ogidi, Joleon Pettway ECE 4007 Dr. David Keezer

Single Target: Erratic Movement

ECE 4007 L01 DK6 20

Page 21: ECE 4007 L01 DK6 1 FAST: Fully Autonomous Sentry Turret Patrick Croom, Kevin Neas, Anthony Ogidi, Joleon Pettway ECE 4007 Dr. David Keezer

Multiple Targets

ECE 4007 L01 DK6 21

Page 22: ECE 4007 L01 DK6 1 FAST: Fully Autonomous Sentry Turret Patrick Croom, Kevin Neas, Anthony Ogidi, Joleon Pettway ECE 4007 Dr. David Keezer

Color Detection Demonstration

ECE 4007 L01 DK6 22

Page 23: ECE 4007 L01 DK6 1 FAST: Fully Autonomous Sentry Turret Patrick Croom, Kevin Neas, Anthony Ogidi, Joleon Pettway ECE 4007 Dr. David Keezer

Color Safety Delay Protection

ECE 4007 L01 DK6 23

Page 24: ECE 4007 L01 DK6 1 FAST: Fully Autonomous Sentry Turret Patrick Croom, Kevin Neas, Anthony Ogidi, Joleon Pettway ECE 4007 Dr. David Keezer

IR Safety Demonstration

ECE 4007 L01 DK6 24

Page 25: ECE 4007 L01 DK6 1 FAST: Fully Autonomous Sentry Turret Patrick Croom, Kevin Neas, Anthony Ogidi, Joleon Pettway ECE 4007 Dr. David Keezer

Safe Passage: Color and IR

ECE 4007 L01 DK6 25

Page 26: ECE 4007 L01 DK6 1 FAST: Fully Autonomous Sentry Turret Patrick Croom, Kevin Neas, Anthony Ogidi, Joleon Pettway ECE 4007 Dr. David Keezer

Escorting Guests

ECE 4007 L01 DK6 26

Page 27: ECE 4007 L01 DK6 1 FAST: Fully Autonomous Sentry Turret Patrick Croom, Kevin Neas, Anthony Ogidi, Joleon Pettway ECE 4007 Dr. David Keezer

Temporarily Escorting Targets

ECE 4007 L01 DK6 27

Page 28: ECE 4007 L01 DK6 1 FAST: Fully Autonomous Sentry Turret Patrick Croom, Kevin Neas, Anthony Ogidi, Joleon Pettway ECE 4007 Dr. David Keezer

Fully Enclosed System

ECE 4007 L01 DK6 28

Page 29: ECE 4007 L01 DK6 1 FAST: Fully Autonomous Sentry Turret Patrick Croom, Kevin Neas, Anthony Ogidi, Joleon Pettway ECE 4007 Dr. David Keezer

Primary Specifications

• Can the system successfully engage a target before that target can reach the turret itself?– Yes

• Can a properly designated ally pass through the kill-zone without being engaged?– Yes

Page 30: ECE 4007 L01 DK6 1 FAST: Fully Autonomous Sentry Turret Patrick Croom, Kevin Neas, Anthony Ogidi, Joleon Pettway ECE 4007 Dr. David Keezer

Detailed Specifications

Page 31: ECE 4007 L01 DK6 1 FAST: Fully Autonomous Sentry Turret Patrick Croom, Kevin Neas, Anthony Ogidi, Joleon Pettway ECE 4007 Dr. David Keezer

Future Work

• Scale up design– High resolution camera, faster processor,

bigger servos, M60 belt-fed machine gun

• Face recognition

• Implement RFID

• Badge scanning

• 360˚ Field view

• Implement for outdoorsECE 4007 L01 DK6 31

Page 32: ECE 4007 L01 DK6 1 FAST: Fully Autonomous Sentry Turret Patrick Croom, Kevin Neas, Anthony Ogidi, Joleon Pettway ECE 4007 Dr. David Keezer

Questions?

ECE 4007 L01 DK6 32