December 27, 2013 AT 9:00 am

Analog Sensors without Analog Inputs on the Raspberry Pi #piday #raspberrypi @Raspberry_Pi

Pasted Image 12 27 13 8 45 AM 2

Here are handy analog sensor tips from Dr Simon Monk’s Raspberry Pi Cookbook. You can learn more about these concepts in “Basic Resistor Sensor Reading on Raspberry Pi” Learning System tutorials and other resources at Adafruit by Dr. Monk, Ladyada, and others!

The Raspberry Pi does not have any analog inputs, but that does not mean that you can’t use some types of analog sensors. Using a couple of resistors and a capacitor, you can use a “step response” method to measure resistance. Which is just great if you are using a pot, photoresistor or thermistor.

…Open an editor (nano or IDLE) and paste in the following code. As with all the program examples in this book, you can also download the program from the Code section of the Raspberry Pi Cookbook website, where it is called pot_step.py….

Read More.


Featured Adafruit Tutorial!

Adafruit Learning System


“D is for Diode” – Circuit Playground Episode 4 is out now! CLICK HERE TO WATCH!

Have an amazing project to share? Join the SHOW-AND-TELL every Wednesday night at 7:30pm ET on Google+ Hangouts.

Join us every Wednesday night at 8pm ET for Ask an Engineer!

Learn resistor values with Mho’s Resistance or get the best electronics calculator for engineers “Circuit Playground”Adafruit’s Apps!



No Comments

No comments yet.

Sorry, the comment form is closed at this time.