IOT ProjectsRaspberry Pi Pico

Raspberry Pi Pico W with Ubidots and MAX6675 K type thermocouple

Raspberry Pi Pico W with Ubidots:

Raspberry Pi Pico W with Ubidots and MAX6675 K type thermocouple- Things have got a lot easier after the addition of WiFi connectivity in Raspberry Pi Pico; and now it is called Raspberry Pi Pico W. Today, for the first time you will see how easily Raspberry Pi Pico W can be connected with Ubidots IoT Platform for monitoring any type of sensor. For demonstration purposes, I am going to use the MAX6675 module and the K-type thermocouple

The way we have been programming the Nodemcu ESP8266 WiFi module and the ESP32 WiFi + Bluetooth module using the Arduino IDE. Now the same exact way we can also program the Raspberry Pi Pico W using the Arduino IDE. I have already explained this in my previous articles in which I used Raspberry Pi Pico W with Adafruit Io and with ThingSpeak IoT Platform; I used Arduino IDE for programming the Raspberry Pi Pico W.  So, I highly recommend you guys should read my previous articles because I have explained things in quite a detail.

Anyway, before I am going to explain how to setup Ubidots Dashboard and how to interface Max6675 with Raspberry Pi Pico W; first let’s watch the Raspberry Pi Pico W and Ubidots IoT Platform based Temperature monitoring system in action.

allpcb circuit




I have connected the Max6675 module and the K-type thermocouple as per the circuit diagram which I will explain in a minute.

Raspberry Pi Pico W with Ubidots

I have powered up the Raspberry Pi Pico W. Right now the Laptop and the Raspberry Pi Pico W both are connected with the same WiFi. But if you want you can use different WiFi networks. Anyway, its working is very simple. Raspberry Pi Pico W reads the temperature and sends the temperature reading to the Ubidots IoT Platform where the temperature value is displayed on the Thermometer Widget.

I am sure by now, you might have got an idea of how does this system work. So, without any further delay let’s get started!!!

Amazon Links:

Raspberry Pi Pico W

Max6675 and K type thermocouple

Raspberry Pi Pico W Ultimate Kit from Sunfounder

Other Tools and Components:

Top Arduino Sensors:

Super Starter kit for Beginners

Digital Oscilloscopes

Variable Supply

Digital Multimeter

Soldering iron kits

PCB small portable drill machines

*Please Note: These are affiliate links. I may make a commission if you buy the components through these links. I would appreciate your support in this way!

MAX6675 K-Type Thermocouple:

This is the MAX6675 thermocouple temperature sensor amplifier breakout module. The temperature resolution capability of the MAX6675 Amplifier module is 0.25 degrees. The working voltage is DC 3.0 to 5V, the operating current is 50mA, the temperature range is 0 to 1024 Celsius with a temperature resolution of 0.25 Celsius, temperature measurement accuracy is +/-1.5 Celsius, and the output mode is SPI digital signal.

Raspberry Pi Pico W with Ubidots

Specification of MAX6675 K-Type Thermocouple Temperature Sensor:

  • Working Voltage: DC 3.0 to 5V.
  • Operating Current: 50mA.
  • Temperature Range: 0°C – 1024°C, the converter temperature resolution is 0.25°C.
  • Temperature Measurement Accuracy: +/-1.5C.
  • Temperature Resolution: 0.25C.
  • Output mode: SPI digital signal.

The two wires of the thermocouple come with the Red and Blue sleeves. Red is connected with the + terminal of the MAX6675 module while the Blue wire is connected with the – terminal of the MAX6675 amplifier module. Now, let’s go ahead and take a look at the circuit diagram.



Max6675 with Raspberry Pi Pico W:

Raspberry Pi Pico W with Ubidots

Connect the VCC and GND pins of the Max6675 module with the Raspberry Pi Pico W 3.3V and GND pins. And connect the SCK, CS, and SO pins of the Max6675 module with the Raspberry Pi Pico W GPIO pins 13, 14, and 15 respectively. Now, let’s go ahead and start with Ubidots.

Ubidots with Raspberry Pi Pico W:

Login into your Ubidots account and open the Raspberry Pi Pico W code in Arduino ID, Code is given below.Anyway, while you are logged into Ubidots, open API Credentials.

Raspberry Pi Pico W with Ubidots

Copy the Token.

Raspberry Pi Pico W with Ubidots

And paste this link next to the TOKEN in double quotes.

Raspberry Pi Pico W with Ubidots

We need to do this first, as we want the Raspberry Pi Pico W and the Temperature variable to appear in Ubidots. For this, we will need to upload the program, make sure your WiFi router or Hotspot is ON, because once the program is uploaded; Raspberry Pi Pico W will automatically connect with the WiFi.



Project Code:

 




I uploaded the program and now let’s go back to Ubidots. You can see Raspberry Pi Pico W has been added as a device in Ubidots.

Raspberry Pi Pico W with Ubidots

Now, If you click on this device you will see the temperature variable name and the temperature reading which is 30C. Now, you are free to use this temperature variable throughout Ubidots.

Raspberry Pi Pico W with Ubidots



Anyway, go to the Data menu and click on the Dashboards.

Raspberry Pi Pico W with Ubidots

Click on Add new Widget.

Raspberry Pi Pico W with Ubidots

Select Thermometer or any other widget as per your needs.

Raspberry Pi Pico W with Ubidots

Click on ADD VARIABLES.

Raspberry Pi Pico W with Ubidots



Click on raspberry pi pico w which has been added as a device.

Raspberry Pi Pico W with Ubidots

And select the temperature variable and click on the SELECT button.

Raspberry Pi Pico W with Ubidots

Then click on the save button.

Raspberry Pi Pico W with Ubidots

A thermometer has been added.

Raspberry Pi Pico W with Ubidots

you can see a change in the temperature reading as right now I am applying heat. Now, let’s go ahead and take look at the programming.



About the Code:

As usual, before you start the programming, first of all, make sure you download all the necessary libraries. You can read my getting started article on the Nodemcu ESP8266 WiFi module, because this WiFi library is from there.

To install the max6675 library, simply go to the Sketch Menu then to Include Library, and click on Manage Libraries… Search for the max6675.

Raspberry Pi Pico W with Ubidots

As you can see I have already installed this library…

These are the WiFi credentials.

This is the Token.

This is going to be the variable name

And this is going to be the device name.

Rest of the code is exactly the same. You can watch my getting started videos on the Ubidots. I have used it with Nodemcu ESP8266 and ESP32. So, that’s all about the programming.

Watch Video Tutorial

Engr Fahad

My name is Shahzada Fahad and I am an Electrical Engineer. I have been doing Job in UAE as a site engineer in an Electrical Construction Company. Currently, I am running my own YouTube channel "Electronic Clinic", and managing this Website. My Hobbies are * Watching Movies * Music * Martial Arts * Photography * Travelling * Make Sketches and so on...

Related Articles

Leave a Reply

Your email address will not be published. Required fields are marked *

Back to top button