How to Use ThingSpeak with the Raspberry Pi Pico W

In this tutorial, we'll learn how to use ThingSpeak, a popular IoT platform, with the Raspberry Pi Pico W to collect and visualize sensor data. We'll be using a BME280 sensor to measure temperature, pressure, and humidity and send this data to ThingSpeak for real-time monitoring and analysis.
ThingSpeak is an open-source Internet of Things (IoT) platform that allows you to collect, store, analyze, visualize, and act on data from sensors or devices. It's particularly popular for its ease of use and integration with various hardware platforms like Raspberry Pi, Arduino, and ESP8266/ESP32.
In the end, we will have a dashboard that looks as follows, a simple weather station with gauges and graphs that updates in real time:
Requirements
    Wiring the BME280 Sensor
    If you are interested in using the BME280 specifically, there is another ShillehTek tutorial on YouTube here that quickly walks you through how to get setup.

    Before we get into the remainder, consider subscribing or supporting the channel. Also, be sure to checkout our various stores to shop products for Raspberry Pi, Arduino, ESP32, and DIY electronics at ShillehTek!

    Subscribe:

    Youtube

    Support:

    https://www.buymeacoffee.com/mmshilleh

    Hire me at UpWork to build your IoT projects:

    https://www.upwork.com/freelancers/~017060e77e9d8a1157

    Visit ShillehTek Store for Arduino and Raspberry Pi Sensors and Pre-SolderedComponents:

    ShillehTek Website (Exclusive Discounts):

    https://shillehtek.com/collections/all

    ShillehTekAmazon Store:

    ShillehTek Amazon Store - US

    ShillehTek Amazon Store - Canada

    ShillehTek Amazon Store - Japan 

    Step 1-) Setting Up ThingSpeak

    • Create a ThingSpeak Account: If you don't have one, sign up for a ThingSpeak account at thingspeak.com.
    • Create a New Channel:Go to the Channels tab and click "New Channel".Name your channel (e.g., "Pico W Weather Station").Add three fields: Temperature, Pressure, and Humidity.Save the channel and note down the Write API Key. You can get it in the API Keys tab.

    Creating Visualizations -

    Numeric Display for Temperature:

    • Go to your channel view and click on the "Add Widget" button.
    • Select "Numeric Display" from the widget options.
    • Choose the field corresponding to Temperature.
    • Save the widget to add it to your channel dashboard.

    Graph for Pressure:

    • Click on the "Add Visualizations" button.
    • Choose the field corresponding to Pressure.
    • Configure the time span and any other settings you prefer.
    • Save the widget to add it to your channel dashboard.

    Gauge for Humidity:

    • Click on the "Add Widget" button.
    • Select "Gauge" from the widget options.
    • Choose the field corresponding to Humidity.
    • Configure the gauge with appropriate min and max values (e.g., 0 to 100%).
    • Save the widget to add it to your channel dashboard.

    Now that you have all of this, you have the basis of what you need to start populating and visualizing the sensor data from the ShillehTek BME280 in ThingSpeak. If you are using another sensor, you can play around with other widgets and visualizations as needed, the interface is fairly straightforward.

    Create a free account to access full content.

    All access to code and resources on ShillehTek.

    Signup Now

    Already a member? Sign In

    Explore More on Our Blog

    Interfacing the MPU6050 with Raspberry Pi Pico W in C++

    Interfacing the MPU6050 with Raspberry Pi Pico W in C++

    Interface with the MPU6050 using the Raspberry Pi Pico W in C++.

    How to Write your First C++ Program on the Raspberry Pi Pico W

    How to Write your First C++ Program on the Raspberry Pi Pico W

    Write your first C++ Program on the Pico W in a few simple steps.

    How to Use ThingSpeak with the Raspberry Pi Pico W

    How to Use ThingSpeak with the Raspberry Pi Pico W

    Learn how to create a real-time environmental monitoring system with the Raspberry Pi Pico W and ThingSpeak!

    How to Use ADS1115 with the Raspberry Pi (Part 1)

    How to Use ADS1115 with the Raspberry Pi (Part 1)

    Discover how to expand your Raspberry Pi projects by integrating the ADS1115 ADC for precise analog signal reading....

    How to Install Pip Packages in AWS Lambda Using Docker and ECR

    How to Install Pip Packages in AWS Lambda Using Docker and ECR

    Learn how to streamline AWS Lambda deployments by using Docker and Amazon Elastic Container Registry (ECR) to package...

    Create Tabular Product Descriptions on Your Shopify Store

    Create Tabular Product Descriptions on Your Shopify Store

    Enhance your Shopify store's product pages with our comprehensive guide on implementing tabular descriptions. Learn how to add a...

    SSH Into Raspberry Pi with Tailscale VPN

    SSH Into Raspberry Pi with Tailscale VPN

    Effortlessly access and manage your Raspberry Pi from anywhere using Tailscale's secure mesh VPN.

    Send Email with Lua and the ESP32

    Send Email with Lua and the ESP32

    In this tutorial, we delve into sending emails with the ESP32-S3 using Lua, focusing on the Xedge IDE's built-in SMTP...

    How to Code with Lua on ESP32 with XEdge32

    How to Code with Lua on ESP32 with XEdge32

    Learn how to set up Xedge32 and start coding on the ESP32-S3 with Lua programming!

    Stream Audio From Raspberry Pi to Local Computer

    Stream Audio From Raspberry Pi to Local Computer

    Discover the simplicity of streaming live audio directly from a USB microphone connected to your Raspberry Pi to...

    Back to blog

    Leave a comment

    Please note, comments need to be approved before they are published.