Tuesday, 20 February 2018

Build your own Amiga Power Supply - from a cheap ATX PC PSU!

I wrote this email to a twitter follower some time ago after my tweet about how I made my Amiga PSU...



Hello!

As promised here’s my “guide to building your own Amiga PSU”  J
Please be super careful with the electrics – those capacitors in there can hold 400VDC.  My advice is not to power any of this on immediately before pulling them to pieces, as they can hold a charge. 

OK - for me, a PC PSU was going to be the best because they’re cheap, and plentiful, and they output all the right voltages.  Also, the higher output (I think newer Amiga PSUs are only rated up to 22W) would mean I could run a hard drive and accelerator card in the 1200.

I’d seen some kits online, or “pre converted” PSUs around the £30 mark, but they all looked terrible with the ATX harness hanging out, and adapters made to hook up them up.    I wanted something that looked quite neat.

So first of all I hit eBay and looked for a PSU.   Even a 120w one will be enough, FlexATX seems to be one of the smallest form factors.   It’s worth noting here that depending on your willingness to tinker, smaller physical size might not be best.  It was a pretty fiddly job doing all the cutting and soldering and folding all the cut off wires back into the case.

Anyway  - £8 yielded a used 250W FlexATX PSU.   Very cheap, “Bestech” branded, and they don’t have an amazing reputation.  But give it’s going to be running at most a tenth of its rated power, I thought it’s good enough J

So, to the assembly. 

First thing was to open up the Amiga PSU and carefully desolder the cable that goes from the PSU to the Amiga and terminates in the square DIN plug, and put it to one side.

Then I opened up the ATX PSU, and decided which wires I wanted.   The Amiga needs +5, +12, -12 and GND.   On the ATX side of things:

12v = Yellow
5v = Red
-12v = Blue
GND = Black
And you’ll also need POWER = green (sends the signal to the ATX PSU to turn on)

I decided to take the +5 and +12 from the main 24 pin ATX connector.   I might be wrong, but I interpreted the information sticker on the side of PSU to indicate that the 5v rail on the 24 pin connector has more amps available to it than the others, so I took those feeds from there.   On my ATX PSU, there was only one -12v lead.

So,  I took 1 Yellow, 1 Red, the Blue, the Green, and TWO black wires (one for the switch, one for the Amiga power) and cut them right at the ATX connector so the wires would be nice and long.    The rest of the wires (and there were a good 20-odd of them), I cut just short enough so I could push them all back into the PSU case. In my case, that was about 1.5 to 2 inches.   Don’t cut them too short because you’ll need to terminate them so they don’t come into contact with anything they shouldn’t.  I did that by applying heatshrink to the ends of the cut off wires, with an excess of around 5-10mm.   I thought about desoldering the unused wires, but they were soldered into the PCB in bundles and it proved too difficult.

I then soldered the long wires (with the exception of the green and one of the blacks) to the Amiga power lead, using more heatshrink to cover the joins.  The colours on the Amiga lead are different, so be careful.

Red = 5V
Black = GND
Brown = 12V
White = -12v

Here’s a pic with what pin is what:


Might be worth checking the pins match the colours with a multimeter.  The shield pin can be left disconnected.  Again, I wrapped that in heatshrink to insulate it.

I also then soldered the green wire to the remaining black wire – this will ensure the PSU powers up as soon as it is plugged in.  

Then I tucked all the wires back into the PSU screwed it together and powered it up! Simple as that.

However, after proving everything worked, I opened the case up, split the green and black again, and instead drilled a hole in the case and connected them via a small switch so I could turn the power off at the brick, just like on the original.  Again, using heatshrink to insulate all the soldering.

Hope that helps!  Here’s a link that contains all this information and I found it very useful:


I also checked to make sure that the metal body of the case had full continuity to ground using a multimeter, and that none of the other pins were shorted to the case, before I switched it on, just to be a little bit more confident. 

When you do switch it on for the first time, probably worth double checking the voltages at the pins with the multimeter.   They will be a bit off, but that’s because they’ll only settle when they’re under load (for instance I was getting -19V on the -12V rail without the Amiga connected) – and make sure you don’t accidentally short any pins to ground while testing.

Once I was sure I wouldn’t be opening it up again, I used some hot glue to secure the power lead grommet into the hole where the ATX loom originally exited the case.   I also stuck some small rubber feet to the bottom J


Good luck!


Friday, 19 June 2015

Fuse SDL full screen with no picture / blank screen on Raspbian

OK, so slightly out of sync with the whole Pi-Spectrum mash up build log, but I've been spending a little time playing with the software.

When using the Raspbian Wheezy image with the SDL version (read command-line version) of the Fuse spectrum emulator, it would not go full screen over HDMI.   I'd be left with a plain black screen, yet I could hear the emulator running through the speakers.

I noticed that the Fuse-SDL that comes as part of Retropie doesn't suffer this problem.   Since Retropie is based on Raspbian I assumed it was down to emulator config.

For a number of reasons, I don't particularly want to use Retropie - preferring to manage the emulators myself and omit the EmulationStation front end, for now at least.

Anyway, the long and short of it is that it seems the SDL version included with the Raspbian image has a bug in it (this bug is not present in Retropie), and a helpful soul has recompiled it with this bug fixed.

Instructions can be found here:

https://www.raspberrypi.org/forums/viewtopic.php?f=78&t=98374

Find the post by exobuzz, dated Mon Feb 16, 2015 11:15pm.

Upon installing the deb packages, I got a couple of errors regarding dependencies, but the FUSE emulator now works beautifully, full screen, over HDMI or composite.

Just thought this tip might prove useful to you guys who are equally as nooby at Linux as I am...

Monday, 25 May 2015

What happened to the coding? The Raspberry Pi Powered ZX Spectrum got in the way!

Okay, so there have been no articles on mobile development... No excuses.  But, I've found something else I want to blog about...

Rediscovering my first...


Like many guys my age (pushing 40) I started computing on a ZX Spectrum.   Some time around 1983, we had a 16k, rubber keyed beauty that my mum bought second hand from a work colleague.

Cue playing classics such as GalaxiansPhasorchaseOrbiterGround Attack and Haunted Hedges...

It lasted about 18 months before it reverted to a constant purple screen with flashing blocks.  No more ZX funtime...

Until Christmas 1985, that is... when Father Christmas surprised me with a Dixons Action Pack.... This contained a 48k Spectrum+, 10 "games" (ahem), Kempston Joystick interface, a Quickshot 1 and a tape player.



This little black beauty worked faultlessly for 4 years, joysticks came and went (until I discovered joystick perfection in the form of the Competition Pro 5000) as did tape players, until finally time itself caught up and Santa again worked his magic and left an Amiga 500 under the tree.

Fast forward 25 years to 2015.  The spectrum has seen occasional nostalgic use, but has spent the last 12 years in a plastic Burton's bag, under a table in my old bedroom at my parent's house.   Until recently that is when I attempted to demonstrate to my 7 year old twins "how it was in my day".

Inside the bag was one cassette.  Renegade, by Imagine.   Although I couldn't find the tape lead, to my surprise I managed to load the game at the first attempt using a stereo lead, half pulled out!



The game worked for 30 mins (without half the keyboard - new membrane required methinks) and the kids loved it... then the picture started flickering. Then the game crashed and wouldn't reload, and then the screen went black...

After a couple of days, I tried the old girl again and to my relief, she still works.  Chatting to fellow owners on the Spectrum 4Ever Facebook group I realised I probably need some new capacitors and a ULA heatsink.  

But this got me thinking...  could I get the Spectrum experience without risking going through the inconvenient setup of the classic hardware?   Perhaps a Raspberry Pi in a Spectrum+ case, which for all intents and purposes looks indistinguishable from the real thing?

A quick google search showed it had been done before - but now its my turn!

The Case...

OK - so the good news is I'm not going to tear into my beloved Spectrum+ to use the case for this project.   I'm a believer in preserving classic hardware as much as possible.   So, I took to eBay, and for what I consider a bargain £11.54,  I got myself a rather nice, empty, Spectrum+ case....


The case is in great condition - with the exception of one of the rubber feet which appears to have degraded and become a kind of sticky blob.  Other than that, 20 minutes with the baby wipes and a Nintendo DS stylus to get into the cracks, and the case is spotless, with no yellowing of the lettering and no grubby deposits on the keys.   

A sticker on the back says "Keyb OK" which is a good sign, and interestingly this Spectrum was built by Samsung in Korea.   My original one is UK made. The other difference I've found is that the keyboard back plate on this one is steel, whereas on my UK model it's plastic.  

From what I've read online, the Samsung models have a much better keyboard membrane which probably explains why this one still works and my original one is now on its way out...



No cuts, no buts.

One of my personal goals for this project:  I don't want to modify the case in any way.   The other projects I have seen have been great, but the builders seem to have taken a saw to the case to make things fit, mainly around the sockets on the back.  I don't want to do that.  I'm not overly precious about these things, but I think it's a nice goal to have - keep it looking as original as possible.

Next time...

The first job on my list - getting the keyboard working. 

Sunday, 18 January 2015

Welcome to my blog!

Hi everyone!

After many years developing Windows applications, websites and data warehouses, my career has turned to mobile development.  Mostly Android, but some iOS too.

Like all devs I spend a lot of time Googling for code and reading articles on Stack Overflow, but quite often answers can be long winded or misleading.

I'm hoping to use this blog to cut out a lot of the fluff and document quick, simple solutions to some of the programming issues I face when I'm coding.

My intention isn't to give full-on in-depth descriptions on every topic: but to convey enough information to allow you to get something up and running quickly and give you a push in the right direction.

Cheers, and best wishes,

Simon.