Take all 26 letters of the alphabet, add the numbers 0 to 9 and a bunch of punctuation. Now work out the byte arrays for the character maps required to display each character on a 128x64bit OLED display…
So, it was time to buy another Raspberry Pi Zero Case, as I’m now onto my third one of these amazing little devices. I had intended to buy another of the cases that I purchased for my first one. At the last minute I decide I should probably go for a bit of variety and choose a different one.
After a little searching around on Amazon and eBay, I settled on one of the modular laser cut acrylic style cases – £3.47 with free delivery. It arrived in a couple of days in a thin envelope.
There was a ~3mm thick piece of acrylic about 70mm wide by 200mm long, taped to a piece of card to hold it all together. From this the shape of each layer had been cut.
Snapping all the layers out and peeling the protective film off was a simple task. There are 4 layers plus an (optional) couple of super thin bits for some support. You put the bottom 2 layers together then the Pi Zero, then (optionally the 2 super thin bit – I used the stand-offs instead) and then choose between the 2 top pieces. One designed for covering in the GPIO header (no pins soldered) and the other exposing the GPIO header. There are also 4 nuts/bolts provided to secure the whole thing together with the Pi Zero sandwiched in the middle.
The case looks good, is very functional and has easy access to all the ports, SD card and camera connector. There are a few little (tiny) blemishes on one of the parts, but they are hardly noticeable. The whole thing feels very secure and there is no movement, nor any undue pressure on the device.
All in all, a decent Raspberry Pi Zero Case. Here are some pics of the assembled unit.
It is possible to get the micro USB ‘OTG’ port on the Pi Zero configured for networking. After a couple of bits of configuration you can simply plug a cable between your PC / Laptop and the Pi Zero USB data port, it automatically creates a network between them and you can then SSH to your Pi Zero.
To enable this you’ll need the following line added to your /boot/config.txt file:
… and the following text added to your /boot/cmdline.txt (be sure to keep only space between each param and no newlines) after the rootwait parameter:
That should be it complete. Reboot the Pi Zero and check it out.
NOTE: This will only work on a Pi Zero, none of the other versions support it.
Thanks to Andrew Mulholland for the pointers.
I thought it was about time I invested in a Raspberry Pi Zero Case. I had been using all my Pi Zeros ‘naked’ for several weeks with no problems, but you never know if they’ll touch a metal surface or object and short out.
Browsing around there are a lot of really nice looking wooden cases. I liked this one and this one with connector names etched into it. Maybe I’ll get one of those for use as my ‘clean’ Raspberry Pi Zero Case. In the meantime I opted for this clear plastic one. Functional and a touch less costly than the wooden ones. Only £3.99 with free delivery – bargain.
When it arrived it looked a bit bulky, but that was because it comes with 2 top sections. One top section is completely closed in on top with no access to the GPIO ports. The other top section has the GPIO ports open and accessible. The picture shows the one with the ports accessible.
This case also comes in White and Black, but I found both those colours to be a bit plain for my liking.
There was also a very minor issue with the new v1.3 camera connector and this case. The cover for the camera connector sticks out a fraction of a millimetre over the side of the Pi Zero. This prevent the Pi Zero from fitting correctly into the bottom section of the case. A sharp knife and about 30 seconds work saw me cut a little section of the side lip. This allowed the Pi Zero to fit perfectly.
You can’t see from the pictures below but it only protrudes into the inside lip. When the top cover is on that still encases the camera connector, so it’s not sticking out the side in any way.
I’m now sporting a device housed safely in this really cool Raspberry Pi Zero Case. I’m also thinking of buying a couple more of these.
As much as we all love the Pi Zero, the connectivity options are very limited. With only one (micro) USB port (for peripherals) it means you need a micro <=> ‘normal’ USB adapter to get any of the usual accessories (keyboard, Wi-Fi dongle etc.) plugged in, and when you have that’s it – nothing else can be plugged in. Also, those little USB adapters just look a little bit to precarious for my liking. So, what I needed was a ‘Raspberry Pi Zero USB Hub Hack’.
I’d seen that the USB power and data lines are presented as pads on the board itself. I wasn’t alone in noticing this, and seemingly a bunch of people had success soldering on USB hubs directly. So I though I’d give it a go. I bought myself this little ‘no name’ 4 port USB2 hub from eBay for the princely sum of £2.09 (including delivery) – how they make any profit on these is beyond me.
As soon as it arrived, I pulled the case apart exposing the board itself and cut the USB cable off. (NOTE: I probably should have tested it on the laptop, or Pi first, but I was a bit too eager).
A simple soldering job had the 4 individual cables soldered to their respective pads on the Pi Zero. It wasn’t a great success to start with, as it was ‘hit and miss’ whether it showed up on the Pi after booting.
I guessed that it was likely that not enough power was being delivered, to the hub, by the super thin cables. I decided to remove those completely and replace themwith some thicker cable to make sure there was enough power to the hub. I also used some thicker signal wire for the Data + and –.
However, now it never showed up, not even for a short time.
It looked like it was recognising that a hub was plugged in, but it saw it as a ‘new low-speed USB device’. The seller on eBay had advertised this as a high-speed hub, so the ‘low-speed’ was odd. I would also get a lot of ‘device descriptor read/64, error -71’ errors in dmesg when the hub did not show up.
dmesg | grep usb
Googling around suggested trying out a bunch of dwc_otg settings in cmdline.txt, but none of those seemed to work. I also switched it to low speed (dwc_otg.speed=1) and that didn’t help. I knew all the connects were good and there were not shorts, so I began to think I had killed the IC on the hub somehow.
A last ditch attempt was to swap around the Data + – wires. I didn’t expect this to work as it was being ‘seen’ by the Pi, just not working. I figured, how could it ‘see’ the hub without being able to read ‘something’ from it). WRONG….
Swapping round the Data + – wires brought it to life, every time I powered on the Pi. Excellent. So now a little tidying things up, getting some anti-static foam between the boards and squishing them together with and elastic band (temporary) got me to the finish line.
dmesg | grep usb
Here are some pictures of the finished Raspberry Pi Zero USB Hack project (although it still needs tidying and a case etc.)…
Next up is to replace one of the hub ports with a directly soldered Wi-Fi dongle. Watch this space…
I had a couple of hours free this evening, and so began to do work on the first stage of the Raspberry Pi Music Player project. This was mostly the modifications to the plastic power tool case which is going to serve as the ‘enclosure’ for the Music Player project.
Here’s a few pictures of the work…
First thing to do was to cut out a template for the speakers to make the marking easier.
I then used that template to mark out where I needed to cut on the plastic box. I used the Dremel (fantastic piece of kit) to drill round the edge of the speaker hole.
The speaker was a good snug fit, with none of the rough edges showing. This probably needs a little tidying up of that edge up before the final version.
Same again for the second speaker. Next, I started on a hole for the On/Off switch which I wanted on the side of the box. This is a green, 12v rocker switch that illuminates when on.
With that done, I moved on to a few internal cuts to make sure there was room for the Pi (Model B+). The stereo amplifier board needed some holes drilled in the case to mount it in. That was pretty much the first stage complete. Looks quite neat so far.
Next, will be the internal wiring and setting up the software for the Raspberry Pi Music Player. For this I’ll be using MPD. Watch this space for the next update…
Update (Sept 2016): The full project write up can be found here.
Got yourself a Raspberry Pi ? Here’s our list of the 5 essential Raspberry Pi Accessories you’ll need to make the most of your Pi. This list covers official, cheapest, most useful and some ‘advanced (DIY)’ accessories.
Raspberry Pi Accessories : Power To The Pi
The first thing you’ll need is some way of powering it, and the big decision is ‘fixed’ or ‘portable’. If you plan to leave your Pi in one location then you’ll want to go for a plug in charger style. If you think you’ll be moving it around, using it outside, using it for mobile projects then you’ll want some kind of portable supply.
- The official Raspberry Pi power supply can be found on the element14 website here, and the RS Components website here.
- Any cheap micro USB charger that supplies 1-2 amps should work fine. You might even get away with plugging it in to your laptop or desktop.
- I recommend this version from Anker on Amazon – they also provide great customer service and really well made products.
- For portable power, again any portable battery for charging phones will do (with ‘fast charge’)
- I recommend, and use this 20000mAh pack, again from Anker. This gives me over 20 hours of continuous use, and I can charge my phone at the same time.
- On the more costly side, if you want to work through power interruptions there is this add-on board. This acts as an Uninterruptable Power Supply (UPS).
- For the more adventurous, there are opportunities to build your own UPS. Adafruit has many parts and batteries available that can be used to build your own. Check out this video of someone that’s done just that.
Raspberry Pi Accessories : Project Wi-Fi
You might be lucky enough to have your workshop, or home fully wired with Cat5 network sockets in every room. Or plan to just have you Pi in a single location with cabled access, but if not then you’ll probably need Wi-Fi access. Of course, if you have a Pi 3 then you have Wi-Fi built in and your good to go. For those that do need Wi-Fi here’s some options:
- The official Raspberry Pi Wi-Fi adapter can be found on the RS Components website here and on Amazon here. Nano USB Wi-Fi adapter are available from many suppliers. However, you do need to check what chipsets they use and whether they are supported.
- Similar cheaper versions include this one (less than £3) and this one (~£4 as an ‘add-on’ item).
- For those that like to take the advanced option, there’s a homebrew route to add Wi-Fi to your Pi Zero with a $2 ESP8266 device.
Raspberry Pi Accessories : Keyboard (and Mouse) Bashing
If you’re using your Pi as a desktop machine, or you need some initial setup and configuration done manually then you’ll need a Keyboard and Mouse. I have moved completely to wireless keyboard and mouse combos for all my workstations. This has the benefit of only requiring a single USB port (for the dongle). I also find it generally helps not having cables getting tangled everywhere.
- Any USB keyboard and mouse will do, you may have some of these laying around already.
- A recommended (Anker) set can be found on Amazon here, and a basic (lower cost – £5.99) version can be found here.
- For those looking for something smaller than full size, I use this £15 mini set from Maplin, although the lag on the mouse can be a problem.
Raspberry Pi Accessories : Breadboard
If you’re into more than just software projects on your Pi, then you will want to connect to the ‘physical world’. For that you will likely need a breadboard. This is a board that you can use to prototype electronic circuits without having to solder. A breadboard makes it possible to interface devices and sensors, connect LEDs and the like. Breadboards come in various sizes but are all pretty similar in their function.
- Small ones are available here on Amazon (170 connection points) – in packs of 5.
- Medium sized ones, which have 400 connection points are available here on Amazon.
- Larger ones with 830 connection points can be found here on Amazon.
- This is the ‘top of the range’ version, yet is still only £12 (bonus – it comes with jumper cables too)
- An easy way to get power (5 volts or 3.3 volts) to your breadboard is one of these devices – very handy, and don’t forget jumper wires.
Raspberry Pi Accessories : Packing Your Case
Last but not least on our list is a case. You will want to protect your Pi for short circuits, grubby fingers, and all manner of other dangers. So you will need a decent case. Cardboard, or 3D printing can be used to make cases. You can also cut the plastic box, the Pi is delivered in, into a case. There are lots of tutorials for all of these. Those are great, but I recommend getting a proper case. This is very much a thing of personal preference. Listed below are some cool cases that you might consider.
- A blueberry enclosure, for Model A and Model B – £4 + £2.99 delivery.
- A clear case for the Pi 2 – £2.40.
- This cool case, built up in ‘slices’ for the Pi 2 – £7.85.
- This very slick looking black case – £17.99
- .. or this Lego case – £5.99
There you go, the 5 essential Raspberry Pi Accessories you need for your Raspberry Pi. Of course there are a lot of other neat add-on items that can improve your experience further, but those are for another post…
Did I miss anything ? let me know in the comments below, or feel free to include your favourite ‘must have’ items.
To date (July 2016), there have been 8 versions of the Raspberry Pi. Below is an outline of each.
Raspberry Pi Model A
The Model A sported the ARMv6 architecture (700MHz, single core ARM11) with a Broadcom BCM2835 SoC. It had 256MB of RAM and a 26 pin version of the header. Power was provided by the micro USB connector, video by the HDMI connector (supporting HDMI v1.3), a single USB port, composite video out RCA jack and a 3.5mm audio out connector. There is also a slot for a camera module and on board storage was via a slot for a full size SD Card. There was no Ethernet (RJ45) port on this model.
Raspberry Pi Model B
The Model B also used the same ARMv6 architecture (700MHz, single core ARM11) with a Broadcom BCM2835 SoC as the Model A. It had increased memory to 512MB of RAM. The header is the same 26 pins as the Model A, but it had an additional 4 GPIO pins available via the P5 header (if you user was willing to solder the pins). HDMI, composite video, audio and SD card slot all remain the same, but the USB ports are increased to 2 and there is now a Ethernet (RJ45) connector on-board also.
Raspberry Pi Compute Module
The Compute Module is a full system on a device with only a 200 pin DDR2 SO-DIMM. This uses the same ARMv6 architecture (700MHz, single core ARM11) with a Broadcom BCM2835 SoC as the Model A and B, has 512MB RAM on-board as well as an on-board 4GB eMMC flash chip for storage. There are no on-board ports, but all the usual inputs and outputs (and more) are exposed as pins on the 200 SO-DIMM connector.
The Model B+ sported the same ARMv6 architecture (700MHz, single core ARM11) with a Broadcom BCM2835 SoC as the Model A and B. It had the increased memory of 512MB of RAM same as the Model B. Now has a 40 pin version of the header which exposed 9 more GPIO pins and support for the HAT ID bus. It now has 4 on-board USB ports, and the composite video out (RCA) plug had been removed and the composite video combined with the audio out in the 3.5 jack . There is also a slot for a camera module and on board storage was via a smaller slot for a micro size SD Card. There was an on-board Ethernet (RJ45) port on this model. Power consumption has been improved as has audio quality.
Raspberry Pi Model A+
The Model A+ sported the same ARMv6 architecture (700MHz, single core ARM11) with a Broadcom BCM2835 SoC as the Model A and B. It had the increased memory of 512MB of RAM same as the Model B, the same 40 pin version of the header as the Model B (exposing 9 more GPIO pins and support for the HAT ID bus). It retains the single USB port of the Model A, and the composite video out (RCA) plug had been removed and the composite video combined with the audio out in the 3.5 jack . There is also a slot for a camera module and on board storage was via a smaller slot for a micro size SD Card. There was no still Ethernet (RJ45) port on this model. Power consumption has been improved as has audio quality.
Raspberry Pi 2 (Model B)
The second generation of the Model B moves to the ARMv7 architecture, using a quad core, 900MHz Cortex-A7 CPU and the Broadcom BCM2836 SoC. The memory is increased to 1GB, but all other hardware remains the same as the Model B+.
Raspberry Pi Zero
The Raspberry Pi Zero, which has a smaller footprint and less connectivity, is based on ARMv6 architecture for the original Model A and Model B, using 1GHz single core ARM11 device and the original Broadcom 2835 SoC. It had only 1 micro USB port (OTG mode) and a mini HDMI connector for video and audio. Additional (composite) video and audio are available via GPIO pins. A micro SD card slot is available for storage and by default the GPIO 40 pin connector is unpopulated.
Raspberry Pi 3 (Model B)
The third generation of the Model B sees a move to the ARMv8 architecture, using a quad core, 1.2GHz 64 bit Cortex-A53 CPU and the Broadcom BCM2837 SoC. The memory stays at 1GB, and all other connectors and ports remains the same as the Pi 2 and Model B+. In addition, wireless networking (802.11n) and Bluetooth (4.1, BLE) are added.
I’ve been looking at building an outdoor music player for a couple of weeks now. I am looking for something ‘rugged’ that I can take outside and dump on the grass at a picnic or BBQ, Battery operated (about 4-6 hours life), small display to show what is playing, couple of buttons to RW/FF and volume control.
I’m still trying fathom out whether to make it a Wi-Fi access point and allow control by connecting to it (web or mobile app), or to have it connect to the home Wi-Fi so that it can also stream internet radio / Google Play music. Maybe a switchable option is in order.
I had thought about housing the whole thing in an ammo box, but in the end I decided to reuse an old power tool plastic box (at least for the first version).
I already had most of the components – LiPo batteries, DC-DC ‘Buck’ Convertors, Power Tool Box, Pi, and associated cables, connectors. The only bit’s I was missing were an audio amp and some speakers. I bought the speakers from Maplin (£2.99 each) and a 15Watt per channel, stereo audio amp from eBay. Those have all arrived now, so it’s time to get the Dermel and the soldering iron out.
I’ll be writing this up as a full project, with instructions etc, so watch this space
Update (Sept 2016): The full project write up can be found here.