Acquiring Data from Accelerometers

Slides:



Advertisements
Similar presentations
Electrical team Arduino tutorial I BY: JOSHUA arduini
Advertisements

Lab7: Introduction to Arduino
Anurag Dwivedi & Rudra Pratap Suman.  Open Source electronic prototyping platform based on flexible easy to use hardware and software.
What is Arduino?  Arduino is a ATMEL 168 micro-controller kit designed specially for small projects  User friendly IDE(Integrated Development Environment)
How to use Arduino By: Andrew Hoffmaster.
Introduction to electronics lab ENGRI 1810 Using: Solderless prototype board (white board) Digital multimeter (DMM) Power Supply Signal Generator Oscilloscope.
Panasonic EVE-KC2F2024B 24 pulses per revolution 6mm diameter flattened output shaft output type: quadrature (incremental) minimum life: 15,000 rotations.
Khaled A. Al-Utaibi  Digital Vs Analog Signals  Converting an Analog Signal to a Digital One  Reading Analog Sensors with the.
Waterproofing a thermistor ENGR 121 living with the lab © 2013 David Hall.
Intro to Arduino with LilyPad Make a MakerSpace, Artisan’s Asylum Linz Craig, Chris Taylor, Mike Hord & Joel Bartlett.
DIGIKEY DKSB1002A Evaluation Board 3-axis accelerometer Arduino Uno microcontroller board Acquiring Data from an ADXL335 Accelerometer living with the.
IR Object Detection living with the lab IR light from LED IR light reflected off object IR LED IR receiver Infrared (IR) light leaving an LED reflects.
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 Arduino Board: Arduino UNO Arduino Programing Environment: Arduino 0022
Analog and Digital Measurements living with the lab 14 digital input / output pins 6 analog input pins © 2011 LWTL faculty team.
University of Pennsylvania Department of Electrical and Systems Engineering ABSTRACT: Quantifying and measuring certain aspects of a golf swing is a helpful.
Introduction to Arduino Prepared by R. Lamond.  “Arduino is an open-source electronics prototyping platform based on flexible, easy- to-use hardware.
Parallax 4x20 LCD (part number 27979) with Arduino Duemilanove
Assembly of Conductivity Flow Loop EAS 199B living with the lab (in preparation for calibrating conductivity sensor)
Microprocessors Tutorial 1: Arduino Basics
Pulse Width Modulation (PWM). 100% Pulse Width Modulation (PWM) 0% On the chipKIT there are 490 periods per second. Use analogWrite(pin, value) to control.
Suleyman Demirel University CSS340 Microprocessor Systems – Lecture 2 ATMEGA328P ARCHITECTURE ANALOG INPUTS.
Servo Demonstration In MPIDE, select File > Examples > Servo > Sweep.
SAMI MAKERSPACE MAKE: AN ELECTRONICS WORKSHOP. ARDUINO BASICS Credit to: Sparkfun and Linz Craig, Nick Poole, Prashanta Aryal, Theo Simpson, Tai Johnson,
Line following tips photoresistors positioned near floor photoresistor circuits © 2011 LWTL faculty team living with the lab.
Photoresistor resistance changes dramatically with light level living with the lab Using Photoresistors with an Arduino © 2011 LWTL faculty team.
Microcontroller basics Embedded systems for mortals.
ME 120: User-defined functions: average analog input reading Arduino Programming – Part 5: User-defined functions ME 120 Mechanical and Materials Engineering.
Arduino “Getting Started” Instructor : Dr Matthew Miss Khin Yi Kyaw
Electronic instrumentation Digitization of Analog Signal in TD
Pulse-Width Modulation: Simulating variable DC output
Infrared Proximity Sensors & Liquid Crystal Display Instructor Dr Matthew Khin Yi Kyaw.
Pulse Width Modulation Instructor Dr Matthew Khi Yi Kyaw.
ME 120: Photoresistors and Arduino Programming Arduino Programming Case Study: Photoresistor Measurements ME 120 Mechanical and Materials Engineering Portland.
Arduino Programming. THE ARDUINO IS A MICROCONTROLLER – A LOW COST, LOW PERFORMANCE COMPUTER.
1 Op-Amps. 2 Purpose ComparatorAmplifier An Op-Amp can be used to either compare two voltages and see which one is greater, or amplify a given voltage.
Robotics Grant Agreement No LLP UK-LEONARDO-LMP Project acronym: CLEM Project title: Cloud services for E-Learning in Mechatronics Technology.
Instrumented Walker Skyler Bullington Tommy Frankenberger Larson Stacy
Microcontroller basics
Microcontroller basics
Arduino & its hardware interfacing
Microcontroller basics
UCD ElecSoc Robotics Club 2017/2018
Line Following Tips photoresistor circuits
Arduino Part 1 Topics: Microcontrollers Programming Basics
INC 161 , CPE 100 Computer Programming
SArduino Training 2018 cho THPT Saigon Institute of Technology
Acquiring Data from an ADXL335 Accelerometer
Analog Input through POT
Roller Coaster Design Project
What is an Arduino ? Open Source electronic prototyping platform based on flexible easy to use hardware and software.
What is Arduino? By James Tedder.
FeMaidens Programming
a few of my favorite sensors
Arduino Week 2 Lab ECE 1020 Prof. Ahmadi.
Acquiring Data from an ADXL335 Accelerometer
Using Photoresistors with an Arduino
Line Following Tips photoresistor circuit
Topics: Programming Constructs: loops & conditionals Digital Input
Interfacing a Rotary Encoder with an Arduino
Arduino : Introduction & Programming
Intro to the Arduino by Someet Singh
Sensors and actuators Sensors Resistive sensors
All About Serial.
Arduino 7 Segment Display Lab
Introduction to Arduino
Arduino程式範例.
Interrupts.
Pulse-Width Modulation: Simulating variable DC output
Presentation transcript:

Acquiring Data from Accelerometers living with the lab Acquiring Data from Accelerometers DIGIKEY DKSB1002A 3-axis accelerometer Parallax USB Oscilloscope measure voltage vs. time Arduino Uno microcontroller board data sheet for accelerometer is available at . . . http://www.analog.com/static/imported-files/data_sheets/ADXL335.pdf

Implementing a 3-axis Accelerometer: Hardware living with the lab Implementing a 3-axis Accelerometer: Hardware DKSB1002A is a prototyping board $20 from www.digikey.com Screw holes for mounting board onto “object of interest” Board is ~ 20mm square ADXL3355 3-axis accelerometer chip 3-axis ±3g COM - ground VSS - power (we will provide 5V) X - acceleration in x-direction Y - acceleration in y-direction Z - acceleration in z-direction z x y

Implementing a 3-axis Accelerometer: Wiring to Arduino living with the lab Implementing a 3-axis Accelerometer: Wiring to Arduino COM - ground VSS - power (we will provide 5V) X - acceleration in x-direction Y - acceleration in y-direction Z - acceleration in z-direction

Implementing a 3-axis Accelerometer: Programming living with the lab Implementing a 3-axis Accelerometer: Programming void setup() { Serial.begin(9600); } void loop() int xaccel = analogRead(0); int yaccel = analogRead(1); int zaccel = analogRead(2); Serial.print(xaccel); Serial.print(" "); Serial.print(yaccel); Serial.println(zaccel);

Implementing a 3-axis Accelerometer: Analysis of Output living with the lab Implementing a 3-axis Accelerometer: Analysis of Output Output from accelerometer will vary from 0 to 5 V Output when +x points upward: __________ Output when +x points downward: __________ Difference: _______ Change in acceleration = 2g Change in accelerometer per g: ___________ Output when accelerometer is flat: _________ x y z

Implementing a 3-axis Accelerometer: Angle Measurement living with the lab Implementing a 3-axis Accelerometer: Angle Measurement 1g (perceived vertical acceleration) ax qx +x θx = asin(ax/g) z x y Expected output of Arduino when accelerometer is flat: _________ Expected output of Arduino when accelerometer is at 45 degrees? ________ If the Arduino output is 350, then what is the angle? ___________

Measuring Output of Accelerometer with Parallax Scope living with the lab Measuring Output of Accelerometer with Parallax Scope 10kW 5V switch trigger input Attach channel 1 leads between x-acceleration signal and ground Oscilloscope plots voltage vs. time Export data to a file to acquire voltage (or acceleration) vs. time data Example of how a switch circuit is used to trigger data acquisition