{"id":21412,"date":"2022-07-16T15:13:06","date_gmt":"2022-07-16T14:13:06","guid":{"rendered":"https:\/\/www.recantha.co.uk\/blog\/?p=21412"},"modified":"2022-07-16T15:13:39","modified_gmt":"2022-07-16T14:13:39","slug":"use-adafruit-io-with-a-raspberry-pi-pico-w-to-create-iot-dashboards-using-mqtt-raspberrypi-internetofthings","status":"publish","type":"post","link":"https:\/\/www.recantha.co.uk\/blog\/?p=21412","title":{"rendered":"Use Adafruit IO with a Raspberry Pi Pico W to create IoT dashboards using MQTT"},"content":{"rendered":"<p><a href=\"https:\/\/i0.wp.com\/www.recantha.co.uk\/blog\/wp-content\/uploads\/2022\/07\/IMG_20220716_145804103_sm.jpg?ssl=1\"><img data-recalc-dims=\"1\" loading=\"lazy\" decoding=\"async\" class=\"alignnone wp-image-21414 size-full\" src=\"https:\/\/i0.wp.com\/www.recantha.co.uk\/blog\/wp-content\/uploads\/2022\/07\/IMG_20220716_145804103_sm.jpg?resize=560%2C430&#038;ssl=1\" alt=\"\" width=\"560\" height=\"430\" srcset=\"https:\/\/i0.wp.com\/www.recantha.co.uk\/blog\/wp-content\/uploads\/2022\/07\/IMG_20220716_145804103_sm.jpg?w=1200&amp;ssl=1 1200w, https:\/\/i0.wp.com\/www.recantha.co.uk\/blog\/wp-content\/uploads\/2022\/07\/IMG_20220716_145804103_sm.jpg?resize=300%2C230&amp;ssl=1 300w, https:\/\/i0.wp.com\/www.recantha.co.uk\/blog\/wp-content\/uploads\/2022\/07\/IMG_20220716_145804103_sm.jpg?resize=1024%2C786&amp;ssl=1 1024w, https:\/\/i0.wp.com\/www.recantha.co.uk\/blog\/wp-content\/uploads\/2022\/07\/IMG_20220716_145804103_sm.jpg?resize=768%2C589&amp;ssl=1 768w, https:\/\/i0.wp.com\/www.recantha.co.uk\/blog\/wp-content\/uploads\/2022\/07\/IMG_20220716_145804103_sm.jpg?resize=560%2C430&amp;ssl=1 560w, https:\/\/i0.wp.com\/www.recantha.co.uk\/blog\/wp-content\/uploads\/2022\/07\/IMG_20220716_145804103_sm.jpg?resize=260%2C200&amp;ssl=1 260w, https:\/\/i0.wp.com\/www.recantha.co.uk\/blog\/wp-content\/uploads\/2022\/07\/IMG_20220716_145804103_sm.jpg?resize=160%2C123&amp;ssl=1 160w, https:\/\/i0.wp.com\/www.recantha.co.uk\/blog\/wp-content\/uploads\/2022\/07\/IMG_20220716_145804103_sm.jpg?w=1120&amp;ssl=1 1120w\" sizes=\"auto, (max-width: 560px) 100vw, 560px\" \/><\/a><\/p>\n<p>I decided recently to set up a string of temperature sensors around our house to work out the temperature profile of different rooms.<\/p>\n<p>With the recent release of the Pico W, I realised that I could do this quite simply, as long as I could find a way to &#8220;nicely&#8221; display the data.<\/p>\n<p>You&#8217;ll have read my exploits with <a href=\"https:\/\/www.recantha.co.uk\/blog\/?p=21404\" target=\"_blank\" rel=\"noopener\">Anvil<\/a> last week, I expect, and saw that I didn&#8217;t have much luck. However, I knew that Adafruit had their very own IoT platform &#8211; Adafruit IO &#8211; and that it had been around awhile, so I thought I&#8217;d give that a try and document it.<\/p>\n<h2>Set-up your Adafruit account<\/h2>\n<p>Go to <a href=\"https:\/\/io.adafruit.com\/\">https:\/\/io.adafruit.com\/<\/a> and register an account if you don&#8217;t have one. You&#8217;ll be creating Feeds and Dashboards in a bit.<\/p>\n<h2>Assemble your hardware<\/h2>\n<p>For this project, I&#8217;m using:<\/p>\n<ul>\n<li>A Raspberry Pi PicoW<\/li>\n<li>An Adafruit AHT20 I2C temperature and humidity sensor<\/li>\n<\/ul>\n<p>As you can see, I&#8217;ve soldered them together. I&#8217;ll put a 3D printed case together at some point, I&#8217;m sure.<\/p>\n<h2>Assemble your software<\/h2>\n<p>For this project, I&#8217;ve used Micropython for the PicoW and then loaded the Pico up with an MQTT client and an AHT library as follows:<\/p>\n<ul dir=\"auto\">\n<li>The MQTT example library from pycom &#8211;\u00a0<a href=\"https:\/\/github.com\/pycom\/pycom-libraries\/tree\/master\/examples\/mqtt\">https:\/\/github.com\/pycom\/pycom-libraries\/tree\/master\/examples\/mqtt<\/a><\/li>\n<li>AHT temperature sensor library from Andreas B\u00fchl &#8211;\u00a0<a href=\"https:\/\/github.com\/targetblank\/micropython_ahtx0\">https:\/\/github.com\/targetblank\/micropython_ahtx0<\/a><\/li>\n<\/ul>\n<h2>The code<\/h2>\n<p>The code is in several files and can be found on my <a href=\"https:\/\/github.com\/recantha\/PicoTemp\" target=\"_blank\" rel=\"noopener\">GitHub repository<\/a>.<\/p>\n<ul>\n<li>main.py &#8211; the main code that holds it all together<\/li>\n<li>config.py &#8211; defines the &#8220;name of the device&#8221; by way of a &#8220;feed prefix&#8221; which is used to tie the Adafruit IO feeds together with the device.<\/li>\n<li>secrets.py &#8211; credentials etc. There&#8217;s a sample secrets file in the repository so you know what to put in it.<\/li>\n<li>The two libraries as mentioned above.<\/li>\n<\/ul>\n<h2>Adafruit IO set-up<\/h2>\n<p>Set-up your config.py with a feed prefix &#8211; this can be anything by mine&#8217;s called temp_sensor_1.<\/p>\n<p>Then, create two feeds in Adafruit IO: &lt;prefix&gt;_temperature and &lt;prefix&gt;_humidity. For example, temp_sensor_1_temperature etc.<\/p>\n<p>Create a dashboard by adding Graph boxes that bring in those feeds.<\/p>\n<h2>Output<\/h2>\n<p>In theory, running the script through Thonny should show you the sensor readings as well as connection success\/failure for wifi and notification of when the readings are published via MQTT to Adafruit IO.<\/p>\n<p>You should end up with something like this on Adafruit:<\/p>\n<p><a href=\"https:\/\/i0.wp.com\/www.recantha.co.uk\/blog\/wp-content\/uploads\/2022\/07\/home_sensors.jpg?ssl=1\"><img data-recalc-dims=\"1\" loading=\"lazy\" decoding=\"async\" class=\"alignnone wp-image-21415 size-full\" src=\"https:\/\/i0.wp.com\/www.recantha.co.uk\/blog\/wp-content\/uploads\/2022\/07\/home_sensors.jpg?resize=560%2C194&#038;ssl=1\" alt=\"\" width=\"560\" height=\"194\" srcset=\"https:\/\/i0.wp.com\/www.recantha.co.uk\/blog\/wp-content\/uploads\/2022\/07\/home_sensors.jpg?w=1070&amp;ssl=1 1070w, https:\/\/i0.wp.com\/www.recantha.co.uk\/blog\/wp-content\/uploads\/2022\/07\/home_sensors.jpg?resize=300%2C104&amp;ssl=1 300w, https:\/\/i0.wp.com\/www.recantha.co.uk\/blog\/wp-content\/uploads\/2022\/07\/home_sensors.jpg?resize=1024%2C355&amp;ssl=1 1024w, https:\/\/i0.wp.com\/www.recantha.co.uk\/blog\/wp-content\/uploads\/2022\/07\/home_sensors.jpg?resize=768%2C266&amp;ssl=1 768w, https:\/\/i0.wp.com\/www.recantha.co.uk\/blog\/wp-content\/uploads\/2022\/07\/home_sensors.jpg?resize=560%2C194&amp;ssl=1 560w, https:\/\/i0.wp.com\/www.recantha.co.uk\/blog\/wp-content\/uploads\/2022\/07\/home_sensors.jpg?resize=260%2C90&amp;ssl=1 260w, https:\/\/i0.wp.com\/www.recantha.co.uk\/blog\/wp-content\/uploads\/2022\/07\/home_sensors.jpg?resize=160%2C55&amp;ssl=1 160w\" sizes=\"auto, (max-width: 560px) 100vw, 560px\" \/><\/a><\/p>\n<h2>Questions<\/h2>\n<p>If you&#8217;re trying to do this, you probably have questions &#8211; leave a comment and I&#8217;ll try and get back to you! \ud83d\ude42<\/p>\n","protected":false},"excerpt":{"rendered":"<p>I decided recently to set up a string of temperature sensors around our house to work out the temperature profile of different rooms. With the recent release of the Pico W, I realised that I could do this quite simply,&hellip;<\/p>\n<p class=\"more-link-p\"><a class=\"more-link\" href=\"https:\/\/www.recantha.co.uk\/blog\/?p=21412\">Read more &rarr;<\/a><\/p>\n","protected":false},"author":1,"featured_media":21414,"comment_status":"open","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"jetpack_post_was_ever_published":false,"_jetpack_newsletter_access":"","_jetpack_dont_email_post_to_subs":false,"_jetpack_newsletter_tier_id":0,"_jetpack_memberships_contains_paywalled_content":false,"_jetpack_memberships_contains_paid_content":false,"footnotes":"","jetpack_publicize_message":"","jetpack_publicize_feature_enabled":true,"jetpack_social_post_already_shared":true,"jetpack_social_options":{"image_generator_settings":{"template":"highway","default_image_id":0,"font":"","enabled":false},"version":2}},"categories":[26,39,62,51],"tags":[198,1039],"class_list":["post-21412","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-internet-of-things","category-programming","category-sensors","category-tutorials","tag-adafruit","tag-picow"],"yoast_head":"<!-- This site is optimized with the Yoast SEO plugin v26.8 - https:\/\/yoast.com\/product\/yoast-seo-wordpress\/ -->\n<title>Use Adafruit IO with a Raspberry Pi Pico W to create IoT dashboards using MQTT - Raspberry Pi Pod<\/title>\n<meta name=\"robots\" content=\"index, follow, max-snippet:-1, max-image-preview:large, max-video-preview:-1\" \/>\n<link rel=\"canonical\" href=\"https:\/\/www.recantha.co.uk\/blog\/?p=21412\" \/>\n<meta property=\"og:locale\" content=\"en_US\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"Use Adafruit IO with a Raspberry Pi Pico W to create IoT dashboards using MQTT - Raspberry Pi Pod\" \/>\n<meta property=\"og:description\" content=\"I decided recently to set up a string of temperature sensors around our house to work out the temperature profile of different rooms. With the recent release of the Pico W, I realised that I could do this quite simply,&hellip;Read more &rarr;\" \/>\n<meta property=\"og:url\" content=\"https:\/\/www.recantha.co.uk\/blog\/?p=21412\" \/>\n<meta property=\"og:site_name\" content=\"Raspberry Pi Pod\" \/>\n<meta property=\"article:publisher\" content=\"https:\/\/www.facebook.com\/recantha\/\" \/>\n<meta property=\"article:published_time\" content=\"2022-07-16T14:13:06+00:00\" \/>\n<meta property=\"article:modified_time\" content=\"2022-07-16T14:13:39+00:00\" \/>\n<meta property=\"og:image\" content=\"https:\/\/www.recantha.co.uk\/blog\/wp-content\/uploads\/2022\/07\/IMG_20220716_145804103_sm.jpg\" \/>\n\t<meta property=\"og:image:width\" content=\"1200\" \/>\n\t<meta property=\"og:image:height\" content=\"921\" \/>\n\t<meta property=\"og:image:type\" content=\"image\/jpeg\" \/>\n<meta name=\"author\" content=\"Michael Horne\" \/>\n<meta name=\"twitter:card\" content=\"summary_large_image\" \/>\n<meta name=\"twitter:creator\" content=\"@recantha\" \/>\n<meta name=\"twitter:site\" content=\"@recantha\" \/>\n<meta name=\"twitter:label1\" content=\"Written by\" \/>\n\t<meta name=\"twitter:data1\" content=\"Michael Horne\" \/>\n\t<meta name=\"twitter:label2\" content=\"Est. reading time\" \/>\n\t<meta name=\"twitter:data2\" content=\"3 minutes\" \/>\n<script type=\"application\/ld+json\" class=\"yoast-schema-graph\">{\"@context\":\"https:\/\/schema.org\",\"@graph\":[{\"@type\":\"Article\",\"@id\":\"https:\/\/www.recantha.co.uk\/blog\/?p=21412#article\",\"isPartOf\":{\"@id\":\"https:\/\/www.recantha.co.uk\/blog\/?p=21412\"},\"author\":{\"name\":\"Michael Horne\",\"@id\":\"https:\/\/www.recantha.co.uk\/blog\/#\/schema\/person\/c27c4ef2ee1c18b130f1fcd5dcdbb263\"},\"headline\":\"Use Adafruit IO with a Raspberry Pi Pico W to create IoT dashboards using MQTT\",\"datePublished\":\"2022-07-16T14:13:06+00:00\",\"dateModified\":\"2022-07-16T14:13:39+00:00\",\"mainEntityOfPage\":{\"@id\":\"https:\/\/www.recantha.co.uk\/blog\/?p=21412\"},\"wordCount\":468,\"commentCount\":5,\"publisher\":{\"@id\":\"https:\/\/www.recantha.co.uk\/blog\/#organization\"},\"image\":{\"@id\":\"https:\/\/www.recantha.co.uk\/blog\/?p=21412#primaryimage\"},\"thumbnailUrl\":\"https:\/\/i0.wp.com\/www.recantha.co.uk\/blog\/wp-content\/uploads\/2022\/07\/IMG_20220716_145804103_sm.jpg?fit=1200%2C921&ssl=1\",\"keywords\":[\"adafruit\",\"picow\"],\"articleSection\":[\"Internet of things\",\"Programming\",\"Sensors\",\"Tutorials\"],\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"CommentAction\",\"name\":\"Comment\",\"target\":[\"https:\/\/www.recantha.co.uk\/blog\/?p=21412#respond\"]}]},{\"@type\":\"WebPage\",\"@id\":\"https:\/\/www.recantha.co.uk\/blog\/?p=21412\",\"url\":\"https:\/\/www.recantha.co.uk\/blog\/?p=21412\",\"name\":\"Use Adafruit IO with a Raspberry Pi Pico W to create IoT dashboards using MQTT - Raspberry Pi Pod\",\"isPartOf\":{\"@id\":\"https:\/\/www.recantha.co.uk\/blog\/#website\"},\"primaryImageOfPage\":{\"@id\":\"https:\/\/www.recantha.co.uk\/blog\/?p=21412#primaryimage\"},\"image\":{\"@id\":\"https:\/\/www.recantha.co.uk\/blog\/?p=21412#primaryimage\"},\"thumbnailUrl\":\"https:\/\/i0.wp.com\/www.recantha.co.uk\/blog\/wp-content\/uploads\/2022\/07\/IMG_20220716_145804103_sm.jpg?fit=1200%2C921&ssl=1\",\"datePublished\":\"2022-07-16T14:13:06+00:00\",\"dateModified\":\"2022-07-16T14:13:39+00:00\",\"breadcrumb\":{\"@id\":\"https:\/\/www.recantha.co.uk\/blog\/?p=21412#breadcrumb\"},\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\/\/www.recantha.co.uk\/blog\/?p=21412\"]}]},{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\/\/www.recantha.co.uk\/blog\/?p=21412#primaryimage\",\"url\":\"https:\/\/i0.wp.com\/www.recantha.co.uk\/blog\/wp-content\/uploads\/2022\/07\/IMG_20220716_145804103_sm.jpg?fit=1200%2C921&ssl=1\",\"contentUrl\":\"https:\/\/i0.wp.com\/www.recantha.co.uk\/blog\/wp-content\/uploads\/2022\/07\/IMG_20220716_145804103_sm.jpg?fit=1200%2C921&ssl=1\",\"width\":1200,\"height\":921},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\/\/www.recantha.co.uk\/blog\/?p=21412#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"Home\",\"item\":\"https:\/\/www.recantha.co.uk\/blog\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"Use Adafruit IO with a Raspberry Pi Pico W to create IoT dashboards using MQTT\"}]},{\"@type\":\"WebSite\",\"@id\":\"https:\/\/www.recantha.co.uk\/blog\/#website\",\"url\":\"https:\/\/www.recantha.co.uk\/blog\/\",\"name\":\"Raspberry Pi Pod\",\"description\":\"Experiences with the Raspberry Pi micro computer and microcontroller\",\"publisher\":{\"@id\":\"https:\/\/www.recantha.co.uk\/blog\/#organization\"},\"potentialAction\":[{\"@type\":\"SearchAction\",\"target\":{\"@type\":\"EntryPoint\",\"urlTemplate\":\"https:\/\/www.recantha.co.uk\/blog\/?s={search_term_string}\"},\"query-input\":{\"@type\":\"PropertyValueSpecification\",\"valueRequired\":true,\"valueName\":\"search_term_string\"}}],\"inLanguage\":\"en-US\"},{\"@type\":\"Organization\",\"@id\":\"https:\/\/www.recantha.co.uk\/blog\/#organization\",\"name\":\"Raspberry Pi Pod\",\"url\":\"https:\/\/www.recantha.co.uk\/blog\/\",\"logo\":{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\/\/www.recantha.co.uk\/blog\/#\/schema\/logo\/image\/\",\"url\":\"https:\/\/i0.wp.com\/www.recantha.co.uk\/blog\/wp-content\/uploads\/2016\/03\/cropped-PiPod-Logo-v3.png?fit=800%2C337&ssl=1\",\"contentUrl\":\"https:\/\/i0.wp.com\/www.recantha.co.uk\/blog\/wp-content\/uploads\/2016\/03\/cropped-PiPod-Logo-v3.png?fit=800%2C337&ssl=1\",\"width\":800,\"height\":337,\"caption\":\"Raspberry Pi Pod\"},\"image\":{\"@id\":\"https:\/\/www.recantha.co.uk\/blog\/#\/schema\/logo\/image\/\"},\"sameAs\":[\"https:\/\/www.facebook.com\/recantha\/\",\"https:\/\/x.com\/recantha\",\"https:\/\/www.linkedin.com\/in\/recantha\/\",\"https:\/\/www.youtube.com\/channel\/UCK4F9blabxzmk8Inzhs8tpg\"]},{\"@type\":\"Person\",\"@id\":\"https:\/\/www.recantha.co.uk\/blog\/#\/schema\/person\/c27c4ef2ee1c18b130f1fcd5dcdbb263\",\"name\":\"Michael Horne\",\"image\":{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\/\/www.recantha.co.uk\/blog\/#\/schema\/person\/image\/\",\"url\":\"https:\/\/secure.gravatar.com\/avatar\/479778b0677caadde0ceb54c4129804ef674914607e3ed0998808148357d10d8?s=96&d=mm&r=g\",\"contentUrl\":\"https:\/\/secure.gravatar.com\/avatar\/479778b0677caadde0ceb54c4129804ef674914607e3ed0998808148357d10d8?s=96&d=mm&r=g\",\"caption\":\"Michael Horne\"},\"url\":\"https:\/\/www.recantha.co.uk\/blog\/?author=1\"}]}<\/script>\n<!-- \/ Yoast SEO plugin. -->","yoast_head_json":{"title":"Use Adafruit IO with a Raspberry Pi Pico W to create IoT dashboards using MQTT - Raspberry Pi Pod","robots":{"index":"index","follow":"follow","max-snippet":"max-snippet:-1","max-image-preview":"max-image-preview:large","max-video-preview":"max-video-preview:-1"},"canonical":"https:\/\/www.recantha.co.uk\/blog\/?p=21412","og_locale":"en_US","og_type":"article","og_title":"Use Adafruit IO with a Raspberry Pi Pico W to create IoT dashboards using MQTT - Raspberry Pi Pod","og_description":"I decided recently to set up a string of temperature sensors around our house to work out the temperature profile of different rooms. With the recent release of the Pico W, I realised that I could do this quite simply,&hellip;Read more &rarr;","og_url":"https:\/\/www.recantha.co.uk\/blog\/?p=21412","og_site_name":"Raspberry Pi Pod","article_publisher":"https:\/\/www.facebook.com\/recantha\/","article_published_time":"2022-07-16T14:13:06+00:00","article_modified_time":"2022-07-16T14:13:39+00:00","og_image":[{"width":1200,"height":921,"url":"https:\/\/www.recantha.co.uk\/blog\/wp-content\/uploads\/2022\/07\/IMG_20220716_145804103_sm.jpg","type":"image\/jpeg"}],"author":"Michael Horne","twitter_card":"summary_large_image","twitter_creator":"@recantha","twitter_site":"@recantha","twitter_misc":{"Written by":"Michael Horne","Est. reading time":"3 minutes"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"Article","@id":"https:\/\/www.recantha.co.uk\/blog\/?p=21412#article","isPartOf":{"@id":"https:\/\/www.recantha.co.uk\/blog\/?p=21412"},"author":{"name":"Michael Horne","@id":"https:\/\/www.recantha.co.uk\/blog\/#\/schema\/person\/c27c4ef2ee1c18b130f1fcd5dcdbb263"},"headline":"Use Adafruit IO with a Raspberry Pi Pico W to create IoT dashboards using MQTT","datePublished":"2022-07-16T14:13:06+00:00","dateModified":"2022-07-16T14:13:39+00:00","mainEntityOfPage":{"@id":"https:\/\/www.recantha.co.uk\/blog\/?p=21412"},"wordCount":468,"commentCount":5,"publisher":{"@id":"https:\/\/www.recantha.co.uk\/blog\/#organization"},"image":{"@id":"https:\/\/www.recantha.co.uk\/blog\/?p=21412#primaryimage"},"thumbnailUrl":"https:\/\/i0.wp.com\/www.recantha.co.uk\/blog\/wp-content\/uploads\/2022\/07\/IMG_20220716_145804103_sm.jpg?fit=1200%2C921&ssl=1","keywords":["adafruit","picow"],"articleSection":["Internet of things","Programming","Sensors","Tutorials"],"inLanguage":"en-US","potentialAction":[{"@type":"CommentAction","name":"Comment","target":["https:\/\/www.recantha.co.uk\/blog\/?p=21412#respond"]}]},{"@type":"WebPage","@id":"https:\/\/www.recantha.co.uk\/blog\/?p=21412","url":"https:\/\/www.recantha.co.uk\/blog\/?p=21412","name":"Use Adafruit IO with a Raspberry Pi Pico W to create IoT dashboards using MQTT - Raspberry Pi Pod","isPartOf":{"@id":"https:\/\/www.recantha.co.uk\/blog\/#website"},"primaryImageOfPage":{"@id":"https:\/\/www.recantha.co.uk\/blog\/?p=21412#primaryimage"},"image":{"@id":"https:\/\/www.recantha.co.uk\/blog\/?p=21412#primaryimage"},"thumbnailUrl":"https:\/\/i0.wp.com\/www.recantha.co.uk\/blog\/wp-content\/uploads\/2022\/07\/IMG_20220716_145804103_sm.jpg?fit=1200%2C921&ssl=1","datePublished":"2022-07-16T14:13:06+00:00","dateModified":"2022-07-16T14:13:39+00:00","breadcrumb":{"@id":"https:\/\/www.recantha.co.uk\/blog\/?p=21412#breadcrumb"},"inLanguage":"en-US","potentialAction":[{"@type":"ReadAction","target":["https:\/\/www.recantha.co.uk\/blog\/?p=21412"]}]},{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/www.recantha.co.uk\/blog\/?p=21412#primaryimage","url":"https:\/\/i0.wp.com\/www.recantha.co.uk\/blog\/wp-content\/uploads\/2022\/07\/IMG_20220716_145804103_sm.jpg?fit=1200%2C921&ssl=1","contentUrl":"https:\/\/i0.wp.com\/www.recantha.co.uk\/blog\/wp-content\/uploads\/2022\/07\/IMG_20220716_145804103_sm.jpg?fit=1200%2C921&ssl=1","width":1200,"height":921},{"@type":"BreadcrumbList","@id":"https:\/\/www.recantha.co.uk\/blog\/?p=21412#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"Home","item":"https:\/\/www.recantha.co.uk\/blog"},{"@type":"ListItem","position":2,"name":"Use Adafruit IO with a Raspberry Pi Pico W to create IoT dashboards using MQTT"}]},{"@type":"WebSite","@id":"https:\/\/www.recantha.co.uk\/blog\/#website","url":"https:\/\/www.recantha.co.uk\/blog\/","name":"Raspberry Pi Pod","description":"Experiences with the Raspberry Pi micro computer and microcontroller","publisher":{"@id":"https:\/\/www.recantha.co.uk\/blog\/#organization"},"potentialAction":[{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https:\/\/www.recantha.co.uk\/blog\/?s={search_term_string}"},"query-input":{"@type":"PropertyValueSpecification","valueRequired":true,"valueName":"search_term_string"}}],"inLanguage":"en-US"},{"@type":"Organization","@id":"https:\/\/www.recantha.co.uk\/blog\/#organization","name":"Raspberry Pi Pod","url":"https:\/\/www.recantha.co.uk\/blog\/","logo":{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/www.recantha.co.uk\/blog\/#\/schema\/logo\/image\/","url":"https:\/\/i0.wp.com\/www.recantha.co.uk\/blog\/wp-content\/uploads\/2016\/03\/cropped-PiPod-Logo-v3.png?fit=800%2C337&ssl=1","contentUrl":"https:\/\/i0.wp.com\/www.recantha.co.uk\/blog\/wp-content\/uploads\/2016\/03\/cropped-PiPod-Logo-v3.png?fit=800%2C337&ssl=1","width":800,"height":337,"caption":"Raspberry Pi Pod"},"image":{"@id":"https:\/\/www.recantha.co.uk\/blog\/#\/schema\/logo\/image\/"},"sameAs":["https:\/\/www.facebook.com\/recantha\/","https:\/\/x.com\/recantha","https:\/\/www.linkedin.com\/in\/recantha\/","https:\/\/www.youtube.com\/channel\/UCK4F9blabxzmk8Inzhs8tpg"]},{"@type":"Person","@id":"https:\/\/www.recantha.co.uk\/blog\/#\/schema\/person\/c27c4ef2ee1c18b130f1fcd5dcdbb263","name":"Michael Horne","image":{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/www.recantha.co.uk\/blog\/#\/schema\/person\/image\/","url":"https:\/\/secure.gravatar.com\/avatar\/479778b0677caadde0ceb54c4129804ef674914607e3ed0998808148357d10d8?s=96&d=mm&r=g","contentUrl":"https:\/\/secure.gravatar.com\/avatar\/479778b0677caadde0ceb54c4129804ef674914607e3ed0998808148357d10d8?s=96&d=mm&r=g","caption":"Michael Horne"},"url":"https:\/\/www.recantha.co.uk\/blog\/?author=1"}]}},"jetpack_publicize_connections":[],"jetpack_featured_media_url":"https:\/\/i0.wp.com\/www.recantha.co.uk\/blog\/wp-content\/uploads\/2022\/07\/IMG_20220716_145804103_sm.jpg?fit=1200%2C921&ssl=1","jetpack_sharing_enabled":true,"jetpack_shortlink":"https:\/\/wp.me\/p2RsaV-5zm","jetpack-related-posts":[{"id":20959,"url":"https:\/\/www.recantha.co.uk\/blog\/?p=20959","url_meta":{"origin":21412,"position":0},"title":"Create a low-res thermal camera with a Raspberry Pi Pico, an AMG8833 sensor and an ILI9341 screen with CircuitPython","author":"Michael Horne","date":"22 March 2021","format":false,"excerpt":"As part of an ongoing Raspberry Pi Pico-based project, I wanted to create a thermal camera. To do this, I first of all went shopping to find what I needed. Here are the two components for this mini project: Adafruit AMG8833 thermal camera breakout (that's The Pi Hut, you can\u2026","rel":"","context":"In &quot;Geeky Techiness&quot;","block_context":{"text":"Geeky Techiness","link":"https:\/\/www.recantha.co.uk\/blog\/?cat=22"},"img":{"alt_text":"","src":"https:\/\/i0.wp.com\/www.recantha.co.uk\/blog\/wp-content\/uploads\/2021\/03\/IMG_20210321_183534893_HDR_sm.jpg?fit=1200%2C898&ssl=1&resize=350%2C200","width":350,"height":200,"srcset":"https:\/\/i0.wp.com\/www.recantha.co.uk\/blog\/wp-content\/uploads\/2021\/03\/IMG_20210321_183534893_HDR_sm.jpg?fit=1200%2C898&ssl=1&resize=350%2C200 1x, https:\/\/i0.wp.com\/www.recantha.co.uk\/blog\/wp-content\/uploads\/2021\/03\/IMG_20210321_183534893_HDR_sm.jpg?fit=1200%2C898&ssl=1&resize=525%2C300 1.5x, https:\/\/i0.wp.com\/www.recantha.co.uk\/blog\/wp-content\/uploads\/2021\/03\/IMG_20210321_183534893_HDR_sm.jpg?fit=1200%2C898&ssl=1&resize=700%2C400 2x, https:\/\/i0.wp.com\/www.recantha.co.uk\/blog\/wp-content\/uploads\/2021\/03\/IMG_20210321_183534893_HDR_sm.jpg?fit=1200%2C898&ssl=1&resize=1050%2C600 3x"},"classes":[]},{"id":21005,"url":"https:\/\/www.recantha.co.uk\/blog\/?p=21005","url_meta":{"origin":21412,"position":1},"title":"The PicoPicorder &#8211; a work-in-progress prototype using a Raspberry Pi Pico and lots of components from Pimoroni and Adafruit!","author":"Michael Horne","date":"5 April 2021","format":false,"excerpt":"During March, and for the past week as well, I've been working on the latest iteration of my Picorder project. This project, which has been my \"go-to project\" for the past 9 years (gulp!) is now running from a Raspberry Pi Pico and uses lots and lots of sensors and\u2026","rel":"","context":"In &quot;Audio&quot;","block_context":{"text":"Audio","link":"https:\/\/www.recantha.co.uk\/blog\/?cat=4"},"img":{"alt_text":"","src":"https:\/\/i0.wp.com\/www.recantha.co.uk\/blog\/wp-content\/uploads\/2021\/04\/PicoPicorder-prototyping-stage_sm.jpg?fit=1200%2C898&ssl=1&resize=350%2C200","width":350,"height":200,"srcset":"https:\/\/i0.wp.com\/www.recantha.co.uk\/blog\/wp-content\/uploads\/2021\/04\/PicoPicorder-prototyping-stage_sm.jpg?fit=1200%2C898&ssl=1&resize=350%2C200 1x, https:\/\/i0.wp.com\/www.recantha.co.uk\/blog\/wp-content\/uploads\/2021\/04\/PicoPicorder-prototyping-stage_sm.jpg?fit=1200%2C898&ssl=1&resize=525%2C300 1.5x, https:\/\/i0.wp.com\/www.recantha.co.uk\/blog\/wp-content\/uploads\/2021\/04\/PicoPicorder-prototyping-stage_sm.jpg?fit=1200%2C898&ssl=1&resize=700%2C400 2x, https:\/\/i0.wp.com\/www.recantha.co.uk\/blog\/wp-content\/uploads\/2021\/04\/PicoPicorder-prototyping-stage_sm.jpg?fit=1200%2C898&ssl=1&resize=1050%2C600 3x"},"classes":[]},{"id":15208,"url":"https:\/\/www.recantha.co.uk\/blog\/?p=15208","url_meta":{"origin":21412,"position":2},"title":"Send humidity &#038; temperature sensor readings to Initial State from a Raspberry Pi","author":"Michael Horne","date":"4 August 2016","format":false,"excerpt":"Rich Plakas has written a great tutorial on using the simple DHT22 temperature\/humidity sensor with the Raspberry Pi in which he sends the readings to online IoT dashboard provider Initial State. He borrows a lot from other code (which he acknowledges) but the results are excellent and the sensor is\u2026","rel":"","context":"In &quot;Accessories&quot;","block_context":{"text":"Accessories","link":"https:\/\/www.recantha.co.uk\/blog\/?cat=54"},"img":{"alt_text":"","src":"https:\/\/i0.wp.com\/www.wemustbegeeks.com\/wp-content\/uploads\/2016\/08\/Frtizing-IoT-Temperature-Humidity-to-Initial-State-Using-a-Raspberry-Pi-DHT22-1024x835.jpg?resize=350%2C200","width":350,"height":200,"srcset":"https:\/\/i0.wp.com\/www.wemustbegeeks.com\/wp-content\/uploads\/2016\/08\/Frtizing-IoT-Temperature-Humidity-to-Initial-State-Using-a-Raspberry-Pi-DHT22-1024x835.jpg?resize=350%2C200 1x, https:\/\/i0.wp.com\/www.wemustbegeeks.com\/wp-content\/uploads\/2016\/08\/Frtizing-IoT-Temperature-Humidity-to-Initial-State-Using-a-Raspberry-Pi-DHT22-1024x835.jpg?resize=525%2C300 1.5x, https:\/\/i0.wp.com\/www.wemustbegeeks.com\/wp-content\/uploads\/2016\/08\/Frtizing-IoT-Temperature-Humidity-to-Initial-State-Using-a-Raspberry-Pi-DHT22-1024x835.jpg?resize=700%2C400 2x"},"classes":[]},{"id":11074,"url":"https:\/\/www.recantha.co.uk\/blog\/?p=11074","url_meta":{"origin":21412,"position":3},"title":"Adafruit Raspberry Pi libraries for temperature sensors","author":"Michael Horne","date":"24 September 2014","format":false,"excerpt":"Adafruit has now written guides for using three different types of temperature sensor: TMP006, MAX31855 and MCP9808. You can see the guides here.","rel":"","context":"In &quot;Accessories&quot;","block_context":{"text":"Accessories","link":"https:\/\/www.recantha.co.uk\/blog\/?cat=54"},"img":{"alt_text":"","src":"https:\/\/i0.wp.com\/www.adafruit.com\/blog\/wp-content\/uploads\/2014\/09\/tempsensors-600x159.jpg?resize=350%2C200&ssl=1","width":350,"height":200,"srcset":"https:\/\/i0.wp.com\/www.adafruit.com\/blog\/wp-content\/uploads\/2014\/09\/tempsensors-600x159.jpg?resize=350%2C200&ssl=1 1x, https:\/\/i0.wp.com\/www.adafruit.com\/blog\/wp-content\/uploads\/2014\/09\/tempsensors-600x159.jpg?resize=525%2C300&ssl=1 1.5x"},"classes":[]},{"id":20803,"url":"https:\/\/www.recantha.co.uk\/blog\/?p=20803","url_meta":{"origin":21412,"position":4},"title":"Use Adafruit&#8217;s CircuitPython on the Raspberry Pi Pico","author":"Michael Horne","date":"6 February 2021","format":false,"excerpt":"At the start of the Raspberry Pi Pico launch, it was only possible to program it in either C\/C++ or MicroPython. A few languages are beginning to make an appearance now, including the quite exciting prospect of Rust running on the board. Today, I'm highlighting Adafruit's CircuitPython. It is similar,\u2026","rel":"","context":"In &quot;Programming&quot;","block_context":{"text":"Programming","link":"https:\/\/www.recantha.co.uk\/blog\/?cat=39"},"img":{"alt_text":"","src":"https:\/\/i0.wp.com\/www.recantha.co.uk\/blog\/wp-content\/uploads\/2021\/02\/CircuitPython_Repo_header_logo.png?fit=1000%2C380&ssl=1&resize=350%2C200","width":350,"height":200,"srcset":"https:\/\/i0.wp.com\/www.recantha.co.uk\/blog\/wp-content\/uploads\/2021\/02\/CircuitPython_Repo_header_logo.png?fit=1000%2C380&ssl=1&resize=350%2C200 1x, https:\/\/i0.wp.com\/www.recantha.co.uk\/blog\/wp-content\/uploads\/2021\/02\/CircuitPython_Repo_header_logo.png?fit=1000%2C380&ssl=1&resize=525%2C300 1.5x, https:\/\/i0.wp.com\/www.recantha.co.uk\/blog\/wp-content\/uploads\/2021\/02\/CircuitPython_Repo_header_logo.png?fit=1000%2C380&ssl=1&resize=700%2C400 2x"},"classes":[]},{"id":20875,"url":"https:\/\/www.recantha.co.uk\/blog\/?p=20875","url_meta":{"origin":21412,"position":5},"title":"Drive servos, steppers, DC motors and solenoids with the Raspberry Pi Pico and CircuitPython with this great guide from Adafruit","author":"Michael Horne","date":"18 February 2021","format":false,"excerpt":"Adafruit have produced some exceptional tutorials\/guides over the years and it appears that they are doing a sterling job on new guides for the Raspberry Pi Pico. Their latest guide shows you to how to hook up a Raspberry Pi Pico to various electronic components to drive servos, stepper motors,\u2026","rel":"","context":"In &quot;Raspberry Pi Pico&quot;","block_context":{"text":"Raspberry Pi Pico","link":"https:\/\/www.recantha.co.uk\/blog\/?cat=972"},"img":{"alt_text":"","src":"https:\/\/i0.wp.com\/www.recantha.co.uk\/blog\/wp-content\/uploads\/2021\/02\/picopartyboard_c.jpg?fit=640%2C480&ssl=1&resize=350%2C200","width":350,"height":200,"srcset":"https:\/\/i0.wp.com\/www.recantha.co.uk\/blog\/wp-content\/uploads\/2021\/02\/picopartyboard_c.jpg?fit=640%2C480&ssl=1&resize=350%2C200 1x, https:\/\/i0.wp.com\/www.recantha.co.uk\/blog\/wp-content\/uploads\/2021\/02\/picopartyboard_c.jpg?fit=640%2C480&ssl=1&resize=525%2C300 1.5x"},"classes":[]}],"_links":{"self":[{"href":"https:\/\/www.recantha.co.uk\/blog\/index.php?rest_route=\/wp\/v2\/posts\/21412","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.recantha.co.uk\/blog\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.recantha.co.uk\/blog\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.recantha.co.uk\/blog\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/www.recantha.co.uk\/blog\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=21412"}],"version-history":[{"count":4,"href":"https:\/\/www.recantha.co.uk\/blog\/index.php?rest_route=\/wp\/v2\/posts\/21412\/revisions"}],"predecessor-version":[{"id":21418,"href":"https:\/\/www.recantha.co.uk\/blog\/index.php?rest_route=\/wp\/v2\/posts\/21412\/revisions\/21418"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/www.recantha.co.uk\/blog\/index.php?rest_route=\/wp\/v2\/media\/21414"}],"wp:attachment":[{"href":"https:\/\/www.recantha.co.uk\/blog\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=21412"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.recantha.co.uk\/blog\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=21412"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.recantha.co.uk\/blog\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=21412"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}