Analog Inputs for Raspberry Pi Using the MCP3008
Created by Mikey Sklar

Guide Contents Guide Contents Overview Connecting the Cobbler to a MCP3008 To follow this tutorial you will need Why we need an ADC Wiring Diagram Necessary Packages Python Script Run It 2 3 4 4 4 5 7 9 12

Teaching the Raspberry Pi how to read analog inputs is easier than you think! The Pi does not include a hardware analog to digital converter, but a external ADC (such as the MCP3008 (http://adafru.it/856)) can be used along with some bit banged SPI code in python to read external analog devies. Here is a short list of some analog inputs that could be used with this setup. potentiometer (http://adafru.it/356) photocell (http://adafru.it/161) force sensitive resistor ( FSR ) (http://adafru.it/166) temperature sensor (http://adafru.it/165) 2-axis joystick (http://adafru.it/512) This guide uses a potentiometer to control the volume of a mp3 file being played, but the code can be used as the basis for any kind of analog-input project

Connecting the Cobbler to a MCP3008 To follow this tutorial you will need MCP3008 DIP-package ADC converter chip (http://adafru.it/856) 10K trimer (http://adafru.it/356) or panel mount potentiometer (http://adafru.it/562) Adafruit Pi Cobbler (http://adafru.it/914) - follow the tutorial to assemble it Half (http://adafru.it/64) or Full-size breadboard (http://adafru.it/239) Breadboarding wires (http://adafru.it/aHz) And of course a working Raspberry Pi with Internet connection

Why we need an ADC
The Raspberry Pi computer does not have a way to read analog inputs. It's a digital-only computer. Compare this to the Arduino, AVR or PIC microcontrollers that often have...

...Running head: THE CRUEL CONCLUSION OF REALITY IN ‘ARABY’ AND ‘THE RASPBERRY BUSH’
The Cruel Conclusion of Reality in ‘Araby’ and ‘The Raspberry Bush’
October 8th 2013
ENGL 2P56
The Cruel Conclusion of Reality in ‘Araby’ and ‘The Raspberry Bush’
Every now and then, people get caught up in the hype of things; there is not a person on the planet immune to it. A person’s expectations of certain scenarios...

...π (sometimes written pi) is a mathematical constant whose value is the ratio of any circle's circumference to its diameter in the Euclidean plane; this is the same value as the ratio of a circle's area to the square of its radius. It is approximately equal to 3.14159265 in the usual decimal notation. Many formulae from mathematics, science, and engineering involve π, which makes it one of the most important mathematical constants.
π is an irrational number, which means that...

...The History of Pi
The History of Pi
Most individuals who have a general mathematical education that touches on the basics of geometry commonly know pi. The definition of pi is the ratio of the circumference to the diameter of the circle (Smoller, 2001). The majority of the population, however, does not realize the history associated with the symbol, which not only spans throughout the centuries but throughout the millenniums. The...

...What is π?
Webster's Collegiate Dictionary defines π as "1: the 16th letter of the Greek alphabet... 2 a: the symbol pi denoting the ratio of the circumference of a circle to its diameter b: the ratio itself: a transcendental number having a value to eight decimal places of 3.14159265"
A number can be placed into several categories based on its properties. Is it prime or composite? Is it imaginary or real? Is it transcendental or algebraic? These questions help define a...

...very interesting for maths.
Father : (Interrupting and getting up from the chair)
What did you learn today, Ahmed?
Ahmed : How to find the area of a circle by using a formula pi x r2
Mohamed : What is pi?
Ahmed : It is a value 22/7.
Father : Do you like to know about the person who discovered pi?
Ahmed & Mohamed : Oh! Yes father.
Father : (sitting on a chair, Mohamed and Ahmed sitting on the floor)
The person who...

...History of Pi
There are many people who have discovered and proved what pi is. As time goes on people discover more and more of the seemingly random numbers. Four of the people who proved pi are the Liu Hui, Archimedes of Syracuse, James Gregory, and the Bible.
The first proof I will be talking about is Liu Hui’s. Liu Hui was a Chinese mathematician whose method for proving pi was to find the area of a polygon inscribed in a...

...Pi has always been an interesting concept to me. A number that is infinitely being calculated seems almost unbelievable. This number has perplexed many for years and years, yet it is such an essential part of many peoples lives. It has become such a popular phenomenon that there is even a day named after it, March 14th (3/14) of every year! It is used to find the area or perimeter of circles, and used in our every day lives. Pi is used in things such as engineering...

...Pi is an ancient and wonderful Number to the World of Mathematics invented with the Geometrical structure Circle.
CIRCLE
It is felt that the creation of the Circle is not created by the man himself but came through the inspiration of Nature itself. The shape of Sun, Full Moon, Eyes are some examples for it.
Some basic things :
There are 3 major parts to remember.
Radius : The straight line drawn to the Circumference of the...