{"id":18646,"date":"2018-03-26T14:58:07","date_gmt":"2018-03-26T13:58:07","guid":{"rendered":"http:\/\/www.recantha.co.uk\/blog\/?p=18646"},"modified":"2018-03-27T16:12:28","modified_gmt":"2018-03-27T15:12:28","slug":"palmpi-yet-another-handheld-raspberry-pi-device","status":"publish","type":"post","link":"https:\/\/www.recantha.co.uk\/blog\/?p=18646","title":{"rendered":"palmPi &#8211; (yet another) handheld Raspberry Pi device"},"content":{"rendered":"<p><a href=\"https:\/\/i0.wp.com\/www.recantha.co.uk\/blog\/wp-content\/uploads\/2018\/03\/palmPi-whole.jpg?ssl=1\"><img data-recalc-dims=\"1\" loading=\"lazy\" decoding=\"async\" class=\"alignnone size-full wp-image-18647\" src=\"https:\/\/i0.wp.com\/www.recantha.co.uk\/blog\/wp-content\/uploads\/2018\/03\/palmPi-whole.jpg?resize=560%2C656&#038;ssl=1\" alt=\"\" width=\"560\" height=\"656\" srcset=\"https:\/\/i0.wp.com\/www.recantha.co.uk\/blog\/wp-content\/uploads\/2018\/03\/palmPi-whole.jpg?w=2414&amp;ssl=1 2414w, https:\/\/i0.wp.com\/www.recantha.co.uk\/blog\/wp-content\/uploads\/2018\/03\/palmPi-whole.jpg?resize=256%2C300&amp;ssl=1 256w, https:\/\/i0.wp.com\/www.recantha.co.uk\/blog\/wp-content\/uploads\/2018\/03\/palmPi-whole.jpg?resize=768%2C900&amp;ssl=1 768w, https:\/\/i0.wp.com\/www.recantha.co.uk\/blog\/wp-content\/uploads\/2018\/03\/palmPi-whole.jpg?resize=874%2C1024&amp;ssl=1 874w, https:\/\/i0.wp.com\/www.recantha.co.uk\/blog\/wp-content\/uploads\/2018\/03\/palmPi-whole.jpg?resize=560%2C656&amp;ssl=1 560w, https:\/\/i0.wp.com\/www.recantha.co.uk\/blog\/wp-content\/uploads\/2018\/03\/palmPi-whole.jpg?resize=260%2C305&amp;ssl=1 260w, https:\/\/i0.wp.com\/www.recantha.co.uk\/blog\/wp-content\/uploads\/2018\/03\/palmPi-whole.jpg?resize=160%2C188&amp;ssl=1 160w, https:\/\/i0.wp.com\/www.recantha.co.uk\/blog\/wp-content\/uploads\/2018\/03\/palmPi-whole.jpg?w=1120&amp;ssl=1 1120w, https:\/\/i0.wp.com\/www.recantha.co.uk\/blog\/wp-content\/uploads\/2018\/03\/palmPi-whole.jpg?w=1680&amp;ssl=1 1680w\" sizes=\"auto, (max-width: 560px) 100vw, 560px\" \/><\/a><\/p>\n<p>I recently posted <a href=\"https:\/\/www.recantha.co.uk\/blog\/?p=18467\">a tutorial on using an HD44780 LCD (with I2C backpack) with the Raspberry Pi<\/a>. I mentioned at the time that I had also been looking at small enclosures for the Pi in the hope of making <em>something<\/em>. Well, in a few hours of spare time I had in between bouts of <a href=\"https:\/\/piwars.org\" target=\"_blank\" rel=\"noopener\"><strong>Pi Wars<\/strong><\/a>\u00a0admin, I dug out my soldering iron, rotary tool and various other oddments and made something I&#8217;m calling <strong>palmPi<\/strong>.<\/p>\n<h2>Bill of materials<\/h2>\n<ul>\n<li>1 x <a href=\"https:\/\/thepihut.com\/collections\/raspberry-pi-zero\/products\/raspberry-pi-zero-w\" target=\"_blank\" rel=\"noopener\">Raspberry Pi Zero W<\/a><br \/>\n<em>I wanted the Pi to be able to connect to wifi and display it&#8217;s IP address so I could ssh into it to alter the code<\/em><\/li>\n<li>1 x <a href=\"https:\/\/www.ebay.co.uk\/itm\/262983388221\" target=\"_blank\" rel=\"noopener\">HD44780 LCD with I2C backpack<\/a><br \/>\n<em>I&#8217;d already done the work to figure out how to use it, so it made sense to use one of these.<\/em><\/li>\n<li>1 x <a href=\"https:\/\/www.ebay.co.uk\/itm\/BMP280-I2C-Digital-Barometric-Pressure-Sensor-Board-Module-like-BMP180-UK-FAST\/401106711368?epid=1343928429&amp;hash=item5d63d2b348:g:F1AAAOSwKfVXEh9w\" target=\"_blank\" rel=\"noopener\">BMP280 sensor<\/a><br \/>\n<em>This has a temperature sensor and a pressure sensor on-board<\/em><\/li>\n<li>1 x\u00a0<a href=\"https:\/\/www.ebay.co.uk\/itm\/ADS1115-ADS1015-12-bit-Conversion-Module-Subminiature-Precise-Development\/272949345751\" target=\"_blank\" rel=\"noopener\">ADS1115\/1015 I2C analog-to-digital converter board<\/a><br \/>\n<em>I don&#8217;t know why, but I just love using analog sensors. I thought about adding other sensors but I ran out of space inside the case<\/em><\/li>\n<li>1 x <a href=\"https:\/\/www.ebay.co.uk\/itm\/TMP36-TMP36GT9-TMP36GT9Z-TO92-Temperature-Sensor-1-3-5-PCS\/162798480996\" target=\"_blank\" rel=\"noopener\">TMP36 (analog) temperature sensor<\/a><br \/>\n<em>Cheap-as-chips sensor, very small<\/em><\/li>\n<li>1 x <a href=\"https:\/\/www.rapidonline.com\/rapid-g1168g-hand-held-enclosure-sloped-grey-150x95x49-5mm-30-4021\" target=\"_blank\" rel=\"noopener\">ABS enclosure from Rapid Electronics<\/a><br \/>\n<em>These are blummin&#8217; lovely enclosures from Rapid &#8211; they fit in the hand nicely and are very sturdy<\/em><\/li>\n<li>1 x <a href=\"https:\/\/thepihut.com\/products\/adafruit-16mm-illuminated-pushbutton-red-momentary\" target=\"_blank\" rel=\"noopener\">red illuminated, momentary push button<\/a><br \/>\n<em>Because everyone loves a good LED \ud83d\ude42<\/em><\/li>\n<li>1 x toggle switch (any one with two pins will do, <a href=\"https:\/\/www.ebay.co.uk\/itm\/5Pcs-SPST-2Pin-Heavy-Duty-15A-250V-ON-OFF-Rocker-Toggle-Switch-Waterproof-Boot\/142405380046\" target=\"_blank\" rel=\"noopener\">these are quite nice<\/a>, but I went for something smaller but can&#8217;t remember where I got it!)<br \/>\n<em>I needed something to hard-cut the power. I had these knocking around and had previously used one in <a href=\"https:\/\/github.com\/recantha\/handheldpi\" target=\"_blank\" rel=\"noopener\">another handheld device<\/a>.<\/em><\/li>\n<li>1 x <a href=\"https:\/\/thepihut.com\/products\/adafruit-perma-proto-hat-for-pi-mini-kit-no-eeprom\" target=\"_blank\" rel=\"noopener\">Adafruit perma-proto HAT board<\/a>\u00a0(other prototyping boards are available, but this was just what I had to hand!)<br \/>\n<em>These perma-proto boards are terrific for creating something HAT-like and have handy power rails and GPIO breakout pins<\/em><\/li>\n<li>1 x <a href=\"https:\/\/thepihut.com\/products\/adafruit-powerboost-1000-charger-rechargeable-5v-lipo-usb-boost-1a-1000c\" target=\"_blank\" rel=\"noopener\">Adafruit PowerBoost 1000C<\/a><br \/>\n<em>This is an impressive piece of kit. It can draw power from a LiPo and also re-charge it as it has a microUSB port built in<\/em><\/li>\n<li>1 x <a href=\"https:\/\/shop.pimoroni.com\/products\/lipo-battery-pack\" target=\"_blank\" rel=\"noopener\">2000mAh 3.7V LiPo batter<\/a>y<br \/>\n<em>These are as safe as you can get when it comes to LiPos. They are also very\u00a0<span style=\"text-decoration: underline;\">flat<\/span> which means they&#8217;re ideal for stacking beneath things in tight spaces<\/em><\/li>\n<li>1 x <a href=\"https:\/\/shop.pimoroni.com\/products\/adafruit-micro-lipo-w-microusb-jack-usb-liion-lipoly-charger\" target=\"_blank\" rel=\"noopener\">Adafruit Micro LiPo charger<\/a><br \/>\n<em>I wanted to pre-charge the battery so grabbed one of these<\/em><\/li>\n<li><a href=\"https:\/\/www.ebay.co.uk\/itm\/Heat-Shrink-0-6mm-25-4mm-2-1-3-1-Various-Colours-Tubing-Tube-Sleeving\/231531088723\" target=\"_blank\" rel=\"noopener\">Narrow-gauge heat-shrink tubing<\/a><br \/>\n<em>Just to give some of the connections a bit of extra security<\/em><\/li>\n<li>Various coloured wires to hook everything up<\/li>\n<\/ul>\n<h2>Tools used<\/h2>\n<ul>\n<li><a href=\"http:\/\/cpc.farnell.com\/tenma\/21-10115-uk\/soldering-station-digital-esd\/dp\/SD01738\" target=\"_blank\" rel=\"noopener\">Soldering iron<\/a>\u00a0(the link is the one I actually used), solder, wire sponge, the usual.<\/li>\n<li><a href=\"https:\/\/www.amazon.co.uk\/s\/ref=nb_sb_noss_2?url=search-alias%3Daps&amp;field-keywords=rotary+tool\" target=\"_blank\" rel=\"noopener\">Rotary tool (Dremel or other type)<\/a><\/li>\n<li>Screwdriver (because the ABS case screws together)<\/li>\n<li><a href=\"https:\/\/thepihut.com\/products\/high-precision-diagonal-micro-cutters\" target=\"_blank\" rel=\"noopener\">Side cutters<\/a>\u00a0(okay, okay, I used a sharp pair of scissors, but I looked for my cutters and couldn&#8217;t find them!)<\/li>\n<li><a href=\"https:\/\/thepihut.com\/products\/adafruit-multi-size-wire-stripper-cutter-5023\" target=\"_blank\" rel=\"noopener\">Wire strippers\/cutters<\/a><\/li>\n<\/ul>\n<h2>Construction &#8211; Hardware<\/h2>\n<h3>Preparation<\/h3>\n<p>First of all, I soldered a 40-pin male header onto the Raspberry Pi Zero W and a female header onto the perma proto board. This means I could connect the proto board to the Pi Zero. I\u00a0<strong>could<\/strong> have soldered everything together permanently first of all, but I wanted to use a Raspberry Pi 3 to do the installs and programming on to start with as it&#8217;s a lot quicker than the Pi Zero. I also (very loosely) placed all the components inside the case to make sure they&#8217;d fit in the space.<\/p>\n<h3>LCD<\/h3>\n<p>The first thing I did was to make sure that I could get some output on the screen. I used <a href=\"https:\/\/www.recantha.co.uk\/blog\/?p=18467\">my own tutorial for the HD44780<\/a>\u00a0and wired up jumper cables to the pins, bending them down slightly to get the right angle.<\/p>\n<p><a href=\"https:\/\/i0.wp.com\/www.recantha.co.uk\/blog\/wp-content\/uploads\/2018\/03\/palmPi-lcd-back.jpg?ssl=1\"><img data-recalc-dims=\"1\" loading=\"lazy\" decoding=\"async\" class=\"alignnone size-full wp-image-18648\" src=\"https:\/\/i0.wp.com\/www.recantha.co.uk\/blog\/wp-content\/uploads\/2018\/03\/palmPi-lcd-back.jpg?resize=560%2C384&#038;ssl=1\" alt=\"\" width=\"560\" height=\"384\" srcset=\"https:\/\/i0.wp.com\/www.recantha.co.uk\/blog\/wp-content\/uploads\/2018\/03\/palmPi-lcd-back.jpg?w=3942&amp;ssl=1 3942w, https:\/\/i0.wp.com\/www.recantha.co.uk\/blog\/wp-content\/uploads\/2018\/03\/palmPi-lcd-back.jpg?resize=300%2C205&amp;ssl=1 300w, https:\/\/i0.wp.com\/www.recantha.co.uk\/blog\/wp-content\/uploads\/2018\/03\/palmPi-lcd-back.jpg?resize=768%2C526&amp;ssl=1 768w, https:\/\/i0.wp.com\/www.recantha.co.uk\/blog\/wp-content\/uploads\/2018\/03\/palmPi-lcd-back.jpg?resize=1024%2C701&amp;ssl=1 1024w, https:\/\/i0.wp.com\/www.recantha.co.uk\/blog\/wp-content\/uploads\/2018\/03\/palmPi-lcd-back.jpg?resize=560%2C384&amp;ssl=1 560w, https:\/\/i0.wp.com\/www.recantha.co.uk\/blog\/wp-content\/uploads\/2018\/03\/palmPi-lcd-back.jpg?resize=260%2C178&amp;ssl=1 260w, https:\/\/i0.wp.com\/www.recantha.co.uk\/blog\/wp-content\/uploads\/2018\/03\/palmPi-lcd-back.jpg?resize=160%2C110&amp;ssl=1 160w, https:\/\/i0.wp.com\/www.recantha.co.uk\/blog\/wp-content\/uploads\/2018\/03\/palmPi-lcd-back.jpg?w=1120&amp;ssl=1 1120w, https:\/\/i0.wp.com\/www.recantha.co.uk\/blog\/wp-content\/uploads\/2018\/03\/palmPi-lcd-back.jpg?w=1680&amp;ssl=1 1680w\" sizes=\"auto, (max-width: 560px) 100vw, 560px\" \/><\/a><\/p>\n<p>I managed to lose the little jumper that enabled the LCD back light (doh!) so I just plugged an extra F-F jumper cable in to connect the two pins. I cut the ends off and stripped the four main jumper wires and then <a href=\"http:\/\/www.instructables.com\/id\/Strip-and-Tin-Wires-Like-a-Pro\/\" target=\"_blank\" rel=\"noopener\">tinned the stranded ends<\/a>\u00a0to make them easier to work with. This requires a fair amount of skill because you don&#8217;t want to make them\u00a0<em>too<\/em> thick otherwise they won&#8217;t go through the proto board. Having established (by plugging directly into the Pi) that the screen worked, I soldered the LCD wires to the proto board so that it was more permanent. I hot-glued the screen into the pre-cut hole in the enclosure. It&#8217;s not perfect, but it will do for me. The alternative was to get Tim to laser-cut me something that would fit snuggly but what with Pi Wars, I didn&#8217;t want to add to his workload!<\/p>\n<h3>Button<\/h3>\n<p><a href=\"https:\/\/i0.wp.com\/www.recantha.co.uk\/blog\/wp-content\/uploads\/2018\/03\/button.jpg?ssl=1\"><img data-recalc-dims=\"1\" loading=\"lazy\" decoding=\"async\" class=\"alignright size-medium wp-image-18649\" src=\"https:\/\/i0.wp.com\/www.recantha.co.uk\/blog\/wp-content\/uploads\/2018\/03\/button.jpg?resize=300%2C225&#038;ssl=1\" alt=\"\" width=\"300\" height=\"225\" srcset=\"https:\/\/i0.wp.com\/www.recantha.co.uk\/blog\/wp-content\/uploads\/2018\/03\/button.jpg?resize=300%2C225&amp;ssl=1 300w, https:\/\/i0.wp.com\/www.recantha.co.uk\/blog\/wp-content\/uploads\/2018\/03\/button.jpg?resize=768%2C576&amp;ssl=1 768w, https:\/\/i0.wp.com\/www.recantha.co.uk\/blog\/wp-content\/uploads\/2018\/03\/button.jpg?resize=560%2C420&amp;ssl=1 560w, https:\/\/i0.wp.com\/www.recantha.co.uk\/blog\/wp-content\/uploads\/2018\/03\/button.jpg?resize=260%2C195&amp;ssl=1 260w, https:\/\/i0.wp.com\/www.recantha.co.uk\/blog\/wp-content\/uploads\/2018\/03\/button.jpg?resize=160%2C120&amp;ssl=1 160w, https:\/\/i0.wp.com\/www.recantha.co.uk\/blog\/wp-content\/uploads\/2018\/03\/button.jpg?w=970&amp;ssl=1 970w\" sizes=\"auto, (max-width: 300px) 100vw, 300px\" \/><\/a>I knew that, at the very least, I wanted a button to shutdown the Pi safely. I looked through my (large) collection of buttons and decided to use an illuminated button (obviously because I wanted the extra soldering practice..!)<\/p>\n<p>I soldered four wires to the bottom of the button and then heat-shrinked the terminals. I then soldered the wires onto the perma proto board &#8211; I used two GPIO pins, one for the LED so I could blink it and one to read the actual button press.\u00a0<em>Don&#8217;t do what I did and forget to put the washer back on beforehand otherwise you&#8217;ll have to do what I did and hot-glue the button in place!)\u00a0<\/em>At this point, I realised I should have soldered an inline resistor for the LED, but knew from past experience that it wasn&#8217;t the end of the world (he says, hoping that&#8217;s true). If you&#8217;re doing this yourself, use 220 ohms, or similar, on the ground lead.<\/p>\n<h3>On\/off switch<\/h3>\n<p><a href=\"https:\/\/i0.wp.com\/www.recantha.co.uk\/blog\/wp-content\/uploads\/2018\/03\/powerboost-1000c.jpg?ssl=1\"><img data-recalc-dims=\"1\" loading=\"lazy\" decoding=\"async\" class=\"alignleft size-medium wp-image-18650\" src=\"https:\/\/i0.wp.com\/www.recantha.co.uk\/blog\/wp-content\/uploads\/2018\/03\/powerboost-1000c.jpg?resize=300%2C231&#038;ssl=1\" alt=\"\" width=\"300\" height=\"231\" srcset=\"https:\/\/i0.wp.com\/www.recantha.co.uk\/blog\/wp-content\/uploads\/2018\/03\/powerboost-1000c.jpg?resize=300%2C231&amp;ssl=1 300w, https:\/\/i0.wp.com\/www.recantha.co.uk\/blog\/wp-content\/uploads\/2018\/03\/powerboost-1000c.jpg?resize=560%2C431&amp;ssl=1 560w, https:\/\/i0.wp.com\/www.recantha.co.uk\/blog\/wp-content\/uploads\/2018\/03\/powerboost-1000c.jpg?resize=260%2C200&amp;ssl=1 260w, https:\/\/i0.wp.com\/www.recantha.co.uk\/blog\/wp-content\/uploads\/2018\/03\/powerboost-1000c.jpg?resize=160%2C123&amp;ssl=1 160w, https:\/\/i0.wp.com\/www.recantha.co.uk\/blog\/wp-content\/uploads\/2018\/03\/powerboost-1000c.jpg?w=640&amp;ssl=1 640w\" sizes=\"auto, (max-width: 300px) 100vw, 300px\" \/><\/a>The whole project is run off a LiPo battery connected via a PowerBoost 1000C which is able to supply 5V at 1A, just enough for a Pi Zero W. One of the nice things about the 1000C is that it has pins that disconnect the battery entirely from your Pi and other hardware. You can <a href=\"https:\/\/learn.adafruit.com\/adafruit-powerboost-1000c-load-share-usb-charge-boost\/overview\" target=\"_blank\" rel=\"noopener\">read about all those pins over on the Adafruit site<\/a>. So, I soldered wires to the switch, heat-shrinked them and then soldered the other ends to the PowerBoost. The other nice thing is that the board has an LED status indicator that lights up if the output power is switched on. So, I was able to test out the switch independently of booting up the Pi. I then got the rotary tool out and drilled holes for the button and the switch. I&#8217;ve decided my rotary tool skills need&#8230; improving&#8230; There&#8217;s a bit of air around the illuminated button. Oops!<\/p>\n<h3>BMP280<\/h3>\n<p><a href=\"https:\/\/i0.wp.com\/www.recantha.co.uk\/blog\/wp-content\/uploads\/2018\/03\/bmp280.jpg?ssl=1\"><img data-recalc-dims=\"1\" loading=\"lazy\" decoding=\"async\" class=\"alignright size-thumbnail wp-image-18652\" src=\"https:\/\/i0.wp.com\/www.recantha.co.uk\/blog\/wp-content\/uploads\/2018\/03\/bmp280.jpg?resize=150%2C150&#038;ssl=1\" alt=\"\" width=\"150\" height=\"150\" srcset=\"https:\/\/i0.wp.com\/www.recantha.co.uk\/blog\/wp-content\/uploads\/2018\/03\/bmp280.jpg?resize=150%2C150&amp;ssl=1 150w, https:\/\/i0.wp.com\/www.recantha.co.uk\/blog\/wp-content\/uploads\/2018\/03\/bmp280.jpg?resize=160%2C160&amp;ssl=1 160w, https:\/\/i0.wp.com\/www.recantha.co.uk\/blog\/wp-content\/uploads\/2018\/03\/bmp280.jpg?w=225&amp;ssl=1 225w\" sizes=\"auto, (max-width: 150px) 100vw, 150px\" \/><\/a>The BMP280 is a nice little breakout board which lets you have the sensor output over I2C. Again, I soldered wires to the breakout board, drilled a hole with the rotary tool, passed them through and soldered them onto the perma proto. Taking the do-a-little, test-a-little approach, I made sure that the sensor was being picked up:<\/p>\n<pre>i2cdetect -y 1<\/pre>\n<p>&#8230;and that sensor readings were coming through to the Pi using code (of which more later).<\/p>\n<h3 style=\"clear: both;\">Analog<\/h3>\n<p><a href=\"https:\/\/i0.wp.com\/www.recantha.co.uk\/blog\/wp-content\/uploads\/2018\/03\/ads1115.jpg?ssl=1\"><img data-recalc-dims=\"1\" loading=\"lazy\" decoding=\"async\" class=\"size-medium wp-image-18653 alignleft\" src=\"https:\/\/i0.wp.com\/www.recantha.co.uk\/blog\/wp-content\/uploads\/2018\/03\/ads1115.jpg?resize=300%2C225&#038;ssl=1\" alt=\"\" width=\"300\" height=\"225\" srcset=\"https:\/\/i0.wp.com\/www.recantha.co.uk\/blog\/wp-content\/uploads\/2018\/03\/ads1115.jpg?resize=300%2C225&amp;ssl=1 300w, https:\/\/i0.wp.com\/www.recantha.co.uk\/blog\/wp-content\/uploads\/2018\/03\/ads1115.jpg?resize=768%2C576&amp;ssl=1 768w, https:\/\/i0.wp.com\/www.recantha.co.uk\/blog\/wp-content\/uploads\/2018\/03\/ads1115.jpg?resize=560%2C420&amp;ssl=1 560w, https:\/\/i0.wp.com\/www.recantha.co.uk\/blog\/wp-content\/uploads\/2018\/03\/ads1115.jpg?resize=260%2C195&amp;ssl=1 260w, https:\/\/i0.wp.com\/www.recantha.co.uk\/blog\/wp-content\/uploads\/2018\/03\/ads1115.jpg?resize=160%2C120&amp;ssl=1 160w, https:\/\/i0.wp.com\/www.recantha.co.uk\/blog\/wp-content\/uploads\/2018\/03\/ads1115.jpg?w=1000&amp;ssl=1 1000w\" sizes=\"auto, (max-width: 300px) 100vw, 300px\" \/><\/a>To read from the TMP36 sensor, I needed to add an analog-to-digital converter. I had some ADS1115\/1015 boards left over from another project and these give you four analog channels. I soldered the ADS directly onto the perma proto board using pass-through headers to save on vertical space inside the case.<\/p>\n<p>I then took the TMP36 sensor, looked up the pin-outs\u00a0<em>again<\/em>\u00a0(sigh) and soldered it to channel A0 on the perma proto board, 3v3 and GND.<\/p>\n<p>Once again, I checked to make sure I could read the output and then realised that I needed to work out the conversion from the ADS reading to the actual temperature. (Eurgh! Maths!) That nifty bit of manipulation was contained in a function:<\/p>\n<pre>adc = Adafruit_ADS1x15.ADS1015()\r\n\r\ndef read_internal_temperature():\r\n  ADC_GAIN = 2\r\n\u00a0 adc_reading = adc.read_adc(0, gain=ADC_GAIN)\r\n\u00a0 adc_mv = ((adc_reading * 2.048)\/2048) * 1000\r\n\r\n\u00a0 temp_c = (adc_mv - 500) \/ 10\r\n\u00a0 temp_f = (temp_c * 1.8) + 32\r\n\r\n\u00a0 return \"{:+.2f}\".format(temp_c), \"{:+.2f}\".format(temp_f)<\/pre>\n<h3>Power<\/h3>\n<p>As well as the on\/off switch enable pins, I also soldered the 5V and GND pins from the PowerBoost to the 5V and GND rails on the perma proto, thus powering the Pi from the battery. Up until then, I had powered the Pi (and everything else) from a normal PSU. The nice thing about the on\/off switch at this point is that you can hook the battery up, but leave it toggled off using the on\/off switch and still power the Pi and sensors etc from the mains. Always consider whether running off the battery is a good idea at any point &#8211; you don&#8217;t want the battery to run down and for the Pi to crash in the middle of editing your code! If you&#8217;re running a Pi 3 off one of these batteries, you will not only get under-power warnings but the battery won&#8217;t last for very long.<\/p>\n<p><em>I&#8217;ve just realised I forgot to wire up the low-battery-warning pin to a GPIO &#8211; I&#8217;ll take it apart later and do that!<\/em><\/p>\n<p>After getting everything soldered up and finished, I then rotary cut another hole in the case for a power cable and then hot-glued the PowerBoost to the case. I was quite chuffed &#8211; everything is attached to the top half of the case, meaning that I can take the bottom on and off without pulling any wires out! Here&#8217;s a picture of the PowerBoost (it&#8217;s that shadowed blue bit in the centre, at the bottom) in it&#8217;s final place beneath the main perma proto and the Pi Zero W.<\/p>\n<p><a href=\"https:\/\/i0.wp.com\/www.recantha.co.uk\/blog\/wp-content\/uploads\/2018\/03\/palmpi-hidden-power.jpg?ssl=1\"><img data-recalc-dims=\"1\" loading=\"lazy\" decoding=\"async\" class=\"alignnone size-full wp-image-18655\" src=\"https:\/\/i0.wp.com\/www.recantha.co.uk\/blog\/wp-content\/uploads\/2018\/03\/palmpi-hidden-power.jpg?resize=560%2C658&#038;ssl=1\" alt=\"\" width=\"560\" height=\"658\" srcset=\"https:\/\/i0.wp.com\/www.recantha.co.uk\/blog\/wp-content\/uploads\/2018\/03\/palmpi-hidden-power.jpg?w=2736&amp;ssl=1 2736w, https:\/\/i0.wp.com\/www.recantha.co.uk\/blog\/wp-content\/uploads\/2018\/03\/palmpi-hidden-power.jpg?resize=255%2C300&amp;ssl=1 255w, https:\/\/i0.wp.com\/www.recantha.co.uk\/blog\/wp-content\/uploads\/2018\/03\/palmpi-hidden-power.jpg?resize=768%2C903&amp;ssl=1 768w, https:\/\/i0.wp.com\/www.recantha.co.uk\/blog\/wp-content\/uploads\/2018\/03\/palmpi-hidden-power.jpg?resize=871%2C1024&amp;ssl=1 871w, https:\/\/i0.wp.com\/www.recantha.co.uk\/blog\/wp-content\/uploads\/2018\/03\/palmpi-hidden-power.jpg?resize=560%2C658&amp;ssl=1 560w, https:\/\/i0.wp.com\/www.recantha.co.uk\/blog\/wp-content\/uploads\/2018\/03\/palmpi-hidden-power.jpg?resize=260%2C306&amp;ssl=1 260w, https:\/\/i0.wp.com\/www.recantha.co.uk\/blog\/wp-content\/uploads\/2018\/03\/palmpi-hidden-power.jpg?resize=160%2C188&amp;ssl=1 160w, https:\/\/i0.wp.com\/www.recantha.co.uk\/blog\/wp-content\/uploads\/2018\/03\/palmpi-hidden-power.jpg?w=1120&amp;ssl=1 1120w, https:\/\/i0.wp.com\/www.recantha.co.uk\/blog\/wp-content\/uploads\/2018\/03\/palmpi-hidden-power.jpg?w=1680&amp;ssl=1 1680w\" sizes=\"auto, (max-width: 560px) 100vw, 560px\" \/><\/a><\/p>\n<p>And here is a final picture of the innards. The LCD is on the left and you can see the on\/off toggle switch at the bottom, the illuminated button at the top and then the perma proto (with hidden Pi Zero underneath) on the right. The bit of electrical tape on the proto is where I&#8217;ve temporarily attached the battery to the proto board for storage.<\/p>\n<p><a href=\"https:\/\/i0.wp.com\/www.recantha.co.uk\/blog\/wp-content\/uploads\/2018\/03\/palmpi-innards.jpg?ssl=1\"><img data-recalc-dims=\"1\" loading=\"lazy\" decoding=\"async\" class=\"alignnone size-full wp-image-18656\" src=\"https:\/\/i0.wp.com\/www.recantha.co.uk\/blog\/wp-content\/uploads\/2018\/03\/palmpi-innards.jpg?resize=560%2C364&#038;ssl=1\" alt=\"\" width=\"560\" height=\"364\" srcset=\"https:\/\/i0.wp.com\/www.recantha.co.uk\/blog\/wp-content\/uploads\/2018\/03\/palmpi-innards.jpg?w=3650&amp;ssl=1 3650w, https:\/\/i0.wp.com\/www.recantha.co.uk\/blog\/wp-content\/uploads\/2018\/03\/palmpi-innards.jpg?resize=300%2C195&amp;ssl=1 300w, https:\/\/i0.wp.com\/www.recantha.co.uk\/blog\/wp-content\/uploads\/2018\/03\/palmpi-innards.jpg?resize=768%2C499&amp;ssl=1 768w, https:\/\/i0.wp.com\/www.recantha.co.uk\/blog\/wp-content\/uploads\/2018\/03\/palmpi-innards.jpg?resize=1024%2C665&amp;ssl=1 1024w, https:\/\/i0.wp.com\/www.recantha.co.uk\/blog\/wp-content\/uploads\/2018\/03\/palmpi-innards.jpg?resize=560%2C364&amp;ssl=1 560w, https:\/\/i0.wp.com\/www.recantha.co.uk\/blog\/wp-content\/uploads\/2018\/03\/palmpi-innards.jpg?resize=260%2C169&amp;ssl=1 260w, https:\/\/i0.wp.com\/www.recantha.co.uk\/blog\/wp-content\/uploads\/2018\/03\/palmpi-innards.jpg?resize=160%2C104&amp;ssl=1 160w, https:\/\/i0.wp.com\/www.recantha.co.uk\/blog\/wp-content\/uploads\/2018\/03\/palmpi-innards.jpg?w=1120&amp;ssl=1 1120w, https:\/\/i0.wp.com\/www.recantha.co.uk\/blog\/wp-content\/uploads\/2018\/03\/palmpi-innards.jpg?w=1680&amp;ssl=1 1680w\" sizes=\"auto, (max-width: 560px) 100vw, 560px\" \/><\/a><\/p>\n<h2>Software<\/h2>\n<p>The main structure of the program is similar to <a href=\"https:\/\/github.com\/recantha\/picorder-v3\" target=\"_blank\" rel=\"noopener\">that which I wrote for the Picorder<\/a>\u00a0but it&#8217;s a lot simpler because I&#8217;m using fewer sensors. It sets everything up then loops through, getting readings from the sensors and outputting them to the LCD.<\/p>\n<p>To read the BMP280, <a href=\"https:\/\/github.com\/recantha\/palmPi\/blob\/master\/bme280.py\" target=\"_blank\" rel=\"noopener\">I pulled in some code from Matt Hawkins (Raspberry Pi Spy)<\/a>. It&#8217;s a great mini-library which reads all the sensor outputs and returns them from a function. You can <a href=\"https:\/\/www.raspberrypi-spy.co.uk\/2016\/07\/using-bme280-i2c-temperature-pressure-sensor-in-python\/\" target=\"_blank\" rel=\"noopener\">find out how it works over on Matt&#8217;s blog<\/a>. I carried out a little bit of updating to get it to Python 3-standards.<\/p>\n<p>To read the ADS1115 analog values, I installed and used an Adafruit library which is <a href=\"https:\/\/learn.adafruit.com\/raspberry-pi-analog-to-digital-converters\/ads1015-slash-ads1115\" target=\"_blank\" rel=\"noopener\">handily documented over on their learning platform<\/a>.<\/p>\n<p>I decided at this point that I wanted to log the sensor readings to an online platform. I chose <strong><a href=\"https:\/\/www.initialstate.com\/\" target=\"_blank\" rel=\"noopener\">Initial State<\/a><\/strong>. I&#8217;ve been following them for a couple of years and it&#8217;s a very mature platform. It&#8217;s also free to use up to a point and would suit my purposes. My code sets up a new &#8216;thread&#8217; (a separate process, sort of) to take and log the readings to Initial State. This is a very simple implementation and doesn&#8217;t do much more than log the readings and then wait for 15 minutes before logging again. You can see one of the graphs it produces below:<\/p>\n<p><a href=\"https:\/\/i0.wp.com\/www.recantha.co.uk\/blog\/wp-content\/uploads\/2018\/03\/initial_state.jpg?ssl=1\"><img data-recalc-dims=\"1\" loading=\"lazy\" decoding=\"async\" class=\"size-large wp-image-18654 alignnone\" src=\"https:\/\/i0.wp.com\/www.recantha.co.uk\/blog\/wp-content\/uploads\/2018\/03\/initial_state.jpg?resize=560%2C298&#038;ssl=1\" alt=\"\" width=\"560\" height=\"298\" srcset=\"https:\/\/i0.wp.com\/www.recantha.co.uk\/blog\/wp-content\/uploads\/2018\/03\/initial_state.jpg?resize=1024%2C545&amp;ssl=1 1024w, https:\/\/i0.wp.com\/www.recantha.co.uk\/blog\/wp-content\/uploads\/2018\/03\/initial_state.jpg?resize=300%2C160&amp;ssl=1 300w, https:\/\/i0.wp.com\/www.recantha.co.uk\/blog\/wp-content\/uploads\/2018\/03\/initial_state.jpg?resize=768%2C409&amp;ssl=1 768w, https:\/\/i0.wp.com\/www.recantha.co.uk\/blog\/wp-content\/uploads\/2018\/03\/initial_state.jpg?resize=560%2C298&amp;ssl=1 560w, https:\/\/i0.wp.com\/www.recantha.co.uk\/blog\/wp-content\/uploads\/2018\/03\/initial_state.jpg?resize=260%2C138&amp;ssl=1 260w, https:\/\/i0.wp.com\/www.recantha.co.uk\/blog\/wp-content\/uploads\/2018\/03\/initial_state.jpg?resize=160%2C85&amp;ssl=1 160w, https:\/\/i0.wp.com\/www.recantha.co.uk\/blog\/wp-content\/uploads\/2018\/03\/initial_state.jpg?w=1046&amp;ssl=1 1046w\" sizes=\"auto, (max-width: 560px) 100vw, 560px\" \/><\/a><\/p>\n<p>And you can see the configurable dashboard with all the readings on below:<\/p>\n<p><a href=\"https:\/\/i0.wp.com\/www.recantha.co.uk\/blog\/wp-content\/uploads\/2018\/03\/is_dashboard.jpg?ssl=1\"><img data-recalc-dims=\"1\" loading=\"lazy\" decoding=\"async\" class=\"alignnone size-full wp-image-18660\" src=\"https:\/\/i0.wp.com\/www.recantha.co.uk\/blog\/wp-content\/uploads\/2018\/03\/is_dashboard.jpg?resize=560%2C311&#038;ssl=1\" alt=\"\" width=\"560\" height=\"311\" srcset=\"https:\/\/i0.wp.com\/www.recantha.co.uk\/blog\/wp-content\/uploads\/2018\/03\/is_dashboard.jpg?w=1252&amp;ssl=1 1252w, https:\/\/i0.wp.com\/www.recantha.co.uk\/blog\/wp-content\/uploads\/2018\/03\/is_dashboard.jpg?resize=300%2C167&amp;ssl=1 300w, https:\/\/i0.wp.com\/www.recantha.co.uk\/blog\/wp-content\/uploads\/2018\/03\/is_dashboard.jpg?resize=768%2C427&amp;ssl=1 768w, https:\/\/i0.wp.com\/www.recantha.co.uk\/blog\/wp-content\/uploads\/2018\/03\/is_dashboard.jpg?resize=1024%2C569&amp;ssl=1 1024w, https:\/\/i0.wp.com\/www.recantha.co.uk\/blog\/wp-content\/uploads\/2018\/03\/is_dashboard.jpg?resize=560%2C311&amp;ssl=1 560w, https:\/\/i0.wp.com\/www.recantha.co.uk\/blog\/wp-content\/uploads\/2018\/03\/is_dashboard.jpg?resize=260%2C145&amp;ssl=1 260w, https:\/\/i0.wp.com\/www.recantha.co.uk\/blog\/wp-content\/uploads\/2018\/03\/is_dashboard.jpg?resize=160%2C89&amp;ssl=1 160w, https:\/\/i0.wp.com\/www.recantha.co.uk\/blog\/wp-content\/uploads\/2018\/03\/is_dashboard.jpg?w=1120&amp;ssl=1 1120w\" sizes=\"auto, (max-width: 560px) 100vw, 560px\" \/><\/a><\/p>\n<p><a href=\"https:\/\/github.com\/recantha\/palmPi\" target=\"_blank\" rel=\"noopener\"><strong>All of my code is available here on GitHub<\/strong><\/a><strong>.<\/strong><\/p>\n<blockquote><p>Yes, I have left my Initial State bucket credentials in there! I&#8217;m not paying for my plan and you can&#8217;t see the output anyway. Normally, you wouldn&#8217;t do this, you&#8217;d put them in a config file and set-up a .gitignore file to not commit those.<\/p><\/blockquote>\n<p>Update: I&#8217;ve now added code that tweets the startup, sensor readings and shutdown. For this, I followed <a href=\"https:\/\/projects.raspberrypi.org\/en\/projects\/getting-started-with-the-twitter-api\" target=\"_blank\" rel=\"noopener\">the instructions on this page for the Twython library<\/a>.<\/p>\n<h2 style=\"clear: both;\">See it in action<\/h2>\n<p>I&#8217;m sure by now you&#8217;d like to actually see the palmPi in all its glory! Or maybe not, but anyway, here goes!<\/p>\n<p><iframe loading=\"lazy\" title=\"palmPi\" width=\"560\" height=\"315\" src=\"https:\/\/www.youtube.com\/embed\/Bw_3vMTOiKw?feature=oembed\" frameborder=\"0\" allow=\"accelerometer; autoplay; clipboard-write; encrypted-media; gyroscope; picture-in-picture; web-share\" referrerpolicy=\"strict-origin-when-cross-origin\" allowfullscreen><\/iframe><\/p>\n","protected":false},"excerpt":{"rendered":"<p>I recently posted a tutorial on using an HD44780 LCD (with I2C backpack) with the Raspberry Pi. I mentioned at the time that I had also been looking at small enclosures for the Pi in the hope of making something.&hellip;<\/p>\n<p class=\"more-link-p\"><a class=\"more-link\" href=\"https:\/\/www.recantha.co.uk\/blog\/?p=18646\">Read more &rarr;<\/a><\/p>\n","protected":false},"author":1,"featured_media":18647,"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":[54,80,20,50,391,86,62],"tags":[121,111,704,705],"class_list":["post-18646","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-accessories","category-blinkies","category-gpio-boards","category-making","category-personal","category-raspberry-pi-zero","category-sensors","tag-handheld-console","tag-initial-state","tag-palmpi","tag-personal-make"],"yoast_head":"<!-- This site is optimized with the Yoast SEO plugin v26.8 - https:\/\/yoast.com\/product\/yoast-seo-wordpress\/ -->\n<title>palmPi - (yet another) handheld Raspberry Pi device - 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=18646\" \/>\n<meta property=\"og:locale\" content=\"en_US\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"palmPi - (yet another) handheld Raspberry Pi device - Raspberry Pi Pod\" \/>\n<meta property=\"og:description\" content=\"I recently posted a tutorial on using an HD44780 LCD (with I2C backpack) with the Raspberry Pi. I mentioned at the time that I had also been looking at small enclosures for the Pi in the hope of making something.&hellip;Read more &rarr;\" \/>\n<meta property=\"og:url\" content=\"https:\/\/www.recantha.co.uk\/blog\/?p=18646\" \/>\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=\"2018-03-26T13:58:07+00:00\" \/>\n<meta property=\"article:modified_time\" content=\"2018-03-27T15:12:28+00:00\" \/>\n<meta property=\"og:image\" content=\"https:\/\/www.recantha.co.uk\/blog\/wp-content\/uploads\/2018\/03\/palmPi-whole-874x1024.jpg\" \/>\n\t<meta property=\"og:image:width\" content=\"874\" \/>\n\t<meta property=\"og:image:height\" content=\"1024\" \/>\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=\"10 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=18646#article\",\"isPartOf\":{\"@id\":\"https:\/\/www.recantha.co.uk\/blog\/?p=18646\"},\"author\":{\"name\":\"Michael Horne\",\"@id\":\"https:\/\/www.recantha.co.uk\/blog\/#\/schema\/person\/c27c4ef2ee1c18b130f1fcd5dcdbb263\"},\"headline\":\"palmPi &#8211; (yet another) handheld Raspberry Pi device\",\"datePublished\":\"2018-03-26T13:58:07+00:00\",\"dateModified\":\"2018-03-27T15:12:28+00:00\",\"mainEntityOfPage\":{\"@id\":\"https:\/\/www.recantha.co.uk\/blog\/?p=18646\"},\"wordCount\":2018,\"commentCount\":0,\"publisher\":{\"@id\":\"https:\/\/www.recantha.co.uk\/blog\/#organization\"},\"image\":{\"@id\":\"https:\/\/www.recantha.co.uk\/blog\/?p=18646#primaryimage\"},\"thumbnailUrl\":\"https:\/\/i0.wp.com\/www.recantha.co.uk\/blog\/wp-content\/uploads\/2018\/03\/palmPi-whole.jpg?fit=2414%2C2829&ssl=1\",\"keywords\":[\"handheld console\",\"initial state\",\"palmPi\",\"personal make\"],\"articleSection\":[\"Accessories\",\"Blinkies\",\"GPIO boards\",\"Making\",\"Personal\",\"Raspberry Pi Zero\",\"Sensors\"],\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"CommentAction\",\"name\":\"Comment\",\"target\":[\"https:\/\/www.recantha.co.uk\/blog\/?p=18646#respond\"]}]},{\"@type\":\"WebPage\",\"@id\":\"https:\/\/www.recantha.co.uk\/blog\/?p=18646\",\"url\":\"https:\/\/www.recantha.co.uk\/blog\/?p=18646\",\"name\":\"palmPi - (yet another) handheld Raspberry Pi device - Raspberry Pi Pod\",\"isPartOf\":{\"@id\":\"https:\/\/www.recantha.co.uk\/blog\/#website\"},\"primaryImageOfPage\":{\"@id\":\"https:\/\/www.recantha.co.uk\/blog\/?p=18646#primaryimage\"},\"image\":{\"@id\":\"https:\/\/www.recantha.co.uk\/blog\/?p=18646#primaryimage\"},\"thumbnailUrl\":\"https:\/\/i0.wp.com\/www.recantha.co.uk\/blog\/wp-content\/uploads\/2018\/03\/palmPi-whole.jpg?fit=2414%2C2829&ssl=1\",\"datePublished\":\"2018-03-26T13:58:07+00:00\",\"dateModified\":\"2018-03-27T15:12:28+00:00\",\"breadcrumb\":{\"@id\":\"https:\/\/www.recantha.co.uk\/blog\/?p=18646#breadcrumb\"},\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\/\/www.recantha.co.uk\/blog\/?p=18646\"]}]},{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\/\/www.recantha.co.uk\/blog\/?p=18646#primaryimage\",\"url\":\"https:\/\/i0.wp.com\/www.recantha.co.uk\/blog\/wp-content\/uploads\/2018\/03\/palmPi-whole.jpg?fit=2414%2C2829&ssl=1\",\"contentUrl\":\"https:\/\/i0.wp.com\/www.recantha.co.uk\/blog\/wp-content\/uploads\/2018\/03\/palmPi-whole.jpg?fit=2414%2C2829&ssl=1\",\"width\":2414,\"height\":2829},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\/\/www.recantha.co.uk\/blog\/?p=18646#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"Home\",\"item\":\"https:\/\/www.recantha.co.uk\/blog\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"palmPi &#8211; (yet another) handheld Raspberry Pi device\"}]},{\"@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":"palmPi - (yet another) handheld Raspberry Pi device - 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=18646","og_locale":"en_US","og_type":"article","og_title":"palmPi - (yet another) handheld Raspberry Pi device - Raspberry Pi Pod","og_description":"I recently posted a tutorial on using an HD44780 LCD (with I2C backpack) with the Raspberry Pi. I mentioned at the time that I had also been looking at small enclosures for the Pi in the hope of making something.&hellip;Read more &rarr;","og_url":"https:\/\/www.recantha.co.uk\/blog\/?p=18646","og_site_name":"Raspberry Pi Pod","article_publisher":"https:\/\/www.facebook.com\/recantha\/","article_published_time":"2018-03-26T13:58:07+00:00","article_modified_time":"2018-03-27T15:12:28+00:00","og_image":[{"width":874,"height":1024,"url":"https:\/\/www.recantha.co.uk\/blog\/wp-content\/uploads\/2018\/03\/palmPi-whole-874x1024.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":"10 minutes"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"Article","@id":"https:\/\/www.recantha.co.uk\/blog\/?p=18646#article","isPartOf":{"@id":"https:\/\/www.recantha.co.uk\/blog\/?p=18646"},"author":{"name":"Michael Horne","@id":"https:\/\/www.recantha.co.uk\/blog\/#\/schema\/person\/c27c4ef2ee1c18b130f1fcd5dcdbb263"},"headline":"palmPi &#8211; (yet another) handheld Raspberry Pi device","datePublished":"2018-03-26T13:58:07+00:00","dateModified":"2018-03-27T15:12:28+00:00","mainEntityOfPage":{"@id":"https:\/\/www.recantha.co.uk\/blog\/?p=18646"},"wordCount":2018,"commentCount":0,"publisher":{"@id":"https:\/\/www.recantha.co.uk\/blog\/#organization"},"image":{"@id":"https:\/\/www.recantha.co.uk\/blog\/?p=18646#primaryimage"},"thumbnailUrl":"https:\/\/i0.wp.com\/www.recantha.co.uk\/blog\/wp-content\/uploads\/2018\/03\/palmPi-whole.jpg?fit=2414%2C2829&ssl=1","keywords":["handheld console","initial state","palmPi","personal make"],"articleSection":["Accessories","Blinkies","GPIO boards","Making","Personal","Raspberry Pi Zero","Sensors"],"inLanguage":"en-US","potentialAction":[{"@type":"CommentAction","name":"Comment","target":["https:\/\/www.recantha.co.uk\/blog\/?p=18646#respond"]}]},{"@type":"WebPage","@id":"https:\/\/www.recantha.co.uk\/blog\/?p=18646","url":"https:\/\/www.recantha.co.uk\/blog\/?p=18646","name":"palmPi - (yet another) handheld Raspberry Pi device - Raspberry Pi Pod","isPartOf":{"@id":"https:\/\/www.recantha.co.uk\/blog\/#website"},"primaryImageOfPage":{"@id":"https:\/\/www.recantha.co.uk\/blog\/?p=18646#primaryimage"},"image":{"@id":"https:\/\/www.recantha.co.uk\/blog\/?p=18646#primaryimage"},"thumbnailUrl":"https:\/\/i0.wp.com\/www.recantha.co.uk\/blog\/wp-content\/uploads\/2018\/03\/palmPi-whole.jpg?fit=2414%2C2829&ssl=1","datePublished":"2018-03-26T13:58:07+00:00","dateModified":"2018-03-27T15:12:28+00:00","breadcrumb":{"@id":"https:\/\/www.recantha.co.uk\/blog\/?p=18646#breadcrumb"},"inLanguage":"en-US","potentialAction":[{"@type":"ReadAction","target":["https:\/\/www.recantha.co.uk\/blog\/?p=18646"]}]},{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/www.recantha.co.uk\/blog\/?p=18646#primaryimage","url":"https:\/\/i0.wp.com\/www.recantha.co.uk\/blog\/wp-content\/uploads\/2018\/03\/palmPi-whole.jpg?fit=2414%2C2829&ssl=1","contentUrl":"https:\/\/i0.wp.com\/www.recantha.co.uk\/blog\/wp-content\/uploads\/2018\/03\/palmPi-whole.jpg?fit=2414%2C2829&ssl=1","width":2414,"height":2829},{"@type":"BreadcrumbList","@id":"https:\/\/www.recantha.co.uk\/blog\/?p=18646#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"Home","item":"https:\/\/www.recantha.co.uk\/blog"},{"@type":"ListItem","position":2,"name":"palmPi &#8211; (yet another) handheld Raspberry Pi device"}]},{"@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\/2018\/03\/palmPi-whole.jpg?fit=2414%2C2829&ssl=1","jetpack_sharing_enabled":true,"jetpack_shortlink":"https:\/\/wp.me\/p2RsaV-4QK","jetpack-related-posts":[{"id":20528,"url":"https:\/\/www.recantha.co.uk\/blog\/?p=20528","url_meta":{"origin":18646,"position":0},"title":"Creating a Raspberry Pi Zero touchscreen handheld &#8211; NODE&#8217;s new version of the Zero Terminal","author":"Michael Horne","date":"11 August 2020","format":false,"excerpt":"For a while, NODE has tried to create the most portable Raspberry Pi Zero mini computer. He's one step closer with his latest creation - version 3 of the Zero Terminal. It has the following features: A 5.5\" AMOLED touchscreen. Full-sized USB 2.0 port. microUSB port for charging. A power\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\/2020\/08\/keyboard_backpack.jpg?fit=1145%2C822&ssl=1&resize=350%2C200","width":350,"height":200,"srcset":"https:\/\/i0.wp.com\/www.recantha.co.uk\/blog\/wp-content\/uploads\/2020\/08\/keyboard_backpack.jpg?fit=1145%2C822&ssl=1&resize=350%2C200 1x, https:\/\/i0.wp.com\/www.recantha.co.uk\/blog\/wp-content\/uploads\/2020\/08\/keyboard_backpack.jpg?fit=1145%2C822&ssl=1&resize=525%2C300 1.5x, https:\/\/i0.wp.com\/www.recantha.co.uk\/blog\/wp-content\/uploads\/2020\/08\/keyboard_backpack.jpg?fit=1145%2C822&ssl=1&resize=700%2C400 2x, https:\/\/i0.wp.com\/www.recantha.co.uk\/blog\/wp-content\/uploads\/2020\/08\/keyboard_backpack.jpg?fit=1145%2C822&ssl=1&resize=1050%2C600 3x"},"classes":[]},{"id":21181,"url":"https:\/\/www.recantha.co.uk\/blog\/?p=21181","url_meta":{"origin":18646,"position":1},"title":"Raspberry Pi Zero 2 W launched! More processor power in a small package!","author":"Michael Horne","date":"28 October 2021","format":false,"excerpt":"Fans of the Raspberry Pi Zero can today get excited about a new Raspberry Pi product - the Raspberry Pi Zero 2 W. TL;DR - it's got the Pi 3B processor, 512MB of RAM and is a lot\u00a0speedier than the original Zero\/Zero W. New processor The big headline improvement to\u2026","rel":"","context":"In &quot;Announcements&quot;","block_context":{"text":"Announcements","link":"https:\/\/www.recantha.co.uk\/blog\/?cat=952"},"img":{"alt_text":"Raspberry Pi Zero 2 close-up, front side","src":"https:\/\/i0.wp.com\/www.recantha.co.uk\/blog\/wp-content\/uploads\/2021\/10\/Pi-Zero-2-close-up-crop.jpg?fit=1200%2C594&ssl=1&resize=350%2C200","width":350,"height":200,"srcset":"https:\/\/i0.wp.com\/www.recantha.co.uk\/blog\/wp-content\/uploads\/2021\/10\/Pi-Zero-2-close-up-crop.jpg?fit=1200%2C594&ssl=1&resize=350%2C200 1x, https:\/\/i0.wp.com\/www.recantha.co.uk\/blog\/wp-content\/uploads\/2021\/10\/Pi-Zero-2-close-up-crop.jpg?fit=1200%2C594&ssl=1&resize=525%2C300 1.5x, https:\/\/i0.wp.com\/www.recantha.co.uk\/blog\/wp-content\/uploads\/2021\/10\/Pi-Zero-2-close-up-crop.jpg?fit=1200%2C594&ssl=1&resize=700%2C400 2x, https:\/\/i0.wp.com\/www.recantha.co.uk\/blog\/wp-content\/uploads\/2021\/10\/Pi-Zero-2-close-up-crop.jpg?fit=1200%2C594&ssl=1&resize=1050%2C600 3x"},"classes":[]},{"id":16047,"url":"https:\/\/www.recantha.co.uk\/blog\/?p=16047","url_meta":{"origin":18646,"position":2},"title":"New Kickstarter seeks to put Retro Gaming back in your hands via a Raspberry Pi Zero","author":"Michael Horne","date":"7 December 2016","format":false,"excerpt":"Recently announced on Kickstarter, the Raspi Boy is a handheld, battery-powered, Raspberry Pi-driven retro gaming console. It comes as a pre-soldered kit to assemble, with a moulded case and custom circuit board. It doesn't come with a Raspberry Pi Zero due to the lack of availability of multiple units. Here's\u2026","rel":"","context":"In &quot;Crowdfunding&quot;","block_context":{"text":"Crowdfunding","link":"https:\/\/www.recantha.co.uk\/blog\/?cat=13"},"img":{"alt_text":"","src":"https:\/\/i0.wp.com\/www.recantha.co.uk\/blog\/wp-content\/uploads\/2016\/12\/photo-2-1.jpg?resize=350%2C200&ssl=1","width":350,"height":200,"srcset":"https:\/\/i0.wp.com\/www.recantha.co.uk\/blog\/wp-content\/uploads\/2016\/12\/photo-2-1.jpg?resize=350%2C200&ssl=1 1x, https:\/\/i0.wp.com\/www.recantha.co.uk\/blog\/wp-content\/uploads\/2016\/12\/photo-2-1.jpg?resize=525%2C300&ssl=1 1.5x, https:\/\/i0.wp.com\/www.recantha.co.uk\/blog\/wp-content\/uploads\/2016\/12\/photo-2-1.jpg?resize=700%2C400&ssl=1 2x, https:\/\/i0.wp.com\/www.recantha.co.uk\/blog\/wp-content\/uploads\/2016\/12\/photo-2-1.jpg?resize=1050%2C600&ssl=1 3x"},"classes":[]},{"id":10578,"url":"https:\/\/www.recantha.co.uk\/blog\/?p=10578","url_meta":{"origin":18646,"position":3},"title":"Wooden handheld Raspberry Pi","author":"Michael Horne","date":"1 August 2014","format":false,"excerpt":"Instructables user\u00a0fernseher1 has written a full tutorial on creating a handheld Raspberry Pi using a wooden case and an analogue screen. Read it here.","rel":"","context":"In &quot;Cases&quot;","block_context":{"text":"Cases","link":"https:\/\/www.recantha.co.uk\/blog\/?cat=9"},"img":{"alt_text":"","src":"https:\/\/i0.wp.com\/cdn.instructables.com\/FRQ\/14C0\/HUFQHNT8\/FRQ14C0HUFQHNT8.MEDIUM.jpg?resize=350%2C200","width":350,"height":200,"srcset":"https:\/\/i0.wp.com\/cdn.instructables.com\/FRQ\/14C0\/HUFQHNT8\/FRQ14C0HUFQHNT8.MEDIUM.jpg?resize=350%2C200 1x, https:\/\/i0.wp.com\/cdn.instructables.com\/FRQ\/14C0\/HUFQHNT8\/FRQ14C0HUFQHNT8.MEDIUM.jpg?resize=525%2C300 1.5x"},"classes":[]},{"id":18420,"url":"https:\/\/www.recantha.co.uk\/blog\/?p=18420","url_meta":{"origin":18646,"position":4},"title":"Happy 6th Birthday to the Raspberry Pi &#8211; a retrospective","author":"Michael Horne","date":"1 March 2018","format":false,"excerpt":"5.30am on 1st March... closest I could get to the non-existent leap-day this year :-) It's been 6 years since the Raspberry Pi first went on sale. Since 2012, many millions of the family of boards have been sold. We've seen a lot of change in that time in terms\u2026","rel":"","context":"In &quot;Opinion&quot;","block_context":{"text":"Opinion","link":"https:\/\/www.recantha.co.uk\/blog\/?cat=34"},"img":{"alt_text":"","src":"https:\/\/i0.wp.com\/www.recantha.co.uk\/blog\/wp-content\/uploads\/2018\/03\/birthday_cake.jpg?fit=1200%2C799&ssl=1&resize=350%2C200","width":350,"height":200,"srcset":"https:\/\/i0.wp.com\/www.recantha.co.uk\/blog\/wp-content\/uploads\/2018\/03\/birthday_cake.jpg?fit=1200%2C799&ssl=1&resize=350%2C200 1x, https:\/\/i0.wp.com\/www.recantha.co.uk\/blog\/wp-content\/uploads\/2018\/03\/birthday_cake.jpg?fit=1200%2C799&ssl=1&resize=525%2C300 1.5x, https:\/\/i0.wp.com\/www.recantha.co.uk\/blog\/wp-content\/uploads\/2018\/03\/birthday_cake.jpg?fit=1200%2C799&ssl=1&resize=700%2C400 2x, https:\/\/i0.wp.com\/www.recantha.co.uk\/blog\/wp-content\/uploads\/2018\/03\/birthday_cake.jpg?fit=1200%2C799&ssl=1&resize=1050%2C600 3x"},"classes":[]},{"id":13743,"url":"https:\/\/www.recantha.co.uk\/blog\/?p=13743","url_meta":{"origin":18646,"position":5},"title":"New Raspberry Pi hits the shelves &#8211; the Zero is here","author":"Michael Horne","date":"26 November 2015","format":false,"excerpt":"Exciting news\u00a0today: the Raspberry Pi Zero is here! It's half the size of an A+, has twice the memory (512MB) and will likely run 30-40% faster than the A+ thanks to some special magic (Read Alex Eames' blog post for more details). Alex Eames has done a video walkthrough to\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\/raspi.tv\/wp-content\/uploads\/2015\/11\/Raspberry-Pi-Zero-front_700.jpg?resize=350%2C200","width":350,"height":200,"srcset":"https:\/\/i0.wp.com\/raspi.tv\/wp-content\/uploads\/2015\/11\/Raspberry-Pi-Zero-front_700.jpg?resize=350%2C200 1x, https:\/\/i0.wp.com\/raspi.tv\/wp-content\/uploads\/2015\/11\/Raspberry-Pi-Zero-front_700.jpg?resize=525%2C300 1.5x, https:\/\/i0.wp.com\/raspi.tv\/wp-content\/uploads\/2015\/11\/Raspberry-Pi-Zero-front_700.jpg?resize=700%2C400 2x"},"classes":[]}],"_links":{"self":[{"href":"https:\/\/www.recantha.co.uk\/blog\/index.php?rest_route=\/wp\/v2\/posts\/18646","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=18646"}],"version-history":[{"count":5,"href":"https:\/\/www.recantha.co.uk\/blog\/index.php?rest_route=\/wp\/v2\/posts\/18646\/revisions"}],"predecessor-version":[{"id":18664,"href":"https:\/\/www.recantha.co.uk\/blog\/index.php?rest_route=\/wp\/v2\/posts\/18646\/revisions\/18664"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/www.recantha.co.uk\/blog\/index.php?rest_route=\/wp\/v2\/media\/18647"}],"wp:attachment":[{"href":"https:\/\/www.recantha.co.uk\/blog\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=18646"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.recantha.co.uk\/blog\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=18646"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.recantha.co.uk\/blog\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=18646"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}