element14 Community
element14 Community
    Register Log In
  • Site
  • Search
  • Log In Register
  • Community Hub
    Community Hub
    • What's New on element14
    • Feedback and Support
    • Benefits of Membership
    • Personal Blogs
    • Members Area
    • Achievement Levels
  • Learn
    Learn
    • Ask an Expert
    • eBooks
    • element14 presents
    • Learning Center
    • Tech Spotlight
    • STEM Academy
    • Webinars, Training and Events
    • Learning Groups
  • Technologies
    Technologies
    • 3D Printing
    • FPGA
    • Industrial Automation
    • Internet of Things
    • Power & Energy
    • Sensors
    • Technology Groups
  • Challenges & Projects
    Challenges & Projects
    • Design Challenges
    • element14 presents Projects
    • Project14
    • Arduino Projects
    • Raspberry Pi Projects
    • Project Groups
  • Products
    Products
    • Arduino
    • Avnet & Tria Boards Community
    • Dev Tools
    • Manufacturers
    • Multicomp Pro
    • Product Groups
    • Raspberry Pi
    • RoadTests & Reviews
  • About Us
    About the element14 Community
  • Store
    Store
    • Visit Your Store
    • Choose another store...
      • Europe
      •  Austria (German)
      •  Belgium (Dutch, French)
      •  Bulgaria (Bulgarian)
      •  Czech Republic (Czech)
      •  Denmark (Danish)
      •  Estonia (Estonian)
      •  Finland (Finnish)
      •  France (French)
      •  Germany (German)
      •  Hungary (Hungarian)
      •  Ireland
      •  Israel
      •  Italy (Italian)
      •  Latvia (Latvian)
      •  
      •  Lithuania (Lithuanian)
      •  Netherlands (Dutch)
      •  Norway (Norwegian)
      •  Poland (Polish)
      •  Portugal (Portuguese)
      •  Romania (Romanian)
      •  Russia (Russian)
      •  Slovakia (Slovak)
      •  Slovenia (Slovenian)
      •  Spain (Spanish)
      •  Sweden (Swedish)
      •  Switzerland(German, French)
      •  Turkey (Turkish)
      •  United Kingdom
      • Asia Pacific
      •  Australia
      •  China
      •  Hong Kong
      •  India
      •  Japan
      •  Korea (Korean)
      •  Malaysia
      •  New Zealand
      •  Philippines
      •  Singapore
      •  Taiwan
      •  Thailand (Thai)
      •  Vietnam
      • Americas
      •  Brazil (Portuguese)
      •  Canada
      •  Mexico (Spanish)
      •  United States
      Can't find the country/region you're looking for? Visit our export site or find a local distributor.
  • Translate
  • Profile
  • Settings
Raspberry Pi
  • Products
  • More
Raspberry Pi
Blog Working with analogue inputs for the Raspberry Pi - some 'starter electronic' projects
  • Blog
  • Forum
  • Documents
  • Quiz
  • Events
  • Polls
  • Files
  • Members
  • Mentions
  • Sub-Groups
  • Tags
  • More
  • Cancel
  • New
Join Raspberry Pi to participate - click to join for free!
Featured Articles
Announcing Pi
Technical Specifications
Raspberry Pi FAQs
Win a Pi
GPIO Pinout
Raspberry Pi Wishlist
Comparison Chart
Quiz
  • Share
  • More
  • Cancel
Group Actions
  • Group RSS
  • More
  • Cancel
Engagement
  • Author Author: mistertee
  • Date Created: 25 Mar 2015 9:17 AM Date Created
  • Views 584 views
  • Likes 3 likes
  • Comments 3 comments
Related
Recommended
  • raspberry
  • current
  • pi
  • temperature
  • analogue
  • measurement
  • adc
  • inputs

Working with analogue inputs for the Raspberry Pi - some 'starter electronic' projects

mistertee
mistertee
25 Mar 2015

When working with analogue signals, scaling them to the correct range for the Analogue to Digital Converter (ADC) is always important. Below are some projects that will help anyone starting in this area.

 

Project 11 - Using the Raspberry Pi to measure temperature

Outline

This application note shows the hardware and Python code required to measure temperature using the Raspberry Pi. Any of the Raspberry Pi models can be used including B, B+ and the Raspberry Pi 2.

 

In this project the output from the TMP36 sensor is well within the 0 to 3.3V of the ADC and does not need amplification.

 

 

Project 13 - Using the Raspberry Pi to measure battery voltage

Outline

This application note shows the hardware and Python code required to measure the voltage of a 9V PP3 battery using the Raspberry Pi. Any of the Raspberry Pi models can be used including B, B+ and the Raspberry Pi 2.

 

Because the battery voltage is around 9V, it needs attenuating (using a potential divider) and bufferring before passing to the ADC.

 

 

Project 14 - Using the Raspberry Pi to measure current

Outline

This application note shows the hardware and Python code required to measure DC current using the Raspberry Pi. Any of the Raspberry Pi models can be used including B, B+ and the Raspberry Pi 2.

 

The voltages in this project are quite small and needs amplification before passing to the ADC.

 

Summary

 

The 3 projects here are instructional in learning to use ADCs to measure analogue voltages, be they from sensors or simple voltage and current measurement. They will make great projects for students in schools or colleges. For more 'strater electronic' projects keep an eye on our projects page.

  • Sign in to reply

Top Comments

  • clem57
    clem57 over 10 years ago +2
    One caveat: A custard Pi add on needs to be purchased! Many other choices exist including an Arduino like. My two cents worth, Clem
  • mistertee
    mistertee over 10 years ago in reply to clem57

    These are educational projects for the Raspberry Pi - as there are some 3 million sold - many to students and hobbyists. Looking through the Raspberry Pi forums, there are many questions on GPIO interfacing eg how to drive a relay, how to drive an LCD, how to read battery voltage etc.  Hence these projects.

     

    The GPIO does not have and analogue inputs and have no protection - the pins are connected directly to the pins of the chips - hence the need to use some external AtoD board and protection. The more experienced user probably has no need for these projects.

    • Cancel
    • Vote Up 0 Vote Down
    • Sign in to reply
    • More
    • Cancel
  • clem57
    clem57 over 10 years ago

    One caveat: A custard Pi add on needs to be purchased! Many other choices exist including an Arduino like.

    My two cents worth,

    Clem

    • Cancel
    • Vote Up +2 Vote Down
    • Sign in to reply
    • More
    • Cancel
  • DAB
    DAB over 10 years ago

    Nice tutorials.

     

    DAB

    • Cancel
    • Vote Up 0 Vote Down
    • Sign in to reply
    • More
    • Cancel
element14 Community

element14 is the first online community specifically for engineers. Connect with your peers and get expert answers to your questions.

  • Members
  • Learn
  • Technologies
  • Challenges & Projects
  • Products
  • Store
  • About Us
  • Feedback & Support
  • FAQs
  • Terms of Use
  • Privacy Policy
  • Legal and Copyright Notices
  • Sitemap
  • Cookies

An Avnet Company © 2026 Premier Farnell Limited. All Rights Reserved.

Premier Farnell Ltd, registered in England and Wales (no 00876412), registered office: Farnell House, Forge Lane, Leeds LS12 2NE.

ICP 备案号 10220084.

Follow element14

  • X
  • Facebook
  • linkedin
  • YouTube