I made this from a piece of a flexible ringbinder, that I’d bought at Morrison’s supermarket for 99p!
Initially I thought it’d be a great idea to score the plastic piece I’d cut out, prior to bending:
The stuff is easy to cut with scissors by the way.
Anyway, to obtain the curve, the panel needs to be slightly longer (by about 5 – 10 mm) than the length of the Unicorn HAT. Best to adjust this to your own personal curve tastes. You’ll need around 3 – 5 mm of material to form the arc* of the folded ends, and then about 8 – 10 mm for the retaining flap which holds it in place. (Mine is more like 11 – 12 mm).
The first attempt after drilling the holes into the retaining flaps — I attached the diffuser underneath the Unicorn HAT. Don’t do this..!
(Hey if you do, please let me know how you achieved it!!)
Secure the screws to the flaps with nuts & washers as shown in the close-up photo, then you can slot the whole assembly onto the HAT.
*To form the arc (folding the flaps) just fold the material. I used a pair of pliers, but a bench vice would be perfect. Make several gentle creases so you don’t split the plastic, and you’ll need a slightly sweeping arc anyway, to go around the head of the screw.
I haven’t even tested it yet as it’s disappeared into my son’s bedroom…
Not bad value at a tenner, let alone a fiver!
But, will this bargain from Aldi set my house on fire, or fry everything attached to it? We have some of the first ‘Raspberry Pi Kits’ from Maplin at work, and they came with a Maplin-branded USB power supply. Their output was so raggedy-arsed that the newer Raspberry Pi’s refuse to operate from them!
When I plugged the cable into the power supply there was an almighty ‘CRACK’!! You can see the effects of the sparks — I say sparks because I did it again 😆
Using my ickle handheld oscilloscope, the output (under a slight load) appears to be stable. It certainly doesn’t look like the back of a dragon anyway!!
I excitedly jumped at the chance to review this device as I had the perfect project for an analogue pointer, which was in combination with an experiment I wanted to run. Unfortunately I have been unable to locate particular parts for this experiment so I’ve had to shelve that for now. Grr…
The pHAT has the same footprint as a Raspbery PiZero, although the stepper-motor housing overhangs the PCB by a few mm. This is on the same edge that the PiZero has its connectors on, so I can’t imagine a way that it’d be an issue. Also, it can be used on a full-sized Pi.
Using the test code provided by 4Tronix running on the command line, it’s quite satisfying to keep tapping numbers in, in order to make the needle swiftly and smoothly move! Gareth had also provided some dial templates to get us started.
THIS device is going to be responsible for me learning to code in Python…
Note: the female header is surface-mount not through-hole, SO DON’T just yank it to remove it! Use something like a screwdriver to gently prise along the headers a bit at a time, so as to avoiding bending any pins.
I soldered a right-angled header to my PiZero for mounting it on a breadboard adapter. This also allows the rear of the pHAT board to be seen:
I’m not going to duplicate the technical specifications as they can be found here: http://4tronix.co.uk/store/index.php?rt=product/product&product_id=567
However, my next experiment at home will be monitoring wind-velocity over time, at particular points around our property, and our neighbours’. This is intended to lead to a wind turbine project!!
Like my neighbour said; even if we only generate enough to charge mobile phones, it’s a start.
The music in the video was kindly provided by the sickengly talented, and jolly nice JT Bruce • Plunge Into Hyperreality from the album The Dreamer’s Paradox
This circuit is the basic principle on which my Pi power-off system operates:
The main point being that GPIO14 (Tx) goes continuously low when the Pi is powered down.
When it’s high it’s pulsing, but the power-off system uses programmed hysteresis (a delay!), and this simple indicator doesn’t need nowt! Simply due to the fact that the pulsing is too fast for the human eye to notice.
I use this circuit for headless Pi devices to confirm that they’re ready to have the power pulled, as being a dad I’m so often distracted!!
This is the code which I have used, slightly adapted, and it works!
I now have a working programme for the PICAXE which monitors the logic level of GPIO14 (TXD0, physical pin 8) on the Raspberry Pi, amongst other things. Building a test model up on breadboard with a PICAXE 14M2, I included a power-off button (this works alongside the previously mentioned Python script), a reset button, and the control circuit for the relay. And the AA-cell-eating relay! There are of course solid-state relays available, but I’m switching UK mains which is around 240 V rms (should be 230, but it isn’t) and I want it to be OFF off. Completely and absolutely switched the chuff off, with a nice big air-gap between the contacts!
I also like the old-fashioned click of the relay 🙂
I have no intention of trying to reinvent a perfectly good wheel.
Also, I haven’t yet learned to code in Python — and I don’t class myself as much of a coder anyway!
This is the code with excellent tutorial that I plan to put into my Raspberry Pi: