-
Panel mount adapters, booster/charger, yellow lightning bolt of doom
06/02/2020 at 23:29 • 0 commentsThis is how this build works: last week, I used most of my extra cash from my last paycheck to purchase most of Pimoroni's stock and bits and pieces from eBay. Now, I wait while they slowly trickle through lockdown, and when they arrive, I stick them inside the ZX Spectrum.
This said, today's package (from Pimoroni) covers a significant chunk of the build - the MP2636 booster/charger, some panel mount cables, and a thicc 8800mAh LiPo battery. In terms of the essential hardware, I'm now waiting on a switch, some USB cables, and of course the USB converter which will allow me to use the Spectrum's keyboard. Stage two is the display, and stage three is the macro keypad, though as we shall see I may have to rethink that.
---------- more ----------Panel mount adapters
Firstly, I wired up the panel mount adapters - one USB, one HDMI, and one Ethernet. (Here's their Pimoroni listing). I might get another USB, because one seems stingy. It might have made more sense to just get a low-profile USB hub and stick it along one of the Spectrum's wide ports, but I haven't done that!
I carefully drilled the holes for the panel mount adapter screws with a 3mm drill bit, marking where the other screw would go with a nail before drilling. They nevertheless all ended up a bit crooked, but I'm happy with the result:
The USB cable ended up underneath RS232 (appropriate), HDMI under Joystick 1, and Ethernet under what I think is a SCART port, but not in the shape of a SCART cable I'm familiar with!
They tell you to make do with what you have, and what I had following this was a Micro-USB breakout board from... somewhere. Maybe Pimoroni just sent it to me at some stage because they felt sorry for taking so much money off me. I need Micro-USB input to supply power from a 5V PSU (there's no USB-C in the cyberpunk futurepast, I checked, it was infected with... malware), so I cut up an old Micro-USB cable and soldered it up to the breakout:
I then dolloped lots of hot glue with it (I have never used a glue gun before and frankly, considering it cost literally £2 from Poundland... it's fine. I'm sure I'll get better). But the soldering itself was very neat, I promise.
Power circuit
I then grabbed some USB cables (not the ones that will actually end up inside the device) and wired up the power circuit. My Frankensteined Micro-USB cable goes to the MP2636 (which is super cute); a Micro-USB cable goes from that to a simple USB switch, and finally a USB-C cable goes from that to the RPi. The battery, meanwhile, connects to the MP2636 via a JST cable. Oh, and everything is really tidy and well laid out, and in no way looks like an octopus exploded all over my case:
To my considerable astonishment, everything worked! And the switch, as intended, shuts off the circuit to the Pi when it's off, which means the booster stops drawing battery power (I hope!). In the photo, you might be able to see the switch is currently just set to on with a couple of jumper cables - I'm waiting on the actual flick switch to arrive.
What's astonishing is that after I wired up a screen and some peripherals, I could use this monster like it was a real PC, but more cyberpunkier:
(Feat. some Shadowrun concept art. The concept, I believe, is that hacking is cool).
Yellow lightning bolt of doom
The only issue - and it is a big issue - is that when the circuit is not plugged into mains power, I get near-constant under voltage warnings (a little lightning bolt at the top of the display). And when it is plugged in, the warning is constant, presumably because the booster/charger is using some of the current to charge the battery.
I'm not really sure what to do about this! I tested some points with a multimeter and am getting anywhere between 4.6 and 4.9V in different places, which certainly explains the warning. I tested with different USB cables, and while the proliferation of cables and the USB switch certainly don't help the issue, the problem lies without a doubt in the booster/charger - it outputs a maximum of 2.5A, and the RPi 4 wants at least 3A! That only happens if I connect it straight to the mains power with a high-quality mobile charger.
In the meantime, I've disabled the warning in /boot/config.txt - just add a line which reads:
avoid_warnings=1
Obviously this is not advisable! In my case, I know for a fact the warning is near-constant, and what with the lag I get while composing a humble blog post or switching workspaces in i3, let me tell you, I won't be forgetting it in a hurry, either. If anyone has bright ideas for what I could use instead of the MP2636, I'd love to hear them!
This brings me to my doubts about the macropad - I wanted to attach a set of 5 keys where the tape deck control keys went, wired to an Arduino Pro Micro, but going by how much the RPi is struggling with an HDMI monitor, keyboard and mouse, I'm wondering if that's one current draw too many.
Tune in next time, hopefully to see me attaching the ZX Spectrum's keyboard to the Pi!
-
Arrival of the donor machine
06/01/2020 at 15:13 • 0 commentsI got a non-functional Sinclair Spectrum +2A on eBay and let me tell you, it was by far and away not the most expensive part of this build! If you want to pick up your own Sinclair Spectrum to gut and fill with 2020s electronics, please don't do it with a working one! You see, they haven't made new ones since 1990. That means that one day, there won't be any left. Do you want to have the extinction of a vintage microcomputer on your conscience?
"But Raphael, in that case shouldn't you just repair this one to working order?", I hear you cry. Yes, I should, but I'm doing this for science. Also I'm going to save the controller board and all the electronics and hopefully fix it one day.
Here's what it looked like upon arrival. It's in great shape, except for the sticky residue on the tape deck, but that was soon dealt with...
...using screwdrivers.
Here's a few more shots of the disassembled case:
The keyboard connects using two separate tails - I don't know why! Maybe it works on two separate circuits?
This one's from 1988. Release year for some absolute bangers, including 'Heaven is a Place on Earth' (relevant to the cyberpunk theme considering its use in Black Mirror's only utopian episode, 'San Junipero'), 'I Should Be So Lucky' (relevant to the cyberpunk theme because Kylie rocks), and a little ditty called 'Doctorin' the Tardis' (obviously relevant).
Tune in next time, for me sticking stuff inside!