Preview

Raspberry Pi

Good Essays
Open Document
Open Document
1277 Words
Grammar
Grammar
Plagiarism
Plagiarism
Writing
Writing
Score
Score
Raspberry Pi
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

© Adafruit Industries

http://learn.adafruit.com/reading-a-analog-in-and-controlling-audiovolume-with-the-raspberry-pi

Page 2 of 12

Overview

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

© Adafruit Industries

http://learn.adafruit.com/reading-a-analog-in-and-controlling-audiovolume-with-the-raspberry-pi

Page 3 of 12

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

You May Also Find These Documents Helpful

  • Satisfactory Essays

    ECT122 W4 ILab 2

    • 475 Words
    • 3 Pages

    8. Prototype the circuit below on the breadboard. Connect the circuit’s input to the variable +12 V supply. Turn on the DC power supply and use the handheld DMM to set it to +10V. Using the handheld DMM, measure the values below.…

    • 475 Words
    • 3 Pages
    Satisfactory Essays
  • Powerful Essays

    IS3110 U5L1

    • 912 Words
    • 4 Pages

    Please refer to Pages 33-38 of the IS3110 Student Lab Manual when working on this lab.…

    • 912 Words
    • 4 Pages
    Powerful Essays
  • Satisfactory Essays

    This is an input device that changes information from one form to another .sound information exists as patterns of air pressure .the microphone changes this information into patterns of electric…

    • 1042 Words
    • 5 Pages
    Satisfactory Essays
  • Satisfactory Essays

    IS 300 Study Guide

    • 284 Words
    • 2 Pages

    Difference between analog and digital signals – what does the computer read and how does it read it…

    • 284 Words
    • 2 Pages
    Satisfactory Essays
  • Powerful Essays

    Create a system diagram illustrating the equipment and connections required for this project (use Microsoft Visio or a similar software package).…

    • 1220 Words
    • 5 Pages
    Powerful Essays
  • Good Essays

    P4 recommend a computer system for Tooting Films. Awais Khan Processors • • I have chosen to recommend Intel Core i7 4770K 3.50GHz processor for the tooting films gaming set up. This would offer superior performance over the previous generation processors. It would also boost results in performance, improvements in multi-tasking, encoding, gaming and multithreaded applications.…

    • 2197 Words
    • 14 Pages
    Good Essays
  • Better Essays

    In order for this conversion to take place, an analog-to-digital converter (ADC) is necessary. This component is essential because it is responsible for receiving the analog signal as input and sending a digital signal as output. The ADC receives an analog signal such as sound, voice, or voltage and transforms that signal into a binary output. This output is the digital signal that has a state of either on, which is represented by 1 or an off state represented by 0. ADC is used in more occasions than people think. For example, whenever music is transmitted through the radio, the signal is sent in as analog and then through ADC changed into digital. Another example is the use of phones. Voice is analog, so a conversion needs to take place at the switch to convert it into digital. Analog is an older technology that is still widely used, so it is important to know how to convert it.…

    • 1056 Words
    • 5 Pages
    Better Essays
  • Satisfactory Essays

    The Age Discrimination in Employment Act of 1967 (ADEA) was passed by Congress to make it unlawful for an employer to base employment decisions or discriminate based on a worker’s age. It was designed to address to eliminate ageism based on stereotypes about the weakened skills of older individuals by forcing employers to judge older workers on their merits, not age-based myths, prejudices or stereotypes. The ADEA covers workers age 40 and older. The ADEA was amended by Older Workers’ Benefit Protection Act (OWBPA) in 1990 and 1998 to give workers increased protection. Due to the aging workforce, age discrimination would become more prevalent. Workplace age stereotypes are beliefs and expectations about workers based on their age (Hamilton…

    • 230 Words
    • 1 Page
    Satisfactory Essays
  • Satisfactory Essays

    Computer Class

    • 916 Words
    • 4 Pages

    2. The computer has something that enables it to figure out what to do with the input you give it: software.…

    • 916 Words
    • 4 Pages
    Satisfactory Essays
  • Powerful Essays

    Sample-Formal-Lab Report

    • 1523 Words
    • 7 Pages

    and resistors in parallel. The results showed that the voltage is the same in parallel. The items that were in…

    • 1523 Words
    • 7 Pages
    Powerful Essays
  • Satisfactory Essays

    Metal Detector

    • 272 Words
    • 2 Pages

    All you need for this project is, an: AM Radio , some tape , and a small calculator.…

    • 272 Words
    • 2 Pages
    Satisfactory Essays
  • Satisfactory Essays

    Beers law

    • 480 Words
    • 2 Pages

    4.Set up the data collection system. Connect the LabPro or CBL 2 interface to the computer or handheld with the proper cable.…

    • 480 Words
    • 2 Pages
    Satisfactory Essays
  • Good Essays

    Arabian Nights

    • 710 Words
    • 3 Pages

    Input device- is any hardware device that sends data to the computer, without any input devices, a computer would only be a display device and not allow users to interact with it, much like a TV. Mouse, keyboard and Joystick is an example of an input device. Below is a list of all the different computer input devices that can be used on a computer.…

    • 710 Words
    • 3 Pages
    Good Essays
  • Good Essays

    4. Connect the probe to the computer interface. Prepare the computer for data collection by…

    • 740 Words
    • 3 Pages
    Good Essays
  • Good Essays

    linux chap 1

    • 1088 Words
    • 5 Pages

    of them worked their way up the ladder in the commercial world, the UNIX operating…

    • 1088 Words
    • 5 Pages
    Good Essays

Related Topics