Saturday, July 22, 2017

Unintentional Floppy Drive Repair

In my quest to collect as much Amiga stuff as possible (not to annoy Mrs Crashed despite what she says), I acquired a box of used floppy drives. All but one have been sold and it is this last one that this post will focus on.

It's an RF-332C which, if I am remembering correctly, was a popular and well regarded model at the time. Well, this one has a problem. It doesn't work. The disks don't spin and there's no sign of life other than a sad little 'chunck' when the Amiga is turned on. I thought that it was beyond repair so I started to strip it down to have a look inside.

The case is easy to remove. Six screws undo and the drive unit slides out of the front of the main case and the controller slides out of the back.

Six Screws
Outer case removed
The drive unit has a metal cover held on by a single screw and a few clips.

Drive Unit Cover Removed

Next, I took out the two screws holding the upper head. This folded over nicely to reveal the bottom head. Both were surprisingly clean. It was at this point I realised I had made a minor error. My assumption had been that the drive didn't spin because the motor was dead.

Nope.

The drive didn't spin because the DRIVE BELT had perished. Yes, this unit has a drive belt. A bit of googling revealed a very useful youtube video which showed how to replace the belt but more importantly revealed that these belts are still available for a a couple of quid. Yay! A few days later the postman delivered an envelope containing said drive belt.

Dismantled - Awaiting new drive belt

Then the enormity of what I had done hit me. I had removed the top head.

Arse.

Floppy drives may seem primitive and a bit quaint in comparison to the storage options we have now but they are actually quite sophisticated bits of equipment. For example, the drive heads must be aligned correctly, to the merest fraction of a millimetre or they just won't read disks - or at least, disks written on other floppy drives including commercially produced disks. And I'd removed that carefully calibrated bit without a care in the world. No matter how hard I tried I was never going to get it back in the right, calibrated place. The drive belt was dead easy to fit without the top head being in place but that's not the point... Re-assembling the drive was also a piece of cake, just make sure everything goes back in the order it came off. Easy.

Does it now work?

No.

That's not quite true. The disks now spin as they should. The drive also attempts to read the disks but, rather unsurprisingly, doesn't.

In a previous post I detailed how I'd used the app by Tobias Richter to 'tune' the head of the floppy disk in the scarlet Amiga. Well, this time I used a combination of that, and X-Copy. It took a couple of hours to get the top head to read anything but then, all of a sudden, I found the spot where it just worked. Excellent.

This got me thinking. Although the slimline drive now works, I wondered if it would actually read all disks, including those formatted by another drive. Would disks formatted in this drive work in another one. Well, as it turns out, by accident I now have three re-tuned floppy drives and a calibration disk written from a known 'good' drive that I no longer have....

Are all three drives now correctly calibrated? Let's do some tests and we'll find out! It'll be fun!*

*Will not be that much fun.

First up, write an ADF file to the internal floppy drive. Then run X-Copy CHECKDISK+ on it. Note that an 'ADF' file is an exact copy of a 'real' floppy disk but held as one file. Using an app on the Amiga I can write these to a disk to give an exact reproduction of the original floppy disk. Here's the result of CHECKDISK+ on DF0: where green 'O's are correctly read data.

Written in DF0 - Checked in DF0.
No problem. Now lets see if this will be read in the slimline drive which is DF1:.

Written in DF0 - Checked in DF1
Again - no problemo!

And now, in the enormous Cumana drive that came with the scarlet Amiga.

Written in DF0 - Checked in DF2
Ah. Not perfect. There are three block checksum errors (the red '6's). Not too bad but still enough that the game may not load properly through DF2:.

So, let's try that again but this time I'll write the ADF using DF1: which, if you remember, is the slimline re-calibrated drive from above. First screenshot, checking the written disk in DF0:.


Written in DF1 - Checked in DF0
No errors. This is a good sign and means that the DF0: and DF1: drives are in a similar state. Next up, checking the disk in DF1 which has just written this disk:

Written in DF1 - Checked in DF1
As expected, no errors but then DF1: did just write this disk! Next is the same disk but checked in DF2, the humongous Cumana drive:

Written in DF1 - Checked in DF2
Oh. That does not look good. Because all of the errors are on the topside I can only assume the heads on DF1 are not in the best position to write the data in a way that can be read by DF2.

Let's move on. Time to write that ADF file to the same disk but now in drive DF2. First check in DF0: picture below:

Written in DF2 - Checked in DF0
Oh dear. Far more problems here than I would have expected. Checksum errors, sync errors, header checksum errors... DF0 does not like DF2 written disks.

Next is the same disk checked in DF1. Based on the results of DF0 I'm not holding out much hope.

Written in DF2 - Checked in DF1
Well, crap. That seems to confirm that DF1s top heads aren't in the best position and may need re-calibrating again. Although, DF0s issues all seemed to be on the top too. Hmmm.

Finally (well done if you made it this far), the same disk checked in DF2.

Written in DF2 - Checked in DF2
This should have been error free but for some reason DF2 says there's a checksum error on the topside. At least that's the only one.

So what have we learned from this? Basically, none of my drives appear to be calibrated correctly but DF0 and DF1 (internal A500+ drive and slimline drive) seem to play together better than DF2.

Any other suggestions welcomed below!





Saturday, June 03, 2017

Amiga A1200 in a Micronik Tower

This post is primarily to show my pride and joy - that I am now looking to sell. I am an Amiga nut and always have been but sometimes real life takes precedence...

**********************************************************
UPDATE 4th July 2017 -

After failing to attract any interest on the Facebook page or eBay as a complete unit, I dismantled this and sold it piece by piece. I made more money that way but I was disappointed that the complete system could not go to someone who would appreciate it as it was.  Cest la vie.

**********************************************************

On with the show.

When the A1200 was launched it was a capable machine but, even in 1992, the PC  was starting it's rise as more than a boring green screen spreadsheet generator. The expandability of the A1200 was a bit limited, being restricted to a (somewhat pointless) 16 bit pcmcia slot, an ide interface and a trapdoor expansion slot. But the trapdoor does allow access to all of the input/output lines and is essentially a Zorro slot with AutoConfig. 

Just as an aside, AutoConfig allowed pretty much any expansion to be hitched up to the Amiga and it would just work. Windows would not get this equivalent functionality until 1995 but the Amiga had it almost from day 1 (c.1986!).

I digress.

By shoving the A1200 into a tower case, this allows more expansions to be added via additional boards known as Mediator boards. These connect to the expansion slot and act as an interface to standard PC PCI or Amiga A2000 cards such as graphics cards or sound cards or even ethernet cards. It was for this purpose that I bought the Micronik tower. Sadly, these 'Mediator' boards are even more rare than rocking horse droppings (and more expensive).
  

Tower Loveliness

This is a Micronik tower which is built from plastic modules that fit together around a minimal metal frame. It includes slots on the back for accommodating any installed PCI or Zorro type cards (additional Mediator board required to install PCI or Zorro cards). It has a Rev 1A A1200 motherboard installed. This board was re-capped in 2014 (see here) and the audio fix was applied at the same time. For more info on the audio fix see RetroGameModz youtube video here.

Rev 1A - Channel Z


There is a single floppy disk installed although there are two slots which should allow a second unit to be included if necessary (you'd need to find another plastic frame to accommodate this). I currently have a standard external floppy plugged into the socket on the back and the unit just rests on the top without any problem.

There are three bays for CD-ROMs etc and there is a SCSI CD-ROM installed.

CD-ROM's Butt

The power supply is 200W which is more than enough to drive whats currently installed and should be ample for most Mediator boards with a couple of cards installed.

Power!

There is no Mediator board included with the tower.

There is an ACT Apollo 1220 accelerator board installed with a full 68020 at 25Mhz with 4Mb of RAM. This is the maximum this particular board can handle but it does mean it stays PCMCIA friendly and still does a pretty good job of zipping things along.

68020 Accelerator
Memory...
Cowabunga indeed...

This particular case also comes with a couple of caveats. The previous, previous owner had cut off the plastic plug that linked the power supply into the keyboard adaptor board. The previous owner (who I bought this from) just used a standard Amiga power supply brick to drive the motherboard. I did try to find a replacement connector but it proved harder than I expected. To allow the whole system to be switched on from one button, i.e. the red button on the front, I soldered short cable lengths to the connector in the case (see photos), and then linked to the power supply by a simple connector block. (I should point out that I had not intended to sell this, hence the slightly unorthodox solution.) Then I inserted the power port adaptor at the base of the rear of the tower. The next owner might have more luck in finding the right internal connector. Either way, what I did is easily reversible.

Power Connector Block

Wires Soldered to Power Connector
Power connector adaptor - the whole reason I soldered the wires internally!

The top panel of the case is a simple loose fit on top. Despite having obtained a PDF of the case construction instructions it's not clear if this is the way it's supposed to be. I added two small screws to stop the 'lid' from being pushed off too easily.

Top Cover
There is a right angle PCMCIA adaptor that allows the PCMCIA connector of the SCSI interface to connect to slot without any problems.

PCMCIA Right Angle Slot

The A1200 keyboard is contained in an external case with a coiled cable that has a PS2 style plug. This also means that it's possible to use any PS2 style keyboard and, to be fair, they do actually work quite well. The existing A1200 keyboard is fully working. Note that the keycaps show some sign of blooming after a couple of attempts at retrobrighting them...

Bloomin' Keys (See what I did there?)

Keyboard underside

To allow the CD and Amiga audio to mix I have a 'home brew' audio mix cable which takes phono cables from the CD audio out and also from the Amiga audio out and combines them into a single pair of standard phono cables. It's not just cut the cables and join them together. It has resistors in series to generate the right impedance. (Audio purists might be outraged by this - but tough.) The levels produced are comparable enough to make playing games like Liberation perfectly OK.

One of the smaller back cover panels is missing but this gives a handy exit point for the CD audio connectors. :)



In summary this is what you get:

A1200 Rev 1A in Micronik tower
A1200 keyboard in external Micronik keyboard case (with cable)
Kickstart 3.1
68020 4Mb Accelerator card
External 3.5 inch floppy drive
Logic 3 SpeedMouse
Power cable
Squirrel PCMCIA SCSI interface
SCSI CD-ROM
CF IDE adaptor with 4GB card (pre-installed with WB3.1 and WHDLoad)


So there you have it. The price I'm asking for this is shown on the Amiga Facebook group. See you there.



Monday, May 01, 2017

The Scarlet Amiga - Where is he now?

My regular readers will remember the horror that was the Scarlet Amiga. He had endured a tough life and one that no 16-bit 1990's home computer should have to suffer. Having rescued him from eBay, I set about making things right.

I didn't quite finish his story so this post brings an end to that and gives some closure to this tale of betrayal and intrigue*.

*does not contain betrayal or intrigue.

Firstly, all of the red abomination has gone. After picking off the gloss red paint I spent some considerable time sanding the case to remove all remaining traces. If you look closely in the 'vents' and ridges at the back you might see a few specks but in normal use, this Amiga is now beige. You might also notice that the top section of the case is rather lighter than the bottom section. It's not clear of this is as a result of my sanding or if the paint layer on the top case actually offered some protection to the colour and prevented the dreaded yellowing effect.

Almost looks completely normal. Almost. 
Two tone case - Note also chip in top case
near the numpad 'Enter' key.

I could sand the bottom section so that it would match the top but a) that would remove the original surface patterns etc from the bottom case and b) I'm far too lazy to do that. The case is clear of the red paint. It's time to move on....

One final point on the case. The plastic material for it seems very brittle in comparison to the A500+ that I used to have. The later 500+ seemed to be a more 'oily' plastic that was more flexible and, bizarrely, felt softer. Perhaps the age of this particular case means that it's just naturally that bit more brittle. Perhaps the production material was changed as time went on. Feel free to comment below if you know (or have an opinion!).

I've kept the keyboard. Its dual membrane loveliness stays with me. So there.

Why am I obsessed with the dual membrane keyboards?

Without KB or shielding - note Rev 8 board

Faithful A501 - survived the Varta onslaught

The more eagle eyed amongst you may have noticed that this is actually a Rev 8 motherboard. In fact, it is the same motherboard that I repaired here. The original 1.3 motherboard went to eBay after I replaced its mouse port. I have always had a thing for the A500+ as it was my first Amiga. There's something comforting about watching the little blue disk disappear into the drive on the purple background. Much nicer than a plain white screen with a picture of a floppy disk on it. And I know that the consensus is that KS1.3 is the most compatible for games etc but, to be honest, I've found very few games that didn't work with the A500+. I certainly have far more trouble with the A1200 and games...

Along with the scarlet Amiga I also got a scarlet external drive. The case of this has also been relieved of most of its ghastly red covering but the results have not been as satisfactory. Underneath the red was the original cream paint and, in my rush to rid myself of red I managed to scrape through some of that too. It needs a really good sanding down, almost all the way to the bare metal before I spray it a more appropriate colour. I'm sensing beige. Or maybe beige. Possibly beige. No, wait. I know. Beige.

That case still needs some work...

More upsetting was that the drive would not read any pre-written disks. Not Workbench2.04, Extras, Fonts or even Workbench1.3. Another job of aligning the heads was in order which took some considerable time because of the way the drive is held in the case. To be able to adjust the read head I need to have the drive 'floating' but this causes problems because the platen underneath the drive is not covered. It was all too easy to knock the drive and then hear the scraping of the platen on the case underneath... It was, to put it simply, a major pain in the rear. After a lot of faffing I managed to get it to read 99% of disks but more importantly, disks formatted and written to on this drive were readable by my other drives. The one exception was an original Workbench1.3 disk I had. No matter what I did the drive just would NOT read it at all. I have no idea why. The disk works in my other drives but not in this one. But all the other original disks I have do now work in this drive. I will just have to put it down to the vagaries of floppy disks in general.

To be fair, this drive is nearly 30 years old...


...and needs some new feet too. :)

And here, gentle reader, ends the tale of the scarlet Amiga.


Calling All Original Xbox Owners

Lots of vintage computers and consoles suffer from a problem of leakage due to age. This type of leakage is a little more damaging than a weak bladder though. Batteries leak their acid over motherboards or logic boards, destroying PCB traces and components. Capacitors leak their electrolyte and do the same although normally at a slower pace.

It turns out that even more 'modern' consoles are not immune. If you are an Xbox owner, and I mean the ORIGINAL Xbox, not the 360 or Xbone, then you need to act now. Inside the Xbox is a capacitor that was used as a way of retaining the time and date while the console was switched off. Well guess what. The caps used weren't that good a quality and now they are starting to leak and destroy Xboxes, quietly and without any fuss.

Later Xboxes actually had an improved capacitor and are not affected by this problem. A quick way to check is to look at the bottom of the console and find the manufacturing date. If it is 2004 then you are probably OK. If it's 2003 or earlier then you need to do something NOW.

Here's my Xbox looking a bit dusty but, otherwise, in fine working order.

Dusty - But good.
First things first, this one was made in early 2003 so almost certainly has the dodgy clock capacitor. Lets get that top off.

Topless - insides not seen in nearly 15 years
There are the DVD drive and hard disk on top. It's a simple matter of disconnecting the cables then undoing three screws to remove both units. 


Yup - it's a hard disk

Phillips DVD - has a non-standard power connector though

Logic board to the left (green) - Power supply right (brown)

The capacitor is located in a little gaggle near the front and is labelled C7G3 with a C7G2 label nearby. In the picture below there is a suspicious 'shadow' around the capacitor..uh-oh.


Has it leaked?

Yes, why yes, it has.

It has definitely been leaking. Fortunately, there looks to be no obvious damage but the thing has to come out. I tried the 'wiggle' removal method but the cap was soldered tight into the board and I just couldn't get enough movement going. Break out the soldering iron....

To get at the pads I had to remove the entire motherboard. It wasn't too difficult but there are quite a few screws and they are all the 'torx' variety. Have a set of multi-sized torx screwdrivers handy when you do this.

Cap legs marked - don't want to get that wrong!

It was a 30 second job to get it out with the soldering iron. Hit each leg in turn and pull. Eventually, the cap 'walks' off the board. You can see the corrosion on one leg of it in the picture below caused by the highly acidic electrolyte.

Another bad cap.

A quick clean up and it seems there's no lasting damage. It's worth noting that these earlier versions of the Xbox do not need this capacitor to work. However, later versions do so if you try this on a 2004 onward model you will need to replace the cap with an equivalent..


Before cleaning - the spillage is obvious

After cleaning - the spillage is gone

I re-assembled the Xbox and tested it just to make sure I hadn't affected anything else. The only difference is that it will not retain the date and time now but he's safe for now (until the other caps decide to leak....).

There is a lot of information on this issue across the internet including here, here and here. There's also a great teardown by iFixit. If you have an original Xbox, take note and don't delay. Do it now! Go on. What are you waiting for?

Monday, March 06, 2017

Amiga CD32 Controller For Under £20

Anyone who followed the Amiga will remember the famous advertising hoarding outside Sega UKs headquarters that Commodore UK cheekily put up just after the launch of the CD32. The Sega advertising proclaimed 'To be this good takes ages' where the 'ages' transformed into 'sega'. Very clever. But Commodore went one better.

For some context, Commodore were actually the first to release a mainstream 32-bit CD games console despite the fact that it was really an A1200 with a CD-ROM (and not a very good one either) with only the addition of the Akkiko chip being really any different.

That didn't stop Commodore pulling one of the greatest feats in advertising:

Brilliant.
According to Amiga Format that month, the advertising hoarding was then mysteriously booked for the next ten years by an 'anonymous' advertiser...

Anyway, I owned an Amiga CD32. I actually bought it from a shop in Coventry Cathedral Lanes which I think was called Kompleat Computing (or something). A loooong time ago. To my eternal shame, when I moved house in 2003 I threw it in the skip. A decision I have regretted ever since.

Fast forward to today. I now have an A1200 safely tucked into a Micronik tower with a SCSI CD-ROM and full 68020 accelerator with 68881 FPU and 4Mb of extra RAM. It also does a decent impression of a CD32. I can play Liberation, Alien Breed Tower Assault and many other games that didn't use Akkiko (the planar to chunky converter for the more geeky amongst you).

But it's missing one thing. A proper CD32 controller. This isn't normally a huge problem but for some games, such as Guardian, you have to have a controller otherwise the game is not playable. Unfortunately, the CD32 controllers were a bit, er.. crap. Not many survive and those that do are stupendously stupidly expensive on places like evilBay.


Yes, it really looked like that...
There are other options such as the Competition Pro CD32 controller but these are even more expensive on evilBay that the originals by an order of magnitude.

To get around this I asked my parents for a 'slightly specialised' Christmas gift in the form of a KMTech AmiArcade CD32 controller board. This clever little board provides exactly the same internals of the CD32 controller but in a small square package. The idea is that the board provides the complicated signal bit and you provide the switches and buttons. The main audience is arcade fans who build their own boxes with arcade grade switches, buttons and joysticks. For my project I was aiming a bit lower partly due to space constraints but also down to costs. I had to make my CD32 controller for next to nothing.

First step, to find a donor controller. On evilBay I managed to locate an old Gameport PCSprintPad, originally for use with PC. This would be perfect for my project as the size is similar to the CD32 controller and it had more buttons than I needed. It cost me 2 quid. Bargain.

Cheap.

After dismantling it I started to wonder if I could make use of any of the additional switches and buttons on the board. After some pondering I decided against it. It would get far too complicated and possibly wouldn't work correctly with the KMTech board. So to simplify things, I removed ALL the components on the internal board. Everything. Nothing was spared. By doing this I basically stripped the board down to a set of simple switches.

Shiny Buttons - but from the wrong side....

At this point, I realised I had a slight issue. The cable with the joypad had a Gameport connector on the end (not for long! *SNIP!*) but this meant that the cable had only 10 cores. For my CD32 I would need:

  • Up
  • Down
  • Left 
  • Right
  • Play/Pause
  • Red
  • Green
  • Blue
  • Yellow
  • Shoulder Right
  • Shoulder Left
  • Ground

Now, I may not be a maths professor but last time I checked, ten is less than twelve. I could get some 12 core from evilBay or Amazon but, as I said, I have to do this for next to nothing and my budget of 'nothing' had already been blown by the two quid on the donor controller. Fortunately, I had some other cables free. You might remember my 'el cheapo' joystick. I nicked the cable from that to provide my extra two cores. My plan was to twist the two cables together and secure with cable ties. Cheap and ugly but effective.

Earths all connected - I really did take everything off...

Next, I examined the donor controller circuit board to identify all of the ground connections. I needed to link them all together so only one wire would be needed back to the controller board. This took a little bit of careful tracing of tracks but was relatively straightforward. Where necessary I soldered wires to appropriate points and ran those through the board back to a central point on the reverse. Eventually, I had all of the grounds connected into a professional looking solder joint*.

*does not look professional

Next, to wire up each of the controls. This wasn't that hard as most of them had a convenient hole and pad to solder to from the original wiring.

Finally, put the whole thing together and check the switches/dpad etc worked as expected. Fortunately, it went back together without too many issues (trapped a wire or two but easily sorted) and the switches looked fine for operation when I checked with my multi-meter.

All wires connected.
Next job, build the controller board. I was given the kit version of the board which is quite a bit cheaper than the built version. If you have any soldering experience I'd recommend you save a few pennies and go for that version. The board is very good quality and the components easy to identify and install.

Installing the cable from the controller to the board was straightforward too, once I found the piece of paper I'd written the button colours and corresponding pin numbers on...

The last part of the controller build was to attach the provided 9 core cable and plug. This cable is the actual link to the Amiga joystick port. No problems, nice and easy soldering job at the connector and the board.

Construction Complete

Time to test.

First, the good news. As a simple two button joystick it worked great.

The bad news. It just would NOT work as a CD32 controller. I got my oscilloscope out to have a look, and I read up on how the CD32 controller actually works. I learnt quite a lot. Everything in fact, except why this wasn't working.

I thought maybe I'd damaged the chips or that the chips were just dud so I changed them. No difference.

I checked all of the connections from the Amiga to the board. No problems (but we'll come back to that).

I checked all of the connections to the controller buttons. No problems.

I even found two different joystick test programs in case the first one wasn't working but they both told me the same. The controller would not switch into CD32 controller mode.

A quick summary of how the CD32 controller works. When pin 5 on the joystick port is high i.e. a binary '1' then it is in normal mode. Usually, this is a one or, more rarely, a two button digital joystick with the basic UDLR and fire1 and fire2. When the Amiga switches into joypad mode, pin 5 is pulled low which tells the controller to use the built in shift register. This polls the status of each button (UDLR still switch like a normal joystick) and every few milliseconds send this data as serial data into pin 9. A more detailed explanation can be found here.

In my case, I could see the pulse of pin 5 switching low, pin 6 sending a clock timing signal and, what looked like data being sent on pin 9. But the thing would not work. I noticed that if I pressed certain button combinations some other button might work. So if I pressed the blue button and the pause button, the pause button would work. None of this made any sense.

I should probably point out that through all this I was in contact with the manufacturer of the board. He was extremely helpful and patient through all my rambling emails and pleas for help. I can't thank him enough for his patience and sensible suggestions of things I should try to make it work.

After another days thinking about all this I remembered something I had read about the serial connection. The cable shouldn't be over a certain length or problems might occur. I couldn't find where I had read it or what the maximum length should be, but I hatched a slightly drastic plan. I would cut off about 6-8 inches of the cable from the Amiga to the board, re-solder it using just that short section and see if it made any difference.

Super Short Link Cable
Guess what.

It worked. No problem. Every button worked perfectly.

Given that the controller itself has quite a generous length of cable, using such a short connector from the board to the joystick port isn't a problem. I still haven't worked out if the length of the cable was the problem or if there is an intermittent connection issue on one of the cores in the longer section of cable but, who cares? :)  It's now working and I can finally play Guardian.

At this point the KMTech board is still bare and exposed but at some point I may try and make up a small box or, if I'm feeling flush, see if there's a suitable project box at Maplin.

Here is my monstrosity in all its glory, cable tied cables and all. It's bloody marvelous!


Mission Accomplished
The eagle eyed out there may notice that the buttons are in a different order than the redundant switches proclaim. This was to more closely match the button layout of the original CD32 controller. This one has the buttons in a diamond shape whereas the CD32 controller has them in a square. I thought that the red button at the bottom made more sense than at position 1 so that's what I went with. It works pretty well in that layout too.

A final word. At this point in time, gameport joysticks etc. are common and cheap. Sacrificing a PC joypad for use on an Amiga is no loss to me. In the future, others may read this and weep in the same way I shed a tear every time I see an Amiga A1000 butchered with a PC motherboard and power supply. To my mind, there is not a single piece of PC hardware that has the character or mystique that the 16-bit machines (Amiga, ST or Archimedes) have. There is not a single piece of PC hardware since the inception of the PC that I, to be blunt, give a s*** about.