{"id":21637,"date":"2023-08-21T09:06:47","date_gmt":"2023-08-21T08:06:47","guid":{"rendered":"https:\/\/www.recantha.co.uk\/blog\/?p=21637"},"modified":"2023-08-22T15:13:44","modified_gmt":"2023-08-22T14:13:44","slug":"portable-temperature-humidity-and-pressure-sensor-using-a-raspberry-pi-pico-w","status":"publish","type":"post","link":"https:\/\/www.recantha.co.uk\/blog\/?p=21637","title":{"rendered":"Portable temperature, humidity and pressure sensor using a Raspberry Pi Pico W"},"content":{"rendered":"<p><img data-recalc-dims=\"1\" loading=\"lazy\" decoding=\"async\" class=\"alignnone size-full wp-image-21639\" src=\"https:\/\/i0.wp.com\/www.recantha.co.uk\/blog\/wp-content\/uploads\/2023\/08\/PXL_20230819_111355247_sm.jpg?resize=560%2C422&#038;ssl=1\" alt=\"Components for this Raspberry Pi project\" width=\"560\" height=\"422\" srcset=\"https:\/\/i0.wp.com\/www.recantha.co.uk\/blog\/wp-content\/uploads\/2023\/08\/PXL_20230819_111355247_sm.jpg?w=1200&amp;ssl=1 1200w, https:\/\/i0.wp.com\/www.recantha.co.uk\/blog\/wp-content\/uploads\/2023\/08\/PXL_20230819_111355247_sm.jpg?resize=300%2C226&amp;ssl=1 300w, https:\/\/i0.wp.com\/www.recantha.co.uk\/blog\/wp-content\/uploads\/2023\/08\/PXL_20230819_111355247_sm.jpg?resize=1024%2C771&amp;ssl=1 1024w, https:\/\/i0.wp.com\/www.recantha.co.uk\/blog\/wp-content\/uploads\/2023\/08\/PXL_20230819_111355247_sm.jpg?resize=768%2C579&amp;ssl=1 768w, https:\/\/i0.wp.com\/www.recantha.co.uk\/blog\/wp-content\/uploads\/2023\/08\/PXL_20230819_111355247_sm.jpg?resize=560%2C422&amp;ssl=1 560w, https:\/\/i0.wp.com\/www.recantha.co.uk\/blog\/wp-content\/uploads\/2023\/08\/PXL_20230819_111355247_sm.jpg?resize=260%2C196&amp;ssl=1 260w, https:\/\/i0.wp.com\/www.recantha.co.uk\/blog\/wp-content\/uploads\/2023\/08\/PXL_20230819_111355247_sm.jpg?resize=160%2C121&amp;ssl=1 160w, https:\/\/i0.wp.com\/www.recantha.co.uk\/blog\/wp-content\/uploads\/2023\/08\/PXL_20230819_111355247_sm.jpg?w=1120&amp;ssl=1 1120w\" sizes=\"auto, (max-width: 560px) 100vw, 560px\" \/><\/p>\n<p>Hi everyone. It&#8217;s been a little while! I&#8217;ve been horribly busy with various things, including work, so it&#8217;s been difficult to keep up with blogging. I have been posting Pi stuff <a href=\"https:\/\/twitter.com\/recantha\" target=\"_blank\" rel=\"noopener\">over on Twitter\/X<\/a> (how I hate that new name!) so if you follow me there, you&#8217;ll see I&#8217;m still active in the community.<\/p>\n<h2>The project<\/h2>\n<p>Today, I&#8217;d like to show you a project I put together over the weekend of 19th-20th August 2023. I decided I wanted to create a temperature sensor, but a portable, battery-powered one.<\/p>\n<h2>The components<\/h2>\n<p>I went shopping in the Pimoroni sale and bought the following components:<\/p>\n<ul>\n<li>1 x <a href=\"https:\/\/shop.pimoroni.com\/products\/raspberry-pi-pico-w\" target=\"_blank\" rel=\"noopener\">Raspberry Pi Pico W<\/a><\/li>\n<li>1 x <a href=\"https:\/\/shop.pimoroni.com\/products\/pico-display-pack\" target=\"_blank\" rel=\"noopener\">Pimoroni Pico Display Pack<\/a><\/li>\n<li>1 x <a href=\"https:\/\/shop.pimoroni.com\/products\/lipo-amigo?variant=39779302539347\" target=\"_blank\" rel=\"noopener\">Pimoroni LiPo Amigo Pro<\/a><\/li>\n<li>1 x <a href=\"https:\/\/shop.pimoroni.com\/products\/bme280-breakout\" target=\"_blank\" rel=\"noopener\">Pimoroni BME280 Breakout<\/a><\/li>\n<li>1 x <a href=\"https:\/\/shop.pimoroni.com\/products\/jst-2-wire-assembly\" target=\"_blank\" rel=\"noopener\">JST-PH 2-wire assembly<\/a><\/li>\n<li>1 x <a href=\"https:\/\/shop.pimoroni.com\/products\/lithium-ion-battery-pack?variant=23417820423\" target=\"_blank\" rel=\"noopener\">Lithium Ion Battery Pack (4400mAh)<\/a><\/li>\n<li>1 x <a href=\"https:\/\/shop.pimoroni.com\/products\/pico-proto\" target=\"_blank\" rel=\"noopener\">Pimoroni Pico Proto<\/a><\/li>\n<li>1 x <a href=\"https:\/\/shop.pimoroni.com\/products\/pico-header-pack\" target=\"_blank\" rel=\"noopener\">Pico Header pack<\/a><\/li>\n<\/ul>\n<p>I chose the LiPo Amigo <strong>Pro<\/strong> because I wanted the functionality of it being able to charge and supply power to the Pico at the same time. It means I have the choice between plugging it in or leaving it portable.<\/p>\n<h2>Putting it together&#8230; Bit by bit&#8230;<\/h2>\n<p>With the compilation of components laid out, I mentally worked out what I wanted to do.<\/p>\n<p>First of all, I knew that I would need to create a kind of &#8220;sandwich&#8221; with the Display Pack, the Pico Proto and the Pico W. It was therefore vitally important to work out what to solder, and in what order.<\/p>\n<p>The first thing to do was to put it together &#8220;dry&#8221; and make sure it would all work together, and that I had the Proto on the right way up! Then, I soldered the BME sensor to the Pico Proto.<\/p>\n<p><img data-recalc-dims=\"1\" loading=\"lazy\" decoding=\"async\" class=\"alignnone size-full wp-image-21640\" src=\"https:\/\/i0.wp.com\/www.recantha.co.uk\/blog\/wp-content\/uploads\/2023\/08\/bme280_top.jpg?resize=560%2C297&#038;ssl=1\" alt=\"\" width=\"560\" height=\"297\" srcset=\"https:\/\/i0.wp.com\/www.recantha.co.uk\/blog\/wp-content\/uploads\/2023\/08\/bme280_top.jpg?w=700&amp;ssl=1 700w, https:\/\/i0.wp.com\/www.recantha.co.uk\/blog\/wp-content\/uploads\/2023\/08\/bme280_top.jpg?resize=300%2C159&amp;ssl=1 300w, https:\/\/i0.wp.com\/www.recantha.co.uk\/blog\/wp-content\/uploads\/2023\/08\/bme280_top.jpg?resize=560%2C297&amp;ssl=1 560w, https:\/\/i0.wp.com\/www.recantha.co.uk\/blog\/wp-content\/uploads\/2023\/08\/bme280_top.jpg?resize=260%2C138&amp;ssl=1 260w, https:\/\/i0.wp.com\/www.recantha.co.uk\/blog\/wp-content\/uploads\/2023\/08\/bme280_top.jpg?resize=160%2C85&amp;ssl=1 160w\" sizes=\"auto, (max-width: 560px) 100vw, 560px\" \/> <img data-recalc-dims=\"1\" loading=\"lazy\" decoding=\"async\" class=\"alignnone size-full wp-image-21641\" src=\"https:\/\/i0.wp.com\/www.recantha.co.uk\/blog\/wp-content\/uploads\/2023\/08\/bme280_bottom.jpg?resize=560%2C251&#038;ssl=1\" alt=\"\" width=\"560\" height=\"251\" srcset=\"https:\/\/i0.wp.com\/www.recantha.co.uk\/blog\/wp-content\/uploads\/2023\/08\/bme280_bottom.jpg?w=883&amp;ssl=1 883w, https:\/\/i0.wp.com\/www.recantha.co.uk\/blog\/wp-content\/uploads\/2023\/08\/bme280_bottom.jpg?resize=300%2C134&amp;ssl=1 300w, https:\/\/i0.wp.com\/www.recantha.co.uk\/blog\/wp-content\/uploads\/2023\/08\/bme280_bottom.jpg?resize=768%2C344&amp;ssl=1 768w, https:\/\/i0.wp.com\/www.recantha.co.uk\/blog\/wp-content\/uploads\/2023\/08\/bme280_bottom.jpg?resize=560%2C251&amp;ssl=1 560w, https:\/\/i0.wp.com\/www.recantha.co.uk\/blog\/wp-content\/uploads\/2023\/08\/bme280_bottom.jpg?resize=260%2C116&amp;ssl=1 260w, https:\/\/i0.wp.com\/www.recantha.co.uk\/blog\/wp-content\/uploads\/2023\/08\/bme280_bottom.jpg?resize=160%2C72&amp;ssl=1 160w\" sizes=\"auto, (max-width: 560px) 100vw, 560px\" \/><\/p>\n<p>As you can see in my slightly-blurred photos (!), I bridged between the 3v3 pin and a vertical rail. This was just in case I needed to add anything else that needed power. As it turned out, I didn&#8217;t need this after all, but I&#8217;m glad I did anyway. As you can see, the wire wrap split when I soldered it, so I used a pair of tweezers to close it again. Not totally successful, but again, a good idea. You&#8217;ll see that I used pins 8 and 9 on the Pico for the I2C connections of the BME. In the event, this was a <span style=\"text-decoration: underline;\">mistake<\/span> because the Pico Display Pack uses one of the pins for the RGB LED. Never mind!<\/p>\n<p>I dry-assembled it again and realised that if I used the standard pin headers in the project, because of the soldering of the pins through everything, I&#8217;d come up a little short. So, I dug out some extended headers from my parts box and soldered those to the Pico instead.<\/p>\n<p><img data-recalc-dims=\"1\" loading=\"lazy\" decoding=\"async\" class=\"alignnone size-full wp-image-21643\" src=\"https:\/\/i0.wp.com\/www.recantha.co.uk\/blog\/wp-content\/uploads\/2023\/08\/pico_long_headers_sm.jpg?resize=560%2C302&#038;ssl=1\" alt=\"\" width=\"560\" height=\"302\" srcset=\"https:\/\/i0.wp.com\/www.recantha.co.uk\/blog\/wp-content\/uploads\/2023\/08\/pico_long_headers_sm.jpg?w=1200&amp;ssl=1 1200w, https:\/\/i0.wp.com\/www.recantha.co.uk\/blog\/wp-content\/uploads\/2023\/08\/pico_long_headers_sm.jpg?resize=300%2C162&amp;ssl=1 300w, https:\/\/i0.wp.com\/www.recantha.co.uk\/blog\/wp-content\/uploads\/2023\/08\/pico_long_headers_sm.jpg?resize=1024%2C553&amp;ssl=1 1024w, https:\/\/i0.wp.com\/www.recantha.co.uk\/blog\/wp-content\/uploads\/2023\/08\/pico_long_headers_sm.jpg?resize=768%2C415&amp;ssl=1 768w, https:\/\/i0.wp.com\/www.recantha.co.uk\/blog\/wp-content\/uploads\/2023\/08\/pico_long_headers_sm.jpg?resize=560%2C302&amp;ssl=1 560w, https:\/\/i0.wp.com\/www.recantha.co.uk\/blog\/wp-content\/uploads\/2023\/08\/pico_long_headers_sm.jpg?resize=260%2C140&amp;ssl=1 260w, https:\/\/i0.wp.com\/www.recantha.co.uk\/blog\/wp-content\/uploads\/2023\/08\/pico_long_headers_sm.jpg?resize=160%2C86&amp;ssl=1 160w, https:\/\/i0.wp.com\/www.recantha.co.uk\/blog\/wp-content\/uploads\/2023\/08\/pico_long_headers_sm.jpg?w=1120&amp;ssl=1 1120w\" sizes=\"auto, (max-width: 560px) 100vw, 560px\" \/><\/p>\n<p>This gave me enough length to go through the Pico Proto and into the Pico Display Pack with solder in between. I did have to trim all the pins to length, though. I took about half a centimetre off of each pin with a pair of side cutters.<\/p>\n<p>I had looked up which pins I needed to solder the JST lead wires to &#8211; VSYS and GND. This sends the battery power directly into the Pico, which can take between 1.8V and 5.5V. The battery pack has a nominal voltage of 3.7V, so that&#8217;s bang in the middle. The Pico takes care of converting that into the appropriate voltage for its components. I soldered the wires to the Proto board as well and then set about assembling the sandwich again.<\/p>\n<p><img data-recalc-dims=\"1\" loading=\"lazy\" decoding=\"async\" class=\"alignnone size-full wp-image-21644\" src=\"https:\/\/i0.wp.com\/www.recantha.co.uk\/blog\/wp-content\/uploads\/2023\/08\/sandwich.jpg?resize=560%2C201&#038;ssl=1\" alt=\"\" width=\"560\" height=\"201\" srcset=\"https:\/\/i0.wp.com\/www.recantha.co.uk\/blog\/wp-content\/uploads\/2023\/08\/sandwich.jpg?w=1200&amp;ssl=1 1200w, https:\/\/i0.wp.com\/www.recantha.co.uk\/blog\/wp-content\/uploads\/2023\/08\/sandwich.jpg?resize=300%2C108&amp;ssl=1 300w, https:\/\/i0.wp.com\/www.recantha.co.uk\/blog\/wp-content\/uploads\/2023\/08\/sandwich.jpg?resize=1024%2C367&amp;ssl=1 1024w, https:\/\/i0.wp.com\/www.recantha.co.uk\/blog\/wp-content\/uploads\/2023\/08\/sandwich.jpg?resize=768%2C275&amp;ssl=1 768w, https:\/\/i0.wp.com\/www.recantha.co.uk\/blog\/wp-content\/uploads\/2023\/08\/sandwich.jpg?resize=560%2C201&amp;ssl=1 560w, https:\/\/i0.wp.com\/www.recantha.co.uk\/blog\/wp-content\/uploads\/2023\/08\/sandwich.jpg?resize=260%2C93&amp;ssl=1 260w, https:\/\/i0.wp.com\/www.recantha.co.uk\/blog\/wp-content\/uploads\/2023\/08\/sandwich.jpg?resize=160%2C57&amp;ssl=1 160w, https:\/\/i0.wp.com\/www.recantha.co.uk\/blog\/wp-content\/uploads\/2023\/08\/sandwich.jpg?w=1120&amp;ssl=1 1120w\" sizes=\"auto, (max-width: 560px) 100vw, 560px\" \/><\/p>\n<p>As you can see, there is a fair amount of space for the wires. I think this was before I snipped the pins down to size. The finished article has less space, but not so little as to squash the wires or ground anything out.<\/p>\n<p><img data-recalc-dims=\"1\" loading=\"lazy\" decoding=\"async\" class=\"alignnone size-full wp-image-21646\" src=\"https:\/\/i0.wp.com\/www.recantha.co.uk\/blog\/wp-content\/uploads\/2023\/08\/powered.jpg?resize=560%2C168&#038;ssl=1\" alt=\"\" width=\"560\" height=\"168\" srcset=\"https:\/\/i0.wp.com\/www.recantha.co.uk\/blog\/wp-content\/uploads\/2023\/08\/powered.jpg?w=1200&amp;ssl=1 1200w, https:\/\/i0.wp.com\/www.recantha.co.uk\/blog\/wp-content\/uploads\/2023\/08\/powered.jpg?resize=300%2C90&amp;ssl=1 300w, https:\/\/i0.wp.com\/www.recantha.co.uk\/blog\/wp-content\/uploads\/2023\/08\/powered.jpg?resize=1024%2C307&amp;ssl=1 1024w, https:\/\/i0.wp.com\/www.recantha.co.uk\/blog\/wp-content\/uploads\/2023\/08\/powered.jpg?resize=768%2C230&amp;ssl=1 768w, https:\/\/i0.wp.com\/www.recantha.co.uk\/blog\/wp-content\/uploads\/2023\/08\/powered.jpg?resize=560%2C168&amp;ssl=1 560w, https:\/\/i0.wp.com\/www.recantha.co.uk\/blog\/wp-content\/uploads\/2023\/08\/powered.jpg?resize=260%2C78&amp;ssl=1 260w, https:\/\/i0.wp.com\/www.recantha.co.uk\/blog\/wp-content\/uploads\/2023\/08\/powered.jpg?resize=160%2C48&amp;ssl=1 160w, https:\/\/i0.wp.com\/www.recantha.co.uk\/blog\/wp-content\/uploads\/2023\/08\/powered.jpg?w=1120&amp;ssl=1 1120w\" sizes=\"auto, (max-width: 560px) 100vw, 560px\" \/><\/p>\n<p>I then realised that by doing that, it was impossible to tell if the Pico was working or not because I hadn&#8217;t programmed it to do anything! I quickly knocked up an LED blink script in MicroPython using <a href=\"https:\/\/github.com\/pimoroni\/pimoroni-pico\/releases\" target=\"_blank\" rel=\"noopener\">the Pimoroni firmware for the Pico W<\/a>. To my delight, as you can see above if you look closely, the LED started blinking when powered from the battery. Marvellous! I also added a sensor read-and-print. To my dismay, the sensor failed to initialise! \ud83d\ude41 After an inspection using a multimeter, I worked out that everything was wired correctly. So what was the problem? It turns out there was a tiny sliver of wire between SDA and SCL on the Proto. I took a big breath and blew, and off it went into the distance. I ran the script again and it worked!<\/p>\n<p><img data-recalc-dims=\"1\" loading=\"lazy\" decoding=\"async\" class=\"alignnone size-full wp-image-21647\" src=\"https:\/\/i0.wp.com\/www.recantha.co.uk\/blog\/wp-content\/uploads\/2023\/08\/PXL_20230820_075459673-1_sm.jpg?resize=560%2C343&#038;ssl=1\" alt=\"\" width=\"560\" height=\"343\" srcset=\"https:\/\/i0.wp.com\/www.recantha.co.uk\/blog\/wp-content\/uploads\/2023\/08\/PXL_20230820_075459673-1_sm.jpg?w=1200&amp;ssl=1 1200w, https:\/\/i0.wp.com\/www.recantha.co.uk\/blog\/wp-content\/uploads\/2023\/08\/PXL_20230820_075459673-1_sm.jpg?resize=300%2C184&amp;ssl=1 300w, https:\/\/i0.wp.com\/www.recantha.co.uk\/blog\/wp-content\/uploads\/2023\/08\/PXL_20230820_075459673-1_sm.jpg?resize=1024%2C628&amp;ssl=1 1024w, https:\/\/i0.wp.com\/www.recantha.co.uk\/blog\/wp-content\/uploads\/2023\/08\/PXL_20230820_075459673-1_sm.jpg?resize=768%2C471&amp;ssl=1 768w, https:\/\/i0.wp.com\/www.recantha.co.uk\/blog\/wp-content\/uploads\/2023\/08\/PXL_20230820_075459673-1_sm.jpg?resize=560%2C343&amp;ssl=1 560w, https:\/\/i0.wp.com\/www.recantha.co.uk\/blog\/wp-content\/uploads\/2023\/08\/PXL_20230820_075459673-1_sm.jpg?resize=260%2C159&amp;ssl=1 260w, https:\/\/i0.wp.com\/www.recantha.co.uk\/blog\/wp-content\/uploads\/2023\/08\/PXL_20230820_075459673-1_sm.jpg?resize=160%2C98&amp;ssl=1 160w, https:\/\/i0.wp.com\/www.recantha.co.uk\/blog\/wp-content\/uploads\/2023\/08\/PXL_20230820_075459673-1_sm.jpg?w=1120&amp;ssl=1 1120w\" sizes=\"auto, (max-width: 560px) 100vw, 560px\" \/><\/p>\n<p>I programmed the full code at this point, but more on that later.<\/p>\n<p>The final thing to do was to assemble everything into a nice, near package. Out came the trusty glue gun. First of all, I glued the LiPo Amigo Pro to the bottom of the battery with the USB-C port on the end. Then, I glued everything else together as you can see below:<\/p>\n<p><img data-recalc-dims=\"1\" loading=\"lazy\" decoding=\"async\" class=\"alignnone size-full wp-image-21649\" src=\"https:\/\/i0.wp.com\/www.recantha.co.uk\/blog\/wp-content\/uploads\/2023\/08\/Assembled-1.jpg?resize=560%2C262&#038;ssl=1\" alt=\"\" width=\"560\" height=\"262\" srcset=\"https:\/\/i0.wp.com\/www.recantha.co.uk\/blog\/wp-content\/uploads\/2023\/08\/Assembled-1.jpg?w=600&amp;ssl=1 600w, https:\/\/i0.wp.com\/www.recantha.co.uk\/blog\/wp-content\/uploads\/2023\/08\/Assembled-1.jpg?resize=300%2C141&amp;ssl=1 300w, https:\/\/i0.wp.com\/www.recantha.co.uk\/blog\/wp-content\/uploads\/2023\/08\/Assembled-1.jpg?resize=560%2C262&amp;ssl=1 560w, https:\/\/i0.wp.com\/www.recantha.co.uk\/blog\/wp-content\/uploads\/2023\/08\/Assembled-1.jpg?resize=260%2C122&amp;ssl=1 260w, https:\/\/i0.wp.com\/www.recantha.co.uk\/blog\/wp-content\/uploads\/2023\/08\/Assembled-1.jpg?resize=160%2C75&amp;ssl=1 160w\" sizes=\"auto, (max-width: 560px) 100vw, 560px\" \/> <img data-recalc-dims=\"1\" loading=\"lazy\" decoding=\"async\" class=\"alignnone size-full wp-image-21650\" src=\"https:\/\/i0.wp.com\/www.recantha.co.uk\/blog\/wp-content\/uploads\/2023\/08\/Assembled-4.jpg?resize=560%2C258&#038;ssl=1\" alt=\"\" width=\"560\" height=\"258\" srcset=\"https:\/\/i0.wp.com\/www.recantha.co.uk\/blog\/wp-content\/uploads\/2023\/08\/Assembled-4.jpg?w=600&amp;ssl=1 600w, https:\/\/i0.wp.com\/www.recantha.co.uk\/blog\/wp-content\/uploads\/2023\/08\/Assembled-4.jpg?resize=300%2C138&amp;ssl=1 300w, https:\/\/i0.wp.com\/www.recantha.co.uk\/blog\/wp-content\/uploads\/2023\/08\/Assembled-4.jpg?resize=560%2C258&amp;ssl=1 560w, https:\/\/i0.wp.com\/www.recantha.co.uk\/blog\/wp-content\/uploads\/2023\/08\/Assembled-4.jpg?resize=260%2C120&amp;ssl=1 260w, https:\/\/i0.wp.com\/www.recantha.co.uk\/blog\/wp-content\/uploads\/2023\/08\/Assembled-4.jpg?resize=160%2C74&amp;ssl=1 160w\" sizes=\"auto, (max-width: 560px) 100vw, 560px\" \/> <img data-recalc-dims=\"1\" loading=\"lazy\" decoding=\"async\" class=\"alignnone size-full wp-image-21651\" src=\"https:\/\/i0.wp.com\/www.recantha.co.uk\/blog\/wp-content\/uploads\/2023\/08\/Assembled-3.jpg?resize=560%2C1124&#038;ssl=1\" alt=\"\" width=\"560\" height=\"1124\" srcset=\"https:\/\/i0.wp.com\/www.recantha.co.uk\/blog\/wp-content\/uploads\/2023\/08\/Assembled-3.jpg?w=600&amp;ssl=1 600w, https:\/\/i0.wp.com\/www.recantha.co.uk\/blog\/wp-content\/uploads\/2023\/08\/Assembled-3.jpg?resize=150%2C300&amp;ssl=1 150w, https:\/\/i0.wp.com\/www.recantha.co.uk\/blog\/wp-content\/uploads\/2023\/08\/Assembled-3.jpg?resize=510%2C1024&amp;ssl=1 510w, https:\/\/i0.wp.com\/www.recantha.co.uk\/blog\/wp-content\/uploads\/2023\/08\/Assembled-3.jpg?resize=498%2C999&amp;ssl=1 498w, https:\/\/i0.wp.com\/www.recantha.co.uk\/blog\/wp-content\/uploads\/2023\/08\/Assembled-3.jpg?resize=260%2C522&amp;ssl=1 260w, https:\/\/i0.wp.com\/www.recantha.co.uk\/blog\/wp-content\/uploads\/2023\/08\/Assembled-3.jpg?resize=160%2C321&amp;ssl=1 160w\" sizes=\"auto, (max-width: 560px) 100vw, 560px\" \/> <img data-recalc-dims=\"1\" loading=\"lazy\" decoding=\"async\" class=\"alignnone size-full wp-image-21652\" src=\"https:\/\/i0.wp.com\/www.recantha.co.uk\/blog\/wp-content\/uploads\/2023\/08\/Assembled-2.jpg?resize=560%2C670&#038;ssl=1\" alt=\"\" width=\"560\" height=\"670\" srcset=\"https:\/\/i0.wp.com\/www.recantha.co.uk\/blog\/wp-content\/uploads\/2023\/08\/Assembled-2.jpg?w=600&amp;ssl=1 600w, https:\/\/i0.wp.com\/www.recantha.co.uk\/blog\/wp-content\/uploads\/2023\/08\/Assembled-2.jpg?resize=251%2C300&amp;ssl=1 251w, https:\/\/i0.wp.com\/www.recantha.co.uk\/blog\/wp-content\/uploads\/2023\/08\/Assembled-2.jpg?resize=560%2C670&amp;ssl=1 560w, https:\/\/i0.wp.com\/www.recantha.co.uk\/blog\/wp-content\/uploads\/2023\/08\/Assembled-2.jpg?resize=260%2C311&amp;ssl=1 260w, https:\/\/i0.wp.com\/www.recantha.co.uk\/blog\/wp-content\/uploads\/2023\/08\/Assembled-2.jpg?resize=160%2C191&amp;ssl=1 160w\" sizes=\"auto, (max-width: 560px) 100vw, 560px\" \/><\/p>\n<p>And, yes, I did clear the glue strands off afterwards!<\/p>\n<h2>The code<\/h2>\n<p>First things first: Thank you to whoever at Pimoroni (and I think it was Phil &#8220;Gadgetoid&#8221; Howard) who did the code for the Pico Display Pack and the BME280 sensor library. I stood heavily on the existing code, and I don&#8217;t mind admitting that!<\/p>\n<p>I programmed reading the BME280 sensor then fed the readings into the graphing function, slightly adapted to cope with the multiple sets of data. I also coded in a button handler so that I could switch between temperature, humidity and pressure. You can see the results in the demo video below.<\/p>\n<p><a href=\"https:\/\/github.com\/recantha\/pico_portable_temp_sensor\" target=\"_blank\" rel=\"noopener\">The actual code can be found on GitHub<\/a>. You&#8217;ll see it&#8217;s quite simple, but I&#8217;m new to MicroPython (I usually use CircuitPython) and it&#8217;s all I could manage. You see from the demo video that the graphing of the humidity and pressure isn&#8217;t quite right &#8211; it&#8217;s a maths problem and I haven&#8217;t got time to fix it at the moment. If you fancy giving me a hand, leave a comment or a pull request on GitHub! \ud83d\ude42<\/p>\n<p><em>Update &#8211; 22nd August 2023 &#8211; Have used <a href=\"https:\/\/core-electronics.com.au\/guides\/getting-started-with-mqtt-on-raspberry-pi-pico-w-connect-to-the-internet-of-things\/\" target=\"_blank\" rel=\"noopener\">this excellent tutorial from Core Electronics in Australia<\/a> to use MQTT message publishing and Adafruit IO to create pretty graphs out of the data feeds as you can see below! The code on GitHub is up-to-date. You just need to populate your own secrets.py file! Give me a shout if you get stuck with that bit!<\/em><\/p>\n<p><img data-recalc-dims=\"1\" loading=\"lazy\" decoding=\"async\" class=\"alignnone size-full wp-image-21658\" src=\"https:\/\/i0.wp.com\/www.recantha.co.uk\/blog\/wp-content\/uploads\/2023\/08\/adafruit_io_graph.jpg?resize=520%2C627&#038;ssl=1\" alt=\"\" width=\"520\" height=\"627\" srcset=\"https:\/\/i0.wp.com\/www.recantha.co.uk\/blog\/wp-content\/uploads\/2023\/08\/adafruit_io_graph.jpg?w=520&amp;ssl=1 520w, https:\/\/i0.wp.com\/www.recantha.co.uk\/blog\/wp-content\/uploads\/2023\/08\/adafruit_io_graph.jpg?resize=249%2C300&amp;ssl=1 249w, https:\/\/i0.wp.com\/www.recantha.co.uk\/blog\/wp-content\/uploads\/2023\/08\/adafruit_io_graph.jpg?resize=260%2C314&amp;ssl=1 260w, https:\/\/i0.wp.com\/www.recantha.co.uk\/blog\/wp-content\/uploads\/2023\/08\/adafruit_io_graph.jpg?resize=160%2C193&amp;ssl=1 160w\" sizes=\"auto, (max-width: 520px) 100vw, 520px\" \/><\/p>\n<h2>Demo video<\/h2>\n<p>Here&#8217;s a quick video I shot showing the different graphs so you can see the issues I had.<\/p>\n<p><span class=\"embed-youtube\" style=\"text-align:center; display: block;\"><iframe loading=\"lazy\" class=\"youtube-player\" width=\"560\" height=\"315\" src=\"https:\/\/www.youtube.com\/embed\/IHAvxIZTS2Y?version=3&#038;rel=1&#038;showsearch=0&#038;showinfo=1&#038;iv_load_policy=1&#038;fs=1&#038;hl=en-GB&#038;autohide=2&#038;wmode=transparent\" allowfullscreen=\"true\" style=\"border:0;\" sandbox=\"allow-scripts allow-same-origin allow-popups allow-presentation allow-popups-to-escape-sandbox\"><\/iframe><\/span><\/p>\n<h2>Conclusion<\/h2>\n<p>That&#8217;s all, folks! I enjoyed doing this project &#8211; it gave me something to do on a boring Saturday and Sunday morning. Further work is to hook up the Pico W to an IoT service (or even via MQTT to a local broker!) so I can remotely see the readings, but that&#8217;s a project for another day!<\/p>\n","protected":false},"excerpt":{"rendered":"<p>Hi everyone. It&#8217;s been a little while! I&#8217;ve been horribly busy with various things, including work, so it&#8217;s been difficult to keep up with blogging. I have been posting Pi stuff over on Twitter\/X (how I hate that new name!)&hellip;<\/p>\n<p class=\"more-link-p\"><a class=\"more-link\" href=\"https:\/\/www.recantha.co.uk\/blog\/?p=21637\">Read more &rarr;<\/a><\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"_jetpack_feature_clip_id":0,"_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":[50,972,62],"tags":[],"class_list":["post-21637","post","type-post","status-publish","format-standard","hentry","category-making","category-raspberry-pi-pico","category-sensors"],"yoast_head":"<!-- This site is optimized with the Yoast SEO plugin v28.3 - https:\/\/yoast.com\/product\/yoast-seo-wordpress\/ -->\n<title>Portable temperature, humidity and pressure sensor using a Raspberry Pi Pico W - 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=21637\" \/>\n<meta property=\"og:locale\" content=\"en_GB\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"Portable temperature, humidity and pressure sensor using a Raspberry Pi Pico W - Raspberry Pi Pod\" \/>\n<meta property=\"og:description\" content=\"Hi everyone. It&#8217;s been a little while! I&#8217;ve been horribly busy with various things, including work, so it&#8217;s been difficult to keep up with blogging. I have been posting Pi stuff over on Twitter\/X (how I hate that new name!)&hellip;Read more &rarr;\" \/>\n<meta property=\"og:url\" content=\"https:\/\/www.recantha.co.uk\/blog\/?p=21637\" \/>\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=\"2023-08-21T08:06:47+00:00\" \/>\n<meta property=\"article:modified_time\" content=\"2023-08-22T14:13:44+00:00\" \/>\n<meta property=\"og:image\" content=\"https:\/\/www.recantha.co.uk\/blog\/wp-content\/uploads\/2023\/08\/PXL_20230819_111355247_sm.jpg\" \/>\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=\"Estimated reading time\" \/>\n\t<meta name=\"twitter:data2\" content=\"8 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=21637#article\",\"isPartOf\":{\"@id\":\"https:\\\/\\\/www.recantha.co.uk\\\/blog\\\/?p=21637\"},\"author\":{\"name\":\"Michael Horne\",\"@id\":\"https:\\\/\\\/www.recantha.co.uk\\\/blog\\\/#\\\/schema\\\/person\\\/c27c4ef2ee1c18b130f1fcd5dcdbb263\"},\"headline\":\"Portable temperature, humidity and pressure sensor using a Raspberry Pi Pico W\",\"datePublished\":\"2023-08-21T08:06:47+00:00\",\"dateModified\":\"2023-08-22T14:13:44+00:00\",\"mainEntityOfPage\":{\"@id\":\"https:\\\/\\\/www.recantha.co.uk\\\/blog\\\/?p=21637\"},\"wordCount\":1205,\"commentCount\":6,\"publisher\":{\"@id\":\"https:\\\/\\\/www.recantha.co.uk\\\/blog\\\/#organization\"},\"image\":{\"@id\":\"https:\\\/\\\/www.recantha.co.uk\\\/blog\\\/?p=21637#primaryimage\"},\"thumbnailUrl\":\"https:\\\/\\\/www.recantha.co.uk\\\/blog\\\/wp-content\\\/uploads\\\/2023\\\/08\\\/PXL_20230819_111355247_sm.jpg\",\"articleSection\":[\"Making\",\"Raspberry Pi Pico\",\"Sensors\"],\"inLanguage\":\"en-GB\",\"potentialAction\":[{\"@type\":\"CommentAction\",\"name\":\"Comment\",\"target\":[\"https:\\\/\\\/www.recantha.co.uk\\\/blog\\\/?p=21637#respond\"]}]},{\"@type\":\"WebPage\",\"@id\":\"https:\\\/\\\/www.recantha.co.uk\\\/blog\\\/?p=21637\",\"url\":\"https:\\\/\\\/www.recantha.co.uk\\\/blog\\\/?p=21637\",\"name\":\"Portable temperature, humidity and pressure sensor using a Raspberry Pi Pico W - Raspberry Pi Pod\",\"isPartOf\":{\"@id\":\"https:\\\/\\\/www.recantha.co.uk\\\/blog\\\/#website\"},\"primaryImageOfPage\":{\"@id\":\"https:\\\/\\\/www.recantha.co.uk\\\/blog\\\/?p=21637#primaryimage\"},\"image\":{\"@id\":\"https:\\\/\\\/www.recantha.co.uk\\\/blog\\\/?p=21637#primaryimage\"},\"thumbnailUrl\":\"https:\\\/\\\/www.recantha.co.uk\\\/blog\\\/wp-content\\\/uploads\\\/2023\\\/08\\\/PXL_20230819_111355247_sm.jpg\",\"datePublished\":\"2023-08-21T08:06:47+00:00\",\"dateModified\":\"2023-08-22T14:13:44+00:00\",\"breadcrumb\":{\"@id\":\"https:\\\/\\\/www.recantha.co.uk\\\/blog\\\/?p=21637#breadcrumb\"},\"inLanguage\":\"en-GB\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\\\/\\\/www.recantha.co.uk\\\/blog\\\/?p=21637\"]}]},{\"@type\":\"ImageObject\",\"inLanguage\":\"en-GB\",\"@id\":\"https:\\\/\\\/www.recantha.co.uk\\\/blog\\\/?p=21637#primaryimage\",\"url\":\"https:\\\/\\\/i0.wp.com\\\/www.recantha.co.uk\\\/blog\\\/wp-content\\\/uploads\\\/2023\\\/08\\\/PXL_20230819_111355247_sm.jpg?fit=1200%2C904&ssl=1\",\"contentUrl\":\"https:\\\/\\\/i0.wp.com\\\/www.recantha.co.uk\\\/blog\\\/wp-content\\\/uploads\\\/2023\\\/08\\\/PXL_20230819_111355247_sm.jpg?fit=1200%2C904&ssl=1\",\"width\":1200,\"height\":904,\"caption\":\"Components for this Raspberry Pi project\"},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\\\/\\\/www.recantha.co.uk\\\/blog\\\/?p=21637#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"Home\",\"item\":\"https:\\\/\\\/www.recantha.co.uk\\\/blog\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"Portable temperature, humidity and pressure sensor using a Raspberry Pi Pico W\"}]},{\"@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 computers and microcontrollers\",\"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-GB\"},{\"@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-GB\",\"@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-GB\",\"@id\":\"https:\\\/\\\/secure.gravatar.com\\\/avatar\\\/479778b0677caadde0ceb54c4129804ef674914607e3ed0998808148357d10d8?s=96&d=mm&r=g\",\"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":"Portable temperature, humidity and pressure sensor using a Raspberry Pi Pico W - 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=21637","og_locale":"en_GB","og_type":"article","og_title":"Portable temperature, humidity and pressure sensor using a Raspberry Pi Pico W - Raspberry Pi Pod","og_description":"Hi everyone. It&#8217;s been a little while! I&#8217;ve been horribly busy with various things, including work, so it&#8217;s been difficult to keep up with blogging. I have been posting Pi stuff over on Twitter\/X (how I hate that new name!)&hellip;Read more &rarr;","og_url":"https:\/\/www.recantha.co.uk\/blog\/?p=21637","og_site_name":"Raspberry Pi Pod","article_publisher":"https:\/\/www.facebook.com\/recantha\/","article_published_time":"2023-08-21T08:06:47+00:00","article_modified_time":"2023-08-22T14:13:44+00:00","og_image":[{"url":"https:\/\/www.recantha.co.uk\/blog\/wp-content\/uploads\/2023\/08\/PXL_20230819_111355247_sm.jpg","type":"","width":"","height":""}],"author":"Michael Horne","twitter_card":"summary_large_image","twitter_creator":"@recantha","twitter_site":"@recantha","twitter_misc":{"Written by":"Michael Horne","Estimated reading time":"8 minutes"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"Article","@id":"https:\/\/www.recantha.co.uk\/blog\/?p=21637#article","isPartOf":{"@id":"https:\/\/www.recantha.co.uk\/blog\/?p=21637"},"author":{"name":"Michael Horne","@id":"https:\/\/www.recantha.co.uk\/blog\/#\/schema\/person\/c27c4ef2ee1c18b130f1fcd5dcdbb263"},"headline":"Portable temperature, humidity and pressure sensor using a Raspberry Pi Pico W","datePublished":"2023-08-21T08:06:47+00:00","dateModified":"2023-08-22T14:13:44+00:00","mainEntityOfPage":{"@id":"https:\/\/www.recantha.co.uk\/blog\/?p=21637"},"wordCount":1205,"commentCount":6,"publisher":{"@id":"https:\/\/www.recantha.co.uk\/blog\/#organization"},"image":{"@id":"https:\/\/www.recantha.co.uk\/blog\/?p=21637#primaryimage"},"thumbnailUrl":"https:\/\/www.recantha.co.uk\/blog\/wp-content\/uploads\/2023\/08\/PXL_20230819_111355247_sm.jpg","articleSection":["Making","Raspberry Pi Pico","Sensors"],"inLanguage":"en-GB","potentialAction":[{"@type":"CommentAction","name":"Comment","target":["https:\/\/www.recantha.co.uk\/blog\/?p=21637#respond"]}]},{"@type":"WebPage","@id":"https:\/\/www.recantha.co.uk\/blog\/?p=21637","url":"https:\/\/www.recantha.co.uk\/blog\/?p=21637","name":"Portable temperature, humidity and pressure sensor using a Raspberry Pi Pico W - Raspberry Pi Pod","isPartOf":{"@id":"https:\/\/www.recantha.co.uk\/blog\/#website"},"primaryImageOfPage":{"@id":"https:\/\/www.recantha.co.uk\/blog\/?p=21637#primaryimage"},"image":{"@id":"https:\/\/www.recantha.co.uk\/blog\/?p=21637#primaryimage"},"thumbnailUrl":"https:\/\/www.recantha.co.uk\/blog\/wp-content\/uploads\/2023\/08\/PXL_20230819_111355247_sm.jpg","datePublished":"2023-08-21T08:06:47+00:00","dateModified":"2023-08-22T14:13:44+00:00","breadcrumb":{"@id":"https:\/\/www.recantha.co.uk\/blog\/?p=21637#breadcrumb"},"inLanguage":"en-GB","potentialAction":[{"@type":"ReadAction","target":["https:\/\/www.recantha.co.uk\/blog\/?p=21637"]}]},{"@type":"ImageObject","inLanguage":"en-GB","@id":"https:\/\/www.recantha.co.uk\/blog\/?p=21637#primaryimage","url":"https:\/\/i0.wp.com\/www.recantha.co.uk\/blog\/wp-content\/uploads\/2023\/08\/PXL_20230819_111355247_sm.jpg?fit=1200%2C904&ssl=1","contentUrl":"https:\/\/i0.wp.com\/www.recantha.co.uk\/blog\/wp-content\/uploads\/2023\/08\/PXL_20230819_111355247_sm.jpg?fit=1200%2C904&ssl=1","width":1200,"height":904,"caption":"Components for this Raspberry Pi project"},{"@type":"BreadcrumbList","@id":"https:\/\/www.recantha.co.uk\/blog\/?p=21637#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"Home","item":"https:\/\/www.recantha.co.uk\/blog"},{"@type":"ListItem","position":2,"name":"Portable temperature, humidity and pressure sensor using a Raspberry Pi Pico W"}]},{"@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 computers and microcontrollers","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-GB"},{"@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-GB","@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-GB","@id":"https:\/\/secure.gravatar.com\/avatar\/479778b0677caadde0ceb54c4129804ef674914607e3ed0998808148357d10d8?s=96&d=mm&r=g","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_sharing_enabled":true,"jetpack_shortlink":"https:\/\/wp.me\/p2RsaV-5CZ","jetpack-related-posts":[{"id":21020,"url":"https:\/\/www.recantha.co.uk\/blog\/?p=21020","url_meta":{"origin":21637,"position":0},"title":"Guest post &#8211; Building a custom Raspberry Pi Pico-powered WiFi temperature sensor using MQTT and CircuitPython","author":"David Booth","date":"23 April 2021","format":false,"excerpt":"David Booth is here with another guest post. This time a custom temperature sensor using a Raspberry Pi Pico and a self-designed PCB. Overview A custom, low power temperature sensor powered by a Raspberry Pi Pico with an LCD display and WiFi connectivity for integration into an MQTT home automation\u2026","rel":"","context":"In &quot;Making&quot;","block_context":{"text":"Making","link":"https:\/\/www.recantha.co.uk\/blog\/?cat=50"},"img":{"alt_text":"","src":"https:\/\/i0.wp.com\/www.recantha.co.uk\/blog\/wp-content\/uploads\/2021\/04\/fully_populated_sm.jpg?fit=1200%2C568&ssl=1&resize=350%2C200","width":350,"height":200,"srcset":"https:\/\/i0.wp.com\/www.recantha.co.uk\/blog\/wp-content\/uploads\/2021\/04\/fully_populated_sm.jpg?fit=1200%2C568&ssl=1&resize=350%2C200 1x, https:\/\/i0.wp.com\/www.recantha.co.uk\/blog\/wp-content\/uploads\/2021\/04\/fully_populated_sm.jpg?fit=1200%2C568&ssl=1&resize=525%2C300 1.5x, https:\/\/i0.wp.com\/www.recantha.co.uk\/blog\/wp-content\/uploads\/2021\/04\/fully_populated_sm.jpg?fit=1200%2C568&ssl=1&resize=700%2C400 2x, https:\/\/i0.wp.com\/www.recantha.co.uk\/blog\/wp-content\/uploads\/2021\/04\/fully_populated_sm.jpg?fit=1200%2C568&ssl=1&resize=1050%2C600 3x"},"classes":[]},{"id":20825,"url":"https:\/\/www.recantha.co.uk\/blog\/?p=20825","url_meta":{"origin":21637,"position":1},"title":"Create a soil moisture sensor with a Raspberry Pi Pico and an LED ring","author":"Michael Horne","date":"9 February 2021","format":false,"excerpt":"Andy Warburton has blogged this great project with the Raspberry Pi Pico. He has used a SparkFun Soil Moisture sensor to detect moisture levels inside a plant pot. This is then wired up to the Pico, using one of the analog inputs to take the readings. The readings are then\u2026","rel":"","context":"In &quot;Making&quot;","block_context":{"text":"Making","link":"https:\/\/www.recantha.co.uk\/blog\/?cat=50"},"img":{"alt_text":"","src":"https:\/\/i0.wp.com\/www.recantha.co.uk\/blog\/wp-content\/uploads\/2021\/02\/IMG_2475.jpg?fit=1000%2C750&ssl=1&resize=350%2C200","width":350,"height":200,"srcset":"https:\/\/i0.wp.com\/www.recantha.co.uk\/blog\/wp-content\/uploads\/2021\/02\/IMG_2475.jpg?fit=1000%2C750&ssl=1&resize=350%2C200 1x, https:\/\/i0.wp.com\/www.recantha.co.uk\/blog\/wp-content\/uploads\/2021\/02\/IMG_2475.jpg?fit=1000%2C750&ssl=1&resize=525%2C300 1.5x, https:\/\/i0.wp.com\/www.recantha.co.uk\/blog\/wp-content\/uploads\/2021\/02\/IMG_2475.jpg?fit=1000%2C750&ssl=1&resize=700%2C400 2x"},"classes":[]},{"id":21388,"url":"https:\/\/www.recantha.co.uk\/blog\/?p=21388","url_meta":{"origin":21637,"position":2},"title":"Raspberry Pi Pico W launched &#8211; build your Internet of Things projects much easier!","author":"Michael Horne","date":"30 June 2022","format":false,"excerpt":"Raspberry Pi has today launched the Raspberry Pi Pico W (see the official announcement here). This uses the same RP2040 chip as the regular Pico but has wi-fi built into it! This is going to get eaten up by the Internet of Things crowd and, at $6 (\u00a36 ish), it\u2026","rel":"","context":"In &quot;Announcements&quot;","block_context":{"text":"Announcements","link":"https:\/\/www.recantha.co.uk\/blog\/?cat=952"},"img":{"alt_text":"","src":"https:\/\/i0.wp.com\/www.recantha.co.uk\/blog\/wp-content\/uploads\/2022\/06\/Copy-of-PICO-W-HERO-800x533-1.jpg?fit=800%2C533&ssl=1&resize=350%2C200","width":350,"height":200,"srcset":"https:\/\/i0.wp.com\/www.recantha.co.uk\/blog\/wp-content\/uploads\/2022\/06\/Copy-of-PICO-W-HERO-800x533-1.jpg?fit=800%2C533&ssl=1&resize=350%2C200 1x, https:\/\/i0.wp.com\/www.recantha.co.uk\/blog\/wp-content\/uploads\/2022\/06\/Copy-of-PICO-W-HERO-800x533-1.jpg?fit=800%2C533&ssl=1&resize=525%2C300 1.5x, https:\/\/i0.wp.com\/www.recantha.co.uk\/blog\/wp-content\/uploads\/2022\/06\/Copy-of-PICO-W-HERO-800x533-1.jpg?fit=800%2C533&ssl=1&resize=700%2C400 2x"},"classes":[]},{"id":20959,"url":"https:\/\/www.recantha.co.uk\/blog\/?p=20959","url_meta":{"origin":21637,"position":3},"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":21075,"url":"https:\/\/www.recantha.co.uk\/blog\/?p=21075","url_meta":{"origin":21637,"position":4},"title":"Raspberry Pi Digest &#8211; 10th June 2021 &#8211; a different way of blogging!","author":"Michael Horne","date":"10 June 2021","format":false,"excerpt":"I'm trying something new out - a sort-of digest of Pi-related things I've found this week. Let me know what you think of the idea of these combined posts in the comments! :-) Air quality lamp Guillaume Slizewicz has created a Raspberry Pi Zero W-driven lamp that lets you know\u2026","rel":"","context":"In &quot;Art&quot;","block_context":{"text":"Art","link":"https:\/\/www.recantha.co.uk\/blog\/?cat=56"},"img":{"alt_text":"","src":"https:\/\/i0.wp.com\/www.recantha.co.uk\/blog\/wp-content\/uploads\/2021\/06\/bopit.jpg?resize=350%2C200&ssl=1","width":350,"height":200,"srcset":"https:\/\/i0.wp.com\/www.recantha.co.uk\/blog\/wp-content\/uploads\/2021\/06\/bopit.jpg?resize=350%2C200&ssl=1 1x, https:\/\/i0.wp.com\/www.recantha.co.uk\/blog\/wp-content\/uploads\/2021\/06\/bopit.jpg?resize=525%2C300&ssl=1 1.5x, https:\/\/i0.wp.com\/www.recantha.co.uk\/blog\/wp-content\/uploads\/2021\/06\/bopit.jpg?resize=700%2C400&ssl=1 2x, https:\/\/i0.wp.com\/www.recantha.co.uk\/blog\/wp-content\/uploads\/2021\/06\/bopit.jpg?resize=1050%2C600&ssl=1 3x, https:\/\/i0.wp.com\/www.recantha.co.uk\/blog\/wp-content\/uploads\/2021\/06\/bopit.jpg?resize=1400%2C800&ssl=1 4x"},"classes":[]},{"id":21005,"url":"https:\/\/www.recantha.co.uk\/blog\/?p=21005","url_meta":{"origin":21637,"position":5},"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":[]}],"jetpack_featured_media_url":"","_links":{"self":[{"href":"https:\/\/www.recantha.co.uk\/blog\/index.php?rest_route=\/wp\/v2\/posts\/21637","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=21637"}],"version-history":[{"count":7,"href":"https:\/\/www.recantha.co.uk\/blog\/index.php?rest_route=\/wp\/v2\/posts\/21637\/revisions"}],"predecessor-version":[{"id":21660,"href":"https:\/\/www.recantha.co.uk\/blog\/index.php?rest_route=\/wp\/v2\/posts\/21637\/revisions\/21660"}],"wp:attachment":[{"href":"https:\/\/www.recantha.co.uk\/blog\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=21637"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.recantha.co.uk\/blog\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=21637"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.recantha.co.uk\/blog\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=21637"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}