MECH 400 Underwater Glider Design Project May 20, 2008MECH 400 Tips and Tricks1.

Slides:



Advertisements
Similar presentations
10 Ways to Ruin Your Mini-Max microcontroller (and lose $69)
Advertisements

AnaSonde Assembly. What is the AnaSonde? *Reads temperature, pressure, and humidity data from the atmosphere *After it is sent into the atmosphere, it.
Lab7: Introduction to Arduino
[ 1 ] LVDS links Servizio Elettronico Laboratori Frascati INFN - Laboratori Nazionali di Frascati G. Felici LVDS links.
Computer Tools and kits for Computer troubleshooting
Microprocessor Motor Control Spring Introduction  Stamp projects Robots  Sensors  Motor control  Logic Rocketry  Reading acceleration (“g”
ECE 300 Microprocessor Project Using The Texas Instruments MSP 430F449PZ Controller Group members: William Bohon Steve Bishop Steve Bishop Ann Tan Ann.
Electronics Principles & Applications Sixth Edition Chapter 10 Troubleshooting (student version) ©2003 Glencoe/McGraw-Hill Charles A. Schuler.
Pulse Detector Ramiro Duarte, Clayton Greenbaum Prof. Betty Lise Anderson.
Technician License Course Chapter 9 Lesson Module 20: Electrical Safety.
Technician License Course Chapter 9 Lesson Module 20: Electrical Safety.
ZigBee Calvin Choy David Kim Jason Chong Devin Galutira.
Arduino. Arduino is a tool for making computers that can sense and control more of the physical world than your desktop computer. It's an open-source.
1 Student Hands On Training I (2009) Soldering 101.
CircuitProtection, Tips, and Troubleshooting Spring 2015 ECE 445.
Spectrum Analyzer Ray Mathes, Nirav Patel,
Basic Circuits – Lab 1 Xmedia Spring Basically Power –Provides energy for the sensor and the output Sensor –Changes aspects of the circuit based.
Chapter 1 Quick review over Electronics and Electric Components Prepared By : Elec Solv.
Micromouse Meeting #3 Lecture #2 Power Motors Encoders.
Physics and Electronics. Electronic systems Electronic systems are made up of 3 parts: 1)An INPUT SENSOR – these detect changes in the environment Examples:
Basic Circuits – Lab 1 Xmedia Spring Basically Power –Provides energy for the sensor and the output Sensor –Changes aspects of the circuit based.
Unit 4, Lesson 9 Keeping You and Your Computer Safe AOIT Computer Systems Copyright © 2008–2013 National Academy Foundation. All rights reserved.
Dean Brock, Rebecca Bruce and Susan Reiser, CCSC SE 2009 Using Arduino Material taken from Todbot blog Bionic Arduino Todbot blog Bionic ArduinoTodbot.
Arduino Josh Villbrandt February 4, Digital Circuits Analog versus digital – What’s the difference? – How to represent an analog signal in a computer?
Objectives How Microcontroller works
Segway Controller Notes. = connection on top layer of circuit board = connection on bottom layer of circuit board Ground Plane: Areas enclosed by the.
7.2.3 Student Book © 2005 Propane Education & Research CouncilPage Identifying Procedures for Measuring Resistance Between Two Given Points in.
Welcome to the Real World. What to do ? Input from the mangonel sensors Input expected by the software.
ENGR 6806 – Motor Control Prepared By: Rob Collett September 15, Office: EN2074.
RC CAR CONTROLLER BASED ON INTEL GALILEO SOC PLATFORM Nadav Shiloach Sagi Sabag Supervisor: Idan Shmuel Spring 2014 One Semester Project PROJECT’S ENDING.
Gadget Lab Lecture 4: Powering your circuit… Components… Then it’s Project Time Dr. Cindy Harnett ECE Dept., U of Louisville Spring 2008.
Setting up the Ricoh C305 Press F5 to start the Presentation
Do this now… Go to and complete the pre-lesson survey. Go to my eBoard and set up.
U.B. Presentation October Bernard COURTY L.P.C.C. College de France - Paris.
Introduction to the Arduino
Copyright © 2008–2011 National Academy Foundation. All rights reserved. Unit 4, Lesson 9 Keeping You and Your Computer Safe AOIT Computer Systems.
10/10/ Controlling YOUR ROBOT. 10/10/2015 Basic Stamp  Basic Stamp Input - output pins Interpreter Chip Power supply: 5 Volts voltage Memory: EEPROM.
Chapter 7 Safety. Introduction This chapter covers the following topics: Dangers of electricity Preventive measures Electrostatic discharge Safety practices.
ECE 300 – Spring 2007 Christopher Boyd Anusha Gattupalli Timothy Poore.
3M Touch Systems Mark Roberts Field Application Engineer August 14, 2002 Touchscreen Integration and Troubleshooting.
Electronic. Analog Vs. Digital Analog –Continuous –Can take on any values in a given range –Very susceptible to noise Digital –Discrete –Can only take.
ADT490 TroubleShooting Locating Opens A. 2 Introduction Breakdown in Circuit Integrity -> Trouble Metallic continuity interrupted an “ open ” occurs System.
Grounding.
Data Acquisition Device (DAQ) A DAQ is a cool little device that allows you to interface hardware to a computer. Here is what we will do:  Create a square.
SMV Electric Tutorials
An introduction to PIC’s for KS3 and KS4. Mr Rooks Hetton School.
COMPUTER HARDWARE SERVICING
How to Build a Digital Physical System - Lab Lecture 2.
Unit 7 P2 P2 explain potential risks to consider when installing
Purpose of This Minilab
Microcontrollers, Basics Tips and Tricks with PIC MCUs
Grounding.
Microcontroller basics
Microcontroller Applications
Dr. Cynthia Furse University of Utah
Introduction to Handshaking Communication with SSC-32U
Basic Digital Logic.
Fair Use Building and Research Labs Presents
Principles & Applications
Remote Controlled Smart Socket
Topics Off-chip connections..
How to avoid catching things on fire.
Lab Safety Rules to learn by!.
Computer Repair & Maintenance
Controlling YOUR ROBOT
CSCI1600: Embedded and Real Time Software
Wiring the Light and Relay
CSCI1600: Embedded and Real Time Software
Programming the BASIC Stamp
Automotive Technology Principles, Diagnosis, and Service
Presentation transcript:

MECH 400 Underwater Glider Design Project May 20, 2008MECH 400 Tips and Tricks1

May 20, 2008MECH 400 Tips and Tricks2 Introduction 1.) Major electrical pitfalls from previous years Electrostatic Discharge Wiring Noise Grounding 2.) OOPic basics Common Blunders Variables and OOPic Math Pulse Width Modulation Events, Virtual Circuits and Gates

May 20, 2008MECH 400 Tips and Tricks3 Electrical Tips

May 20, 2008MECH 400 Tips and Tricks4 Shady Wiring Practices & ESD Damaged equipment: $$ comes out of your own pocket

May 20, 2008MECH 400 Tips and Tricks5 Electrostatic Discharge (ESD) Electro-static discharge –Sources: carpets, other types of floor, chairs in the Fluids lab!!! –Use a suitable workspace, keep food/drink far from your work

May 20, 2008MECH 400 Tips and Tricks6 Electrostatic Discharge (ESD) Preventative Measures Wear a $5 ground-strap (with 1MΩ resistor) Use a grounded working surface, or clip on to a power supply chassis Please ask your TA how to set this up, if you are unsure or worried about electrical shock!!!! USE MIDDLE PRONG ONLY

May 20, 2008MECH 400 Tips and Tricks7 Creative Wiring 101 Do it right the first time, do it once –Do it wrong: happy hunting Remember wires have mass, and occupy space!!! Last year –One group’s AUV didn’t make it in the water due to creative wiring. They were trouble-shooting on the side of the pool until they ran out of time

May 20, 2008MECH 400 Tips and Tricks8 Creative Wiring 101

May 20, 2008MECH 400 Tips and Tricks9 Creative Wiring 101 Use solder to make a firm connection Use shrink wrap to avoid shorts Use cable ties to organize or bundle

May 20, 2008MECH 400 Tips and Tricks10 Grounding Proper grounding is essential to reduce noise –Cause for many problems last year Put a capacitor between power and ground to minimize the AC noise Avoid ground loops –This is where two grounding points have different potential –Use a central grounding point – don’t daisy chain your grounds Use caution with power leads and chassis ground

May 20, 2008MECH 400 Tips and Tricks11 Electrical Noise/Disturbances All circuits are subject to environmental and local noise –Sources: MOTORS, 60 Hz Typical mistakes –Circuits work fine until the system is combined –Long wire runs collect noise –Improper grounding

May 20, 2008MECH 400 Tips and Tricks12 Reduce noise by proper shielding –How do you shield? –don't solder the shield at both ends This creates a parallel circuit, commonly known as a ground loop. this will make the problem worse! –The shield will attach to the same connection point as the ground. –Antenna principal: the shield acts as an antenna for noise – you don’t want to be feeding the noise into your sensor.

May 20, 2008MECH 400 Tips and Tricks13 OOPic Basics

May 20, 2008MECH 400 Tips and Tricks14 Common OOPic/Speed Controller Blunders –Hooking the 9V battery up backwards NO reverse polarity protection on the OOPic –Hooking up the speed controller signal pins backwards to the power pins on the OOPic –Don’t use more power than devices are rated for

May 20, 2008MECH 400 Tips and Tricks15 OOPic & Speed Controllers All documentation is online at –Pseudo C, and some tutorials Try figuring it out first, but ask if you don’t understand

May 20, 2008MECH 400 Tips and Tricks16 OOPIc Troubleshooting Know these steps! Problems uploading programs, or no response 1) Serial cable screwed into ports? 2) Check 9V power supply 3) Check voltage regulator for 5V output 4) Check EEPROM is seated properly 5) …and if all else fails

May 20, 2008MECH 400 Tips and Tricks17 OOPic Troubleshooting: if all else fails 5) Last ditch effort for OOPIc-R – Reset EEPROM –Power OFF OOPic –Remove the EEPROM chip CAREFULLY!!!! –Power the board back up w/o the EEPROM chip –Start download of program –IDE will tell you that there is no EEPROM and will ask you to reinstall it Make sure it is installed the proper direction (little dot is pin 1) KEEP POWER ON –Install the EEPROM and click OK

May 20, 2008MECH 400 Tips and Tricks18 Using Variables on the OOPIC Signed versus Unsigned –16 bit variables: oInt is signed oWord is unsigned –8 bit variables: oChar is signed oByte is unsigned When you define an object be careful to look whether it is expecting a signed or unsigned value for the inputs or outputs. Signed numbers use a 2’s Complement Representation i.e. -x= (2N-x)

May 20, 2008MECH 400 Tips and Tricks19 Mathematics on the OOPIC There are not provisions for doing signed math on the OOpic. Addition and Subtraction will still work with 2’s complement numbers. Multiplication and division of signed values can be handled by multiplying or dividing positive values (equivalent to unsigned) and then adjusting the sign of the result. For example: A* ( - B) = - (A * B).

May 20, 2008MECH 400 Tips and Tricks20 Pulse Width Modulation

May 20, 2008MECH 400 Tips and Tricks21 Pololu Speed Controller 2 Channel, 16 V Max input voltage + protection Things to note: –Two IO Lines + PWM channel per motor –Will have to make a cable (simple) The added benefit of reliability from these speed controllers is worth the additional wiring hassle

May 20, 2008MECH 400 Tips and Tricks22 OOPic & Speed Controllers Documentation regarding driver connections are online on the OOPic website

May 20, 2008MECH 400 Tips and Tricks23 Polling vs. “Interrupt” style What is polling? What is an interrupt? e.g. teacher checking for hand to raise –Polling: teacher checks each person to see if their hand is raised –Interrupt driven: class manager informs teacher when someone’s hand is up

May 20, 2008MECH 400 Tips and Tricks24 Real Time Systems and Polling

May 20, 2008MECH 400 Tips and Tricks25 Using Event Detection

May 20, 2008MECH 400 Tips and Tricks26 OEvent Features oEvents can be prioritized –See oEvents on the online manual –By default all events have equal priority BE CAREFUL: real time systems are a pain to debug! Do yourself a favor - make a nice flow chart!

May 20, 2008MECH 400 Tips and Tricks27 Event Programming

May 20, 2008MECH 400 Tips and Tricks28 oEvents and Logic Gates Powerful OOpic Objects that can be used with events

May 20, 2008MECH 400 Tips and Tricks29 Questions? Be prepared for lab demos Don’t debug during demo Persons requiring a basic run down or more information regarding the OOPic operation can stay behind and ask questions