Recent Changes - Search:

Reference Links

Topics

Programming

Prior Class Pages

PM Wiki

edit SideBar

AnalogSensors

Potentiometers

An analog sensor is the same thing as a variable resistor (a resistor that changes its resistance based on some external input). Below is an internal diagram of the most basic analog sensor, the potentiometer.

Lab Example - Setting up a and Reading a Potentiometer

Code for Example - The following sketches do the following things:

- pot_led_sketch - fade an LED using a potentiometer
- pot_voltage_sketch - read an analog voltage with a potentiometer

Link to Downloadable Code:
https://drive.google.com/open?id=0B1qpUXvovN0EWmNjZTdBeHhVbTA

 

Other Analog Sensors

While some analog sensors, like potentiometers, don't require any additional resistors to function properly, others do. Some require a pull-down resistor (like we saw with the button circuits we made) and others require a pull-up resistor. This depends on what voltage output range you hope to get out of the analog sensor, and also on the sensor's internal circuitry.

A pull-down resistor setup might look like the drawing below. That circuit uses a force sensing resistor.
 

///Some example tutorials

Switches, Buttons and Contact Closures
https://itp.nyu.edu/physcomp/Labs/Switches

ITP Lab - Potentiometers and Pressure Sensors
https://itp.nyu.edu/physcomp/Labs/AnalogIn

Servo motor control with an analog sensor. Tutorial from ITP
https://itp.nyu.edu/physcomp/Labs/Servo

 

 

MORE SENSORS
 

Accelerometers
https://learn.adafruit.com/adafruit-analog-accelerometer-breakouts/overview

Accelerometers vs Gyroscopes... whats the difference? http://www.livescience.com/40103-accelerometer-vs-gyroscope.html

PIR Sensors
Parallax PIR Sensor
http://www.parallax.com/product/555-28027
Pannasonic PIR Datatsheet
http://pewa.panasonic.com/assets/pcsd/catalog/napion-catalog.pdf
Panasonic Design and Use Guidelines
http://media.digikey.com/pdf/Data%20Sheets/Panasonic%20Electric%20Works%20PDFs/AMN%20Design%20Manual.pdf

Advanced Topics:
4-20mA current loop sensors setups
http://www.digikey.com/Web%20Export/Supplier%20Content/MurataPower_811/PDF/Murata_DPM-AN20.pdf?redirected=1

 

 

Edit - History - Print - Recent Changes - Search
Page last modified on February 22, 2016, at 11:30 AM