Real-time Graphing with the Raspberry Pi

Time for some Raspberry Pi + Plotly Streaming fun!
Recently we completed an Instructable for visualizing temperature and humidity data using an Arduino and, a free online collaborative graphing tool. Now it's time to extend that fun to all Raspberry Pi users!

Real-time Graphing with the Raspberry Pi

The Raspberry Pi is a fantastic platform for software experimentation, allowing kids, amateurs and professionals alike to hack away without fear of breaking an expensive computer system. I'm a huge fan, and have done a few projects with my Raspberry Pi, from setting up a web server in our workshop, to using it as a desktop PC when my laptop was in the shop.

Raspberry Pi fun isn't limited only to software activities though! In addition to its other great features, the Raspberry Pi has some GPIO (General Purpose IN/OUT) pins, which you can use to read data from!

The purpose of this Instructable is to take some temperature data read from a TMP36 sensor, and visualize it using real-time streaming using the Plotly Python API!

Here is an example of our final product:

Step 1: What you'll need

  • Raspberry Pi
  • MCP3008 DIP-package ADC converter chip
  • Analog Temperature Sensor TMP-36
  • Breadboard
  • Some Hookup wire
  • Some Software Packages (Details in later steps)

For the solderless option :

For the more permanent shield option:

You'll need a Account. Head over to:

  • to sign up.
  • Once you have signed up, head over to the SETTINGS page and write down your API key and Stream Token. You'll need these later!

Step 2: SSH into your Pi

Hopefully you've got your Raspberry Pi hooked up to your local network. If you do, SSH right into it and you're ready for the next step!

Real-time Graphing with the Raspberry Pi

If not, check out this link, it's a great primer on getting started with SSH on your Pi:

Once you're logged in, head over to the next stop and run the command listed there.


For more detail: Real-time Graphing with the Raspberry Pi

About The Author

Ibrar Ayyub

I am an experienced technical writer holding a Master's degree in computer science from BZU Multan, Pakistan University. With a background spanning various industries, particularly in home automation and engineering, I have honed my skills in crafting clear and concise content. Proficient in leveraging infographics and diagrams, I strive to simplify complex concepts for readers. My strength lies in thorough research and presenting information in a structured and logical format.

Follow Us:
Scroll to Top