← Back to search

How To Set Up MQTT With Raspberry Pi Pico W | Guide For Beginners

Core Electronics 9:00

46,758 views · 1,008 likes Watch on YouTube ↗

🔗 *The full guide* : _https://core-electronics.com.au/guides/getting-started-with-mqtt-on-raspberry-pi-pico-w-connect-to-the-internet-of-things_

In this guide, we'll get a *Raspberry Pi Pico W* to send and receive data to the cloud using the *MQTT* protocol. By the end of this video, we'll be controlling real hardware over the cloud using a web-based dashboard ( *Adafruit IO* ).

If you need help setting up *WiFi* on the *Pico W* head here:
_https://core-electronics.com.au/guides/raspberry-pi-pico/raspberry-pi-pico-w-connect-to-the-internet/_

If you're new to *Raspberry Pi Pico* and *Thonny* give this a read:
https://core-electronics.com.au/guides/raspberry-pi-pico/how-to-setup-a-raspberry-pi-pico-and-code-with-thonny/

🔧🔨🧰 Hardware featured in this guide:

*Raspberry Pi Pico W:*
_https://core-electronics.com.au/catalog/product/view/sku/CE09115_
*PiicoDev Ultrasonic Rangefinder:*
_https://core-electronics.com.au/catalog/product/view/sku/CE09360_
*PiicoDev 3x RGB LED Module:*
_https://core-electronics.com.au/catalog/product/view/sku/CE07910_
*Other Pico Products:*
_https://core-electronics.com.au/raspberry-pi/pico.html_

💡❓ If you have any questions about this content or want to share a project you're working on head over to our *maker forum:* _http://coreelec.io/forum_

0:00 Intro
0:39 Setting Up Adafruit IO
1:47 Publishing To The Dashboard With Your Pico W
3:53 Code Walkthrough
4:24 Subscribing To Data With Your Pico W
6:08 Reconnecting After Losing Power
7:05 Code Walkthrough
8:09 Controlling Hardware Via The Cloud

🌏🦘 *Core Electronics* is located in the heart of Newcastle, Australia. We're powered by makers, for makers. Drop by if you are looking for:

• *Raspberry Pi* _https://core-electronics.com.au/raspberry-pi.html_
• *Arduino* _https://core-electronics.com.au/arduino.html_
• *Sparkfun* _https://core-electronics.com.au/brands/sparkfun-australia_
• *Adafruit* _https://core-electronics.com.au/brands/adafruit-australia_
• *Pololu* _https://core-electronics.com.au/brands/pololu-australia_
• *DFRobot* _https://core-electronics.com.au/brands/dfrobot-australia_

The following trademarks are owned by *Core Electronics Pty Ltd* :

"Core Electronics" and the Core Electronics logo
"Makerverse" and the Makerverse logo
"PiicoDev" and the PiicoDev logo
"GlowBit" and the GlowBit logo

Category (YouTube): Education

Playback is via YouTube's official embedded player. Data from YouTube; Exumo is not affiliated with YouTube.