Team Ocho Cinco

34
Team Ocho Cinco Raymond Chen Zhuo Jing Brian Pentz Kjell Peterson Steven Pham

description

Team Ocho Cinco. Raymond Chen Zhuo Jing Brian Pentz Kjell Peterson Steven Pham. Updated Objectives. Minimum: Design a vehicle controlled remotely by drawing a path on a handheld touch-screen computer. - PowerPoint PPT Presentation

Transcript of Team Ocho Cinco

Page 1: Team Ocho Cinco

Team Ocho Cinco

Raymond Chen Zhuo Jing

Brian Pentz Kjell Peterson

Steven Pham

Page 2: Team Ocho Cinco

• Minimum: Design a vehicle controlled remotely by drawing a path on a handheld touch-screen computer.

• Target: Include obstacle avoidance feature with minimal path deviation. Utilize Bluetooth to provide real-time stats to touch-screen

• Optimal: Implement terrain and obstacle mapping capabilities updating the map in real-time.

Updated Objectives

Page 3: Team Ocho Cinco

Project Status

• Completed– Basic chassis assembly– Hardware design

• In Progress– RPS Pixel Tracking Software– FPGA/Picoblaze Firmware– Touchpad Software

Page 4: Team Ocho Cinco

Vehicle Chassis

• Tracked– 180 degree turns

• Runs on 7.2V Ni-Cd Batteries– 10 minute full throttle battery life

Page 5: Team Ocho Cinco

Servo Control

• Throttle and Steering Servos• Takes a pulse every 20ms• Linear time to angle relationship

Page 6: Team Ocho Cinco

Servo Control

• Level Shifters from TTL to Logic– FPGA outputs 3.3V TTL– Servos take 5V logic– CD4504 TI LS

Buffered Heading

s

Buffered Distance

Servo Controller

SteeringServo

Pulse Length

Number of

Pulses

Page 7: Team Ocho Cinco

Digilent FPGADevelopment Board

- Spartan-3 XC3S200: 200k gates- 3x32 open 3.3V I/O ports- Pre-configured power sequence- RS232 serial output- On-board SSDs for testing

Page 8: Team Ocho Cinco

• 256 Inputs, 256 Outputs– Supports numerous combinational sub-

routines

• Low Deployment Cost– Occupies only 96 slices, ~3% of XC3S200

• Processor Behavior– Simplifies control and state-machine

applications

Page 9: Team Ocho Cinco
Page 10: Team Ocho Cinco

Digital Compass

- I2C Interface- Continuous

Measurement to 1/10th of a degree

Page 11: Team Ocho Cinco

IR Sensors• Interfaces with

FPGA via A/D converter

• 8 bit A/D conversion gives 1cm resolution at 50-60cm (worst case)

Page 12: Team Ocho Cinco

Bluetooth DIP Module

• Connects directly to the FPGA (3.3V logic)

• Uses the RS232 protocol– Instantiate a UART on the FPGA

Page 13: Team Ocho Cinco

Connector Schematic

Page 14: Team Ocho Cinco

BT, Servo, and Compass Sch.

Page 15: Team Ocho Cinco

IR Sensor Array Schematic

Page 16: Team Ocho Cinco

• Nothing Works Without Communication• Necessary Communication Lines:

• RPS to TSC: Location• TSC to OCM: Path Data• TSC to OCM: Location• OCM to TSC: Obstacle Information• OCM to TSC: Heading• OCM to TSC: Battery Voltage

Communication

Page 17: Team Ocho Cinco

Communication Protocol

B Returns one 8-bit digital voltage reading

Request Battery voltage

Command (ASCII) Ensuing Data Description

C -- Clear Path

S # of instructions (0 – FF)16-bit instructions

Send Path

L 16-bit location (in inches) Send Location

O Returns six 8-bit distances (in inches), one for each sensor

Request Obstacle data

H Returns one 9-bit number (in two bytes) with heading (0o – 359o)

Request Heading

Page 18: Team Ocho Cinco

• Takes Input of an array of Touch-Screen Coordinates– Simple Algorithm to Determine Heading (H)

and Distance (D) to Reach Next Point

Path Calculation Code Block (FPGA)

Start End

Input Stylus Coordinate

s

Compare Consecutive

Points

Determine Heading and

Distance

Buffer Instructions

Send to

Servo

P1

P0

D)

H

Page 19: Team Ocho Cinco

• Takes Input of Socket Name, Address, obtained through IOCTL_BLUETOOTH_GET_PEER_DEVICE – Connects to Socket, sends all Path Coordinates– While still connected, makes sure that the data was

received, then returns.

Path Transmission via Bluetooth

Start End

Input Socket and Path

Data

Connect to Socket

Listen for Confirmation

of Transmission

Send Path Data

Return True

Return

False

Confirmation Received

Confirmation Not Received

Page 20: Team Ocho Cinco

• Uses same Socket for the Vehicle Transceiver as used in Transmission– Connects to Socket, receives Data, according to Communication

Protocol– Sends Confirmation back to the Vehicle.– After each piece of data has been successfully received, program will

return a structure containing all data to be processed and displayed.

Obtaining Data from the Vehicle

Start End

Input Socket and Path

Data

Connect to Socket

Send Confirmatio

n

Receive Data

Generate OCM_Data Structure

Page 21: Team Ocho Cinco

StartWebcam Capture

Send Coords to TSC

Center Pixel Pt

Map AbsCoords

@Dest?

EndYes

No

• Determine OCM Location– Take live pictures of field– Color pixel tracking (OCM color coded)– Map field coordinates– Send to TSC

Regional Positioning System

Page 22: Team Ocho Cinco

RPS Field of Vision

22 ft

19 ft

55°

• Capstone lab open space– Maximum depth: 22 ft

• iPaq Bluetooth range: 30 ft• Webcam viewing angle: 55°

Top-Down View

7 ft

6 ft22 ft

Side View

Dead-zoneActive-Zone

Page 23: Team Ocho Cinco

• Microsoft Lifecam VX-3000– 1.3 MP capture (1280 x 1024)– USB connectivity

Webcam Capture

OCM

• OCM in the Field– Specially color coded– Unique color for detection– Shaped spherically

Page 24: Team Ocho Cinco

• Image/Pixel Detection– Scan for specified color– Calculate average pixel location– Unique color → Center of OCM (pixelwise)

Color Pixel Tracking

• OCM Location– Algorithm: Pixel → Field Coordinates

Page 25: Team Ocho Cinco

Battery

Li-Ion Battery• 7V, 2AH• Weight: 3.5 oz• Dimension: W1.35x H0.6 x L2.5 (inch)

Page 26: Team Ocho Cinco

Battery Tracker

Li-Ion Battery Tracker

• 5 Bars(represents battery’s life at 100%, 80%, 60%, 40%...etc)

• Experiment– 1. Charge up battery to max capacity – 2. Discharge battery with light bulb, measure the

battery voltage every 5min till the battery is empty.

Page 27: Team Ocho Cinco

Power Distribution

Page 28: Team Ocho Cinco

Parts List

• Spartan-3 FPGA• HMC6352 Digital Compass• Kyosho Blizzard EV, Futaba S3003 Servos• MS Lifecam VX-3000 • 7.2V, 2Ah Battery • Bluetooth transceiver and Dongle• Regulators, capacitors

Page 29: Team Ocho Cinco

Responsibilities

• Kjell Peterson– Touchscreen Controller, Microcontroller

• Brian Pentz– FPGA, Picoblaze, Bluetooth

• Steven Pham– RPS, Bluetooth, CDS

• Zhuo Jing– Power Distribution, Servo Control

• Raymond Chen– Servo Control, CDS, FPGA

Page 30: Team Ocho Cinco

Project Timeline

Page 31: Team Ocho Cinco

Goals for Milestone 1

• Power/Battery interfacing• Simple RPS tracking capabilities• GUI complete• Basic Bluetooth interfacing complete• PCB layout, ready for fabrication• FPGA layout (completed)

Page 32: Team Ocho Cinco

Goals for Milestone 2

• PCB complete and fabricated• Servo controller and path calculation complete• Car follows given path• RPS Fully Functional• FPGA subsystem logic completed

Page 33: Team Ocho Cinco

Goals for Expo

• Subsystems fully integrated via FPGA• Obstacle avoidance capable• Obstacle mapping capable• Time permitting: Inclinometer/terrain mapping

Page 34: Team Ocho Cinco

Questions?