210 likes | 401 Views
Preliminary Design Review. By: Alireza Veiseh Anh-Thu Thai Luai Abou-Emara Peter Tsang. Introduction. Goal: To allow students to learn basic programming concepts by controlling movements of a toy tank via a set of instructions. Overview. Parts List Design Scheme Modules:
E N D
Preliminary Design Review By: Alireza Veiseh Anh-Thu Thai Luai Abou-Emara Peter Tsang
Introduction Goal: To allow students to learn basic programming concepts by controlling movements of a toy tank via a set of instructions.
Overview Parts List Design Scheme Modules: Electronic Compass Radio Frequency Module Oscillator Sonar Ranging Module XSV-300 Remote Control User Interface Design Issues Current Status
Electronic Compass Vector 2X • Purpose: • to measure the rotation angle of the Etank • Requirements: • Power consumption: 5V (+/- 0.25V) • Maximum data frequency: 1 MHz • Data interpretation in binary mode: 128 + 32 + 8 + 4 = 172 °
Compass – PIC Interface Compass: • Operates in slave mode • Performs I/O in binary format PIC: • Provides the clock for the compass • Receive interrupt from EOC • Reads data from SDO • Resets compass • Polls data periodically from the compass
RF Transceiver • Purpose: • To provide a communication channel between the remote and the central component of the Etank • Requirements: • Power Consumption: 2.7V - 3.5V • Operation Frequency: Internal clock with 916.5 MHz radio frequency • RS232 serial communication port with 19200 bps • RF Packet format:
RF Transceiver – PIC Interface RF Transceiver: • Communicates using RS232 protocol with peripheral devices (PIC and XSV-300) PIC: • Periodically retrieves data from the compass and the sonar • Encodes them separately into specific format that RF requires • Sends them to RF for transmission
Oscillator – PIC Interface Oscillator: • Provides the clock for PIC (20 MHz)
Sonar Ranging Kit • Purpose: • To measure the distance of objects from 6 inches to 35 feet away. The accuracy is +/-1% of the reading over the entire range • Components: • Polaroid 6500 Ranging Module • Transducer • Cable • Requirement: • Power Consumption: 4.5V – 6.8V • Operation Frequency: 49.4 KHz
Sonar-PIC Interface Sonar: • Operates in single-echo mode. • Transmits sound wave and gets the echo reflected off of the border. PIC: • Triggers the input signal of the sonar module and turn on its timer at the same time. • Receives the interrupt from sonar and turns off the timer. • Calculates the distance of Etank to the border using the response delay.
XSV-300 board • Purpose: • Central component that arbitrates the system • Requirements: • Power Consumption: 9.0V • Operation Frequency: 25 MHz • I/O Pin voltage level: 5.0 V
XSV-300 Operation • Receives a destination from the user as a (command, units) pair • A command can be move forward, turn right or turn left. • Destination units are specified as turn angles or distance units. • When a new destination is received, XSV will decode data from Etank and determine how to control the tank. • If it was commanded to move forward, the units are interpreted as distance units • If it was commanded to turn, the units are interpreted as turning angles. • Receives (distance, direction) pair information from Etank at a constant rate.
RF Transceiver – XSV-300 Board XSV-300 board: • Receives data from Etank through the RF serial port. • Serial Signal is +/- 12 V, but XSV operates at 0-5 V • To make the serial signal operate in the positive range, we use the signal to switch a transistor which is connected across the remote control’s 9V battery. • We reduce the 9V to 5V with a voltage divider.
PC -- XSV-300 -- Remote Control Interface PC: • Sends to XSV-300 board one set of instructions at a time: • Forward, distance • Backward, distance • Left, angle • Right, angle XSV-300 board: • Processes the data received from the remote component • Controls the remote control using four pins
Etank’s Remote Control Channels • Channels: • Four output bits control the channel • Each bit controls a channel as shown below:
User Interface • Will be a GUI application that allows a user to send instruction to Etank • Will be programmed in C++ • Will communicate through the parallel port using the DLportIO.lib and DLportIO.dll interfaces, which we studied in CSE467
Design Issue • Tank: • The compass determines position at the rate of 5Hz, which is too slow comparing to the speed of the tank • Between XSV-300 board and RF Transceiver: • A glitch appears in the beginning of the RF packet
Current Status Completed: To be completed:
Summary • Parts list • Implementation • Remote components • Electronic Compass • Radio Frequency Module • Oscillator • Sonar Ranging Module • Central Components • XSV-300 • Remote Control • User Interface • Design Issues • Current Status