It is hard to get numeric data into a RaspberryPi through the GPIO because it does not have an analog to digital converter. This instructable shows how to time the charging and discharging of a capacitor to read a resistive sensor. The demonstration uses a photocell and a force sensitive resistor to control the brightness and blink rate of an LED, and it shows how to use millis() so changes happen instantly instead of having to wait for delay().
This is not a true analog to digital converter.
You will need a RaspberryPi, a breadboard, and a way to run wires from the RaspberryPi to the breadboard. You can use male/female jumper wires but one of the Pi Cobblers listed on this page from Adafruit will make it a lot easier: http://www.adafruit.com/search?q=cobbler
Featured Adafruit Products!
Adafruit Assembled Pi T-Cobbler Breakout for Raspberry Pi: Now that you’ve finally got your hands on a Raspberry Pi® , you’re probably itching to make some fun embedded computer projects with it. What you need is an assembled add on prototyping Pi T-Cobbler from Adafruit, which can break out all those tasty power, GPIO, I2C and SPI pins from the 26 pin header onto a solderless breadboard. (read more)
Each Friday is PiDay here at Adafruit! Be sure to check out our posts, tutorials and new Raspberry Pi related products. Adafruit has the largest and best selection of Raspberry Pi accessories and all the code & tutorials to get you up and running in no time!
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!
Maker Business — Steve Ballmer Serves Up a Fascinating Data Trove
Wearables — Chalk it up
Electronics — Look to ferrites (no, not ferrets, the European polecat) when faced with high frequency
Biohacking — A Run in the Altra IQ Smart Shoes
No comments yet.
Sorry, the comment form is closed at this time.