1 / 22

Knowledge Seminar 3 Sensor Input

Knowledge Seminar 3 Sensor Input. www.ubcomechatronics.com. House Keeping. Invite your friends to UBCO Mechatronics Facebook Group to get the latest updates, or ask questions to club members. Free Advanced Tutorials. www.udacity.com Filters (maybe not really applicable)

lucian
Download Presentation

Knowledge Seminar 3 Sensor Input

An Image/Link below is provided (as is) to download presentation Download Policy: Content on the Website is provided to you AS IS for your information and personal use and may not be sold / licensed / shared on other websites without getting consent from its author. Content is provided to you AS IS for your information and personal use only. Download presentation by click this link. While downloading, if for some reason you are not able to download a presentation, the publisher may have deleted the file from their server. During download, if you can't get a presentation, the file might be deleted by the publisher.

E N D

Presentation Transcript


  1. Knowledge Seminar 3Sensor Input www.ubcomechatronics.com

  2. House Keeping • Invite your friends to UBCO Mechatronics Facebook Group to get the latest updates, or ask questions to club members

  3. Free Advanced Tutorials • www.udacity.com • Filters (maybe not really applicable) • Motion Planning (very useful) • PID control

  4. Protecting your Electronic Devices Ground Yourself! • Winter time = dry air = static build-up • any bare metal on something plugged in will work Sources: http://www.how-to-draw-cartoons-online.com/cartoon-fire.html http://www.istockphoto.com/stock-illustration-10458945-cartoon-pointing-finger.php

  5. Sensor Input • Sensor Input measured by Voltage

  6. Sensor Output Range vs. Measurement Range 5 V 0 V AnalogRead() Arduino

  7. Sensor Output Range vs. Measurement Range 5 V 1024 divisions = 0.0049V/division 0 V AnalogRead() Arduino

  8. Sensor Output Range vs. Measurement Range 5 V 1024 divisions = 0.0049V/division 4 V Will only have 2V / 0.0049 V = 410 divisions on the sensor output 2 V 0 V Sensor Output Range (Analog) AnalogRead() Arduino

  9. Sensor Output Range vs. Measurement Range 6 V 5 V Will have full 1024 divisions -anything above 5V sensor output will show 1023 -anything below 0V will show 0 =>You are not using some of your sensor range 1024 divisions = 0.0049V/division 0 V -1 V Sensor Output Range (Analog) AnalogRead() Arduino

  10. Sensor Output Range vs. Measurement Range 5 V 5 V Prefered case 1024 divisions = 0.0049V/division 0 V 0 V Sensor Output Range (Analog) AnalogRead() Arduino

  11. Sensor Calibration • Offsets and Multiplication • analogRead gives output on range [0,1023] • use map(value, fromLow, fromHigh, toLow, toHigh) map(512, 0,1023, 0, 100) = 50 //Conversion to percent map(500, 200,900, 0, 100)

  12. Sensor Noise Integration vs. Differentiation

  13. Sensor Noise Integration vs. Differentiation Integration

  14. Sensor Noise Integration vs. Differentiation Integration

  15. Filtering Sensor Noise

  16. Quick and Dirty Solution: Moving Average • n- point moving average first 5 data points symmetrically Source: http://www.dspguide.com/ch15/2.htm

  17. Sensor Noise - Filter Methods • Low-pass filter • Kalman filter for 1-D • advanced method that uses a system model

  18. Potentiometer • Variable Length Resistor Source: http://fddrsn.net/pcomp/examples/potentiometers.html

  19. Potentiometer • Variable Length Resistor Source: http://fddrsn.net/pcomp/examples/potentiometers.html

  20. Button Input into Arduino

  21. Switch Debouncing Source: http://www.labbookpages.co.uk/electronics/debounce.html https://dlnmh9ip6v2uc.cloudfront.net/images/products/9/7/00097-03-L.jpg

  22. Projects • Get Arduino to display button state • Get Arduino to display state of potentiometer

More Related