Magnetometer Testing Board Presented by Jianer Shi 04/25/2011.

Slides:



Advertisements
Similar presentations
EMS1EP Lecture 4 Intro to Programming Dr. Robert Ross.
Advertisements

EXTERNAL COMMUNICATIONS DESIGNING AN EXTERNAL 3 BYTE INTERFACE Mark Neil - Microprocessor Course 1 External Memory & I/O.
3D Graphical Display Ararat Adamian Brian McDonald Tyler Blair Adrian Williams.
By: Russ Butler ECE4220 Spring 2012 Dr. DeSouza May 2, 2012.
LOGSYS Development Environment of Embedded Systems Tamás Raikovich Béla Fehér Péter Laczkó Budapest University of Technology and Economics Department of.
Haptic Glove Hardware Graduation Project Prepared by Yaman A. Salman Eman M. Masarweh 2012.
Electronic and Computer Engineering Colin Grogan Final Year Project: Design and Build an Air Mouse for people with lower mobility.
Team Impact Intelligent Helmet Impact System Critical Design Review February 28 th, 2008 Amanda Brodbeck Wei-Chu Liao Wei-Shen Liao Chris Mintle.
Mentor, John R. LaCourse: Nicholas Parrott: Erick Janampa: Project Definition “ The goal of this project.
OutLine Overview about Project Wii Robot Escaper Robot Problems and Solutions Demo.
Electrical and Computer Engineering SMART GOGGLES To Chong Ryan Offir Matt Ferrante James Kestyn Advisor: Dr. Tilman Wolf Preliminary Design Review.
1 Electrical and Computer Engineering Cam Proctor Ramsey Khudairi Tom Gilbert Chad Young Project Orion TekBand.
Initial Position Orientation Tracking System (IPOTS) Group Members: Keiichi McGuireHenry Pham Marc TakamoriScott Spiro.
Spring EE 316 Computer Engineering Junior Lab LCD modules, PROMs, Serial Ports.
Design and Development of High Performance PC Based Logic Analyzer MSc Project by Rab Nawaz Advisor: Dr. Shahid Masud.
Design and Implementation of a Virtual Reality Glove Device Final presentation – winter 2001/2 By:Amos Mosseri, Shy Shalom, Instructors:Michael.
OUTLINE WHAT ? HOW ? WHY ? BLUEPOST Poster and Message Content Specified by the User Displaying the Poster Content on a Monitor Sending Messages to.
Aztec PC Oscilloscope Michael Mason Jed Brown Josh Price Andrew Youngs.
Mathieu Stephan, EPFL. Why? Create a complete product Remotely control your music player Get information about the tracks being played Get calls / listen.
Critical Design Review February 23 rd, 2010 Hassan Alabudib Kamal Sabi Peng Chen Marisol Lozano Roman Yirui Huang.
ECE 477 DESIGN REVIEW TEAM 7  SPRING 2013 COST ROBOT CAROLINE TRIPPEL, ANDREW LOVELESS, ERIC OSBORNE, BRYAN DALLAS.
Engineering 1040: Mechanisms & Electric Circuits Fall 2011 Introduction to Embedded Systems.
Edited by Mandar More Technical Manager, Ninad`s Research lab Ninad243.weebly.com MODERN OFFICE MANAGEMENT TOOL FOR SELECTIVE DATA.
2 Lines Electronics I 2 C Analyzer Ching-Yen Beh Robert S. Stookey Advisor: Dr. J. W. Bruce.
PIC microcontrollers. PIC microcontrollers come in a wide range of packages from small chips with only 8 pins and 512 words of memory all the way up to.
Serial Communication ETEC 6416.
 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.
BeH ā v Student Behavior FeedbackSystem. Overview Team BeHāV Overview Schematic Parts Software Hub Timeline Budget.
The 8051 Microcontroller and Embedded Systems
Ryan McLean John-Michael Mulesa Joe Perrin Zach Schoenberger Formal Design Review.
RC CAR CONTROLLER BASED ON INTEL GALILEO SOC PLATFORM Nadav Shiloach Sagi Sabag Supervisor: Idan Shmuel Spring 2014 One Semester Project PROJECT’S ENDING.
The 8051 Microcontroller and Embedded Systems
Shiv Yukeun Donghan Robert.  Project overview  Project-specific success criteria  Block diagram  Component selection rationale  Packaging design.
Requirements for an Internet Connection The Internet is the largest data network on earth. Connection to the Internet can be broken down into the physical.
ECE Grande ECE 477 Design Review Team 3 - Fall 2008.
Arduino. What is it? A open-source software suite and single-board microcontroller. Allows easy and affordable prototyping of microcontroller applications.
I/O Example: Disk Drives To access data: — seek: position head over the proper track (8 to 20 ms. avg.) — rotational latency: wait for desired sector (.5.
Data Logger For Mechanical Systems Group 2: Abdulrahman Al-Malki Faisal Al-Mutawa Mohammed Alsooj Yasmin Hussein 1.
Autonomous Helicopter James LydenEE 496Harris Okazaki.
EE 316 Computer Engineering Junior Lab Serial Ports, LCD Displays & PROMs.
Team 6 DOODLE DRIVE Alexander Curtis Peachanok Lertkajornkitti | Jun Pan | Edward Kidarsa |
Chapter 2 Introducing the PIC Mid-Range Family and the 16F84A The aims of this chapter are to introduce: The PIC mid-range family, in overview The overall.
Representing Numerical Data Analog Any signal that varies continuously over time Mechanical Pneumatic Hydraulic Electrical Digital Quantities are represented.
PROJECT - ZYNQ Yakir Peretz Idan Homri Semester - winter 2014 Duration - one semester.
Formula SAE Ryan Langley
C# RADAR PROJECT YAKUP ÖZDEMİR
Group #15 Matt Frank Russell Geschrey.  This project was chosen because of an interest in wireless communication systems, namely BAN's (body area networks)
Password Based Door Lock System using 8051 Microcontroller
SP13 ECE 445: Senior Design Sign Language Teaching Glove Project #29: Reebbhaa Mehta, Daniel Fong, Mayapati Tiwari TA: Igor Fedorov.
Microcontrollers JULES CALELLA. Microcontrollers vs Microprocessors  Microprocessors – do not contain RAM, ROM, I/O  Microcontrollers – The whole package.
Automatic Guitar Tuner Group #10 Dariusz Prokopczak & Stephan Erickson ECE 445 Sr. Design December 9, 2014.
SMART CART Group 20 Ciju Francis, Tom Rosengrant.
SUBMITTED BY EDGEFX TEAM PORTABLE CODED WIRELESS MESSAGE COMMUNICATION BETWEEN TWO PARTIES SECRETLY WITH LCD DISPLAY.
TV Remote As A Wireless Mouse For PC.
BATCH MEMBERS R.ABHISHEK-08N41A0401 K.DHEERAJ REDDY-08N41A0412 S.RAJENDRA REDDY-08N41A0458 JYOTHISHMATHI COLLEGE OF ENGINEERING AND TECHNOLOGY,TURKAPALLY.
Serial Communications
PROGRAMMABLE LOGIC CONTROLLERS SINGLE CHIP COMPUTER
ECE 477 Design Review Team 13  Spring 2007
SUBMITTED BY EDGEFX TEAM
Fundamentals of Computer Engineering
DIGITAL CALCULATOR USING 8051
SERIAL PORT PROGRAMMING
Atmega32 Serial Programming Basics
I2C PROTOCOL SPECIFICATION
ECE 445: Robotic Microphone Stand
CSCI1600: Embedded and Real Time Software
CSCI1600: Embedded and Real Time Software
I/O Experiments Assignment 1.
ECE 445 Spring Head Orientation Tracking Module for Headphones
Presentation transcript:

Magnetometer Testing Board Presented by Jianer Shi 04/25/2011

SECTIONS

Sections 1.Background 2.Board Design 3.Code 2.1Microcontroller 2.2Graphic User Interface (GUI) 4.From here on…

BACKGROUND Section 1/4

Background Toque coil is used to produce a magnetometer dipole which controls the satellites attitude. In order for the toque coil to behave as expected, an accurate measurement of magnetic field is required. Magnetometer is an essential part to determine the earth magnetic field

Background Previous testing done by Ryne Beeson in 2009 shows noise of 0.02 Gauss, which is unacceptable for accurate attitude determination and control. Further testing is suggested and a magnetometer testing board is built for easy testing and lower electronic noise.

BOARD DESIGN Section 2/4

Board Summary PCB Laying Tool: Eagle Microcontroller: PIC18F2221-I Communication Port: Mini – USB B Power: Mini-USB 5V Crystal Oscillator: Mhz UART Communication Baud Rate: Communication: Serial-USB (FT232RL)

Design Criteria Microcontroller – Support I2C – Support UART Board – Small size – Mountable User Interface – Able to pool and save Matlab friendly data for later process Communication – Error tolerance

Microcontroller PIC18F2221-I – Minimum Pin Number to satisfy the requirement – Small size (SOIC Package) – Has 1 UART and 1 I2C – 5V Power Supply from USB – Errata page provided by manufacturer has no significant problem with UART and I2C – Compare to other Microcontrollers, this is the minimum one satisfies the design criteria.

Power and Communication Mini-Usb Port – Small size – Provide both 5V power and communication FT232RL USB-Serial Chip Provide 3.3V output - eliminate 2 voltage regulators and has 500mA cutoff current protection Provide UART to USB link

Crystal Oscillator Mhz – This choice will resulte in 0% error with a wide range of baud rate choice. – We choose baud rate

MICROCONTROLLER CODE Section 3.1/4

Microcontroller Task Overview

I2C Communication between magnetometer and microcontroller Library provided by i2c.h and pic18f2221.h from C18 Compiler

I2C Write

I2C Read

Magnetometer I2C Slave address (0x32) for write (0x33) for read

Magnetometer I2C Functions (0x40) Accelerometer Data of 3 axis (0x45) Magnetometer Data of 3 axis (0x50) Heading Data of 3 axis (0x55) Tilt Data of 3 axis Return value: 6 byte, 2 byte per axis (in hex: xxxx) (0x82) Reset the processor, no return value

Magnetometer Spec 500ms power up delay before extract data 1ms delay for each read

3.3V to 5.5V I2C Logic Level Conversion Logic Level conversion is necessary because components operate on different power Magnetometer3.3V Microcontroller5V

3.3V to 5.5V I2C Logic Level Conversion Source:

UART Library – Usart.h 2 Pins – TXfor sending – RXfor receiving

Serial Protocol In order to send information that the computer side can decode, all information pulling from the magnetometer is sent through a protocol (in hex) (eeeeeeee) (00) (function 1 byte xx)(data 2 byte xxxx)(ffffffff)

Serial Protocol (eeeeeeee) (00) (function 1 byte xx)(data 2 byte xxxx)(ffffffff) (eeeeeeee) starting flag (ffffffff) end of line (00) There are still new function data to be transferred

Serial Protocol (eeeeeeee) (00) (function 1 byte xx)(data 2 byte xxxx)(ffffffff) Functions (41) Accelerometer X (42) Accelerometer Y (43) Accelerometer Z (51) Heading X (52) Heading Y (53) Heading Z (46) Magnetometer X (47) Magnetometer Y (48) Magnetometer Z (56) Tilt X (57) Tilt Y (58) Tilt Z

GRAPHICAL USER INTERFACE (GUI) Section 3.2/4

Complete GUI

GUI Programing Language Python – Pyserial – wxtools Qt4 – Matplotlib Toolchain – Pyqt4

Python State Machine to decode protocol – 24 State to decode serial protocal – Error Tolerance imbedded even though the UART will in theory result in 0% communication error

Qt4

Data Saving Button All raw data will be saved in a tabular format, This can be easily imported into a matlab vector. Button to control start saving data and stop saving data Reason to keep raw data – Decimal data will result Matlab underrun (not enough precision)

Real Time Plot Based on the open source code developed by Eli Bendersky 3 colors to display the 3 axis data on the same graph simultaneously

FROM HERE ON... Section 4/4

From here on The board will handed over to whoever is going to test the magnetometer Since the GUI has been revised many times for easy testing, the tester will find the whole system easy to use and test

THANKS!