Autonomous Helicopter James LydenEE 496Harris Okazaki.

Slides:



Advertisements
Similar presentations
IO Interfaces and Bus Standards. Interface circuits Consists of the cktry required to connect an i/o device to a computer. On one side we have data bus.
Advertisements

Computer Architecture
Categories of I/O Devices
INPUT-OUTPUT ORGANIZATION
LOGO Lab Supervisor – Dr. WH Lau EE3271 Design Laboratory.
Chapter 10 Input/Output Organization. Connections between a CPU and an I/O device Types of bus (Figure 10.1) –Address bus –Data bus –Control bus.
DATA COLLECTION USING ZIGBEE NETWORK Timothy Melton Moscow, ID.
Serial Interfaces, Part Deux -I 2 C and SPI December 4, 2002 Presented by Eugene Ho.
SPI Serial Peripheral Interface. SPI Serial Peripheral Interface is communication between two devices, one bit at a time sequential one bit at time over.
Lecture 8: Serial Interfaces
CS-334: Computer Architecture
Autonomous Helicopter: James Lyden Harris Okazaki EE 496 A project to create a system that would allow a remote- controlled helicopter to fly without user.
Introduction of Holtek HT-46 series MCU
Hierarchy of I/O Control Devices
Initial Position Orientation Tracking System (IPOTS) Group Members: Keiichi McGuireHenry Pham Marc TakamoriScott Spiro.
Travis Reed Todd Hummel Kwan-Truc. Concept USB 1.1 SPI b.
IO Controller Module Arbitrates IO from the CCP Physically separable from CCP –Can be used as independent data logger or used in future projects. Implemented.
OUTLINE WHAT ? HOW ? WHY ? BLUEPOST Poster and Message Content Specified by the User Displaying the Poster Content on a Monitor Sending Messages to.
1 Project supervised by: Dr Michael Gandelsman Project performed by: Roman Paleria, Avi Yona 26/4/2004 Multi-channel Data Acquisition System Final_A Presentation.
7-1 Digital Serial Input/Output Two basic approaches  Synchronous shared common clock signal all devices synchronised with the shared clock signal data.
INPUT-OUTPUT ORGANIZATION
Peripheral Interpreter consisting of Analyzers 'N Operators
Computer Architecture Lecture 08 Fasih ur Rehman.
Computerized Train Control System by: Shawn Lord Christian Thompson.
 Purpose of our project  Get real world experience in ASIC digital design  Use same tools as industry engineers  Get practical experience in microprocessor.
Critical Design Review 27 February 2007 Black Box Car System (BBCS) ctrl + z: Benjamin Baker, Lisa Furnish, Chris Klepac, Benjamin Mauser, Zachary Miers.
LSU 10/22/2004Serial I/O1 Programming Unit, Lecture 5.
Ballooning Bundle. What is a Microcontroller? Small computer with a processor core, memory and programmable input/output Continuously repeats software.
4.0 rtos implementation part II
Remote Control of a Furby Toy with Bluetooth
© Janice Regan, CMPT 300, May CMPT 300 Introduction to Operating Systems Principles of I/0 hardware.
Typical Microcontroller Purposes
Arduino. What is it? A open-source software suite and single-board microcontroller. Allows easy and affordable prototyping of microcontroller applications.
CHAPTER 3 TOP LEVEL VIEW OF COMPUTER FUNCTION AND INTERCONNECTION
Autonomous Helicopter James LydenHarris Okazaki EE 496.
Lecture 20: Communications Lecturers: Professor John Devlin Mr Robert Ross.
Embedded Stroke Evaluation System Amanda Sweeney, 4ECE Supervisor: Dr. Martin Glavin.
Team 6. Code Modules Codec Bluetooth Module Rotary Encoder Menu State Machine.
Computer Architecture Lecture10: Input/output devices Piotr Bilski.
DEVICES AND COMMUNICATION BUSES FOR DEVICES NETWORK
 8251A is a USART (Universal Synchronous Asynchronous Receiver Transmitter) for serial data communication.  Programmable peripheral designed for synchronous.
By: Eric Backman Advisor: Dr. Malinowski.  Introduction  Goals  Project Overview and Changes  Work Completed  Updated Schedule.
ATtiny23131 A SEMINAR ON AVR MICROCONTROLLER ATtiny2313.
PROJECT - ZYNQ Yakir Peretz Idan Homri Semester - winter 2014 Duration - one semester.
CH10 Input/Output DDDData Transfer EEEExternal Devices IIII/O Modules PPPProgrammed I/O IIIInterrupt-Driven I/O DDDDirect Memory.
Project D1427: Stand Alone FPGA Programmer Final presentation 6/5/10 Supervisor: Mony Orbach Students: Shimrit Bar Oz Avi Zukerman High Speed Digital Systems.
Electronic Analog Computer Dr. Amin Danial Asham by.
©2008 R. Gupta, UCSD COSMOS Summer 2008 Peripheral Interfaces Rajesh K. Gupta Computer Science and Engineering University of California, San Diego.
Humble Hubble Team 18 Tim Brown. Abstract The proposed project is a self-aiming telescope. This telescope will obtain its global position and the local.
Treasure Chess ECE 477 Team 2 Parul Schroff Software Design Narrative.
Autonomous Helicopter EE 496 James Lyden Harris Okazaki.
Essentials of Communication This simple model requires many guarantees. Sender Receiver Communication Link Data.
Department of Electronic & Electrical Engineering Serial interfaces Serial Interfaces allow communication between devices sending one bit at a time. In.
Serial Peripheral Interface SPI I2C (i-squared cee)
I/O Organization Competency – C6. Important facts to remember when I/O devices are to be connected to CPU There is a vast variety of I/O devices. Some.
Embedded Systems February 10, Serial Interface - SPI  Serial Peripheral Interface  Synchronous communications  Clock supplied by the Master.
1 Device Controller I/O units typically consist of A mechanical component: the device itself An electronic component: the device controller or adapter.
Microcontroller basics Embedded systems for mortals.
SmartCup – Team 42 Harington Lee, Chirag Patil, Arjun Sharma 1.
TRIO-CINEMA 1 UCB, 2/08/2010 ACS Dave Auslander, Dave Pankow, Han Chen, Yao-Ting Mao, UC Berkeley Space Sciences Laboratory University of California, Berkeley.
Timothy Kritzler and Joseph Mintun Sponsor: Martin Engineering, Illinois Advisors: Dr. Malinowski and Dr. Ahn Bradley University Electrical and Computer.
1. PIC ADC  PIC18F877 has 8 analog input channels i.e. port A pins(RA0 to RA5) and port E pins(RE1 and RE2). These pins are used as Analog input pins.
MICROCONTROLLER AND INTERFACING Presented by: Shefali Jethva ( ) Shivali Panchal ( ) Komal Soni ( ) Roll no. :- 14EC308.
Chip Config & Drivers – Required Drivers:
Chapter 11: Inter-Integrated Circuit (I2C) Interface
Operating Systems Chapter 5: Input/Output Management
Presentation transcript:

Autonomous Helicopter James LydenEE 496Harris Okazaki

Project Overview The goal of this project is to create a helicopter capable of flying itself. The helicopter should be able to take off, fly to a predetermined location, and land without user input (during flight). The target will be specified pre-flight by a user, through a computer interface.

Hardware Modules Onboard Controls  Master Microcontroller  Slave Microcontroller Sensors  Accelerometer  Gyroscope Communications  Bluetooth Transceivers onboard and on PC PID Correction System  PC

Block Diagram User: input flight plan 3 Axis Accel Gyro Servos PC w/BT: calculates control signals Master μ C BT transc eiver Slave μ C OFFBOAR D ONBOARD

Software Flow PC Software Flow Initialize: Open Serial Port Test Serial Port Get Data: Listen for Packet Parse Packet Store Data: Update Pos/Vel/Acc Update Error Values PID Calculations: Read Error Values Compute Corrections Flight Planning: Check Flight Mode Add Desired Offsets Format Output: Combine Offsets+PID Put Data Into Buffer Send Data: Write Buffer to Serial Port

Software Flow Master μ C Software Flow Initialize: Open Serial Ports Initialize Sensors Initialize PWMs Get Sensor Data: Send Commands Read/Save Responses Format Sensor Data: Use 8 MSbs Cast To Chars Send Sensor Data: fprintf Each Byte Wrap Word With Tags Get Correction Data: Wait For UART Ready Read 4-Byte Word Set Control Signals: Parse First 2 Bytes Set PWM Duty Cycles

Software Flow Slave μ C Software Flow Initialize: Open Serial Port Initialize PWMs Get Correction Data: Wait For UART Ready Read 4-Byte Word Set Control Signals: Parse First 2 Bytes Set PWM Duty Cycles

Focus: Accelerometer Interface (components) ‏ Digital Interface Microcontroller: I²C Master Accelerometer: I²C Slave ADC performed by accelerometer All data transfer performed via register read/write Wiring SCL: clock, synchronizes data rate SDA: Bidirectional data line; only one device can transmit at a time, negotiated by I²C protocol

Focus: Accelerometer Interface (tests) ‏ Communications test: Read the WHO_AM_I register, verify it reports known value Write config data to CTRL_REG1, read to verify it worked Scale test (once per axis): Tilt sensor so target axis is subject to gravity, read the value of each axis, verify target axis is roughly 1g while other axes are roughly zero. Speed test: Read values from all 3 axes at a rate of 2.56KHz (delay 390 µs between reads), ensure data changes as we tilt sensor

Focus: Accelerometer Interface Master MicrocontrollerAccelerometer Initialize I ² C Send: I ² C Start Send: Write EnableADC Register Send: Read [X,Y,Z] Axis Register Receive: [X,Y,Z] Axis Value Store: [X,Y,Z] Axis Value Listen on Bus Start ADC Conversions Fetch Register Contents Send: Register Contents Wait for Conversion to Finish (Updates at 2.56KHz)‏

Focus: Accelerometer Interface (design decisions) ‏ Using digital vs. analog interface Analog interface would have required using microcontroller's ADC, which would also be occupied by gyroscope Analog interface used 3.3V logic, limiting the full range when coupled to the 5V microcontroller ADC Less ADC code interspersed through the microcontroller code Using I²C vs. SPI SPI uses 4 wires, where I²C only requires 2 Using one 3-axis device vs. multiple single-axis devices Size and weight constraints, as well as wiring complexity

Remaining Work Testing Gyroscope digital interface Master microcontroller loop speed We need to know if the loop runs faster than ADC Refinement PID scale tuning Optimize code in master microcontroller main loop If we have time, increase baud rate for serial communications Implementation Accelerometer interface (partially done) ‏ User interface

Gantt Chart