Reference Links
Topics
Programming Prior Class Pages
PM Wiki |
Main /
AnalogSensorsPotentiometers 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 Link to Downloadable Code:
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 ITP Lab - Potentiometers and Pressure Sensors Servo motor control with an analog sensor. Tutorial from ITP
MORE SENSORS Accelerometers Accelerometers vs Gyroscopes... whats the difference? http://www.livescience.com/40103-accelerometer-vs-gyroscope.html PIR Sensors Advanced Topics:
|