Sunday, May 26, 2024

Another Mug's Eyeful - PCW9512 Part 2

After having the PCW sat around for a while I decided it was time to get a boot disk sorted for it. The only 3 inch disk I had was actually for a PCW8256 which is not directly compatible with machine (sort of) and it certainly wouldn't boot the PCW9512. So on to eBay and, following a quick search, a correct boot disk was in the post.


A totally not AI generated picture of the disk
because I realised I didn't have a picture of 
the real one and panicked...

A few days later I excitedly ripped open the cardboard envelope and went out to the shed and dug out the 9512 from it's shelf. First I switched it with no disk, just to make sure the CRT was still operational and there would be no unexpected bangs or magic smoke. Sure enough, a white screen followed by three loud beeps i.e. can't find a correct disk.

The boot disk was inserted and the machine reset.

And...

Nothing.

Well, not quite. The screen flashed, the drive tried to do stuff and then, after twenty seconds or so, three beeps. Darnit.

I had replaced the belt for the floppy drive late last year so I knew that the drive should be good to go. There were two possible issues. Either the disk I received is faulty (unlikely), or the drive needed to be calibrated to read the disk (slightly less unlikely given the unit's age).

I have to tell you now that getting to the floppy drive in these machines is a real pain in the backside. You need to dismantle it almost to it's bare components to get close to it with many screws to remove, several of which are different sizes. And it also has the added spice of a CRT which, as we all know, can store several thousands of volts to make you sad if you accidentally touch something inappropriate.

But with no other choice, I got the screwdriver out and got started. Eventually, I ended up with the unit on its side and the floppy drive hanging out on its cables. This was rather precarious to say the least. What I was planning was to loosen the two screws that hold the head stepper motor, rotate the motor a fraction and then try reading the disk again (this is the technique employed by Noel's Retro Lab when he worked on a CPC6128 floppy drive). It was not straightforward and the closest I got was when the thing suddenly started to seek in a different way and, eventually, I got four beeps.

 

Danger! Danger! High voltage!

After a bit of a ponder I realised I could put it back together enough to make it easier to work on, but with the floppy drive connected via the cables dangling out of the front of the case. Much better.


Ah! That's better. And safer..


But then things went wrong. After an hour of tweaking backwards and forwards I still hadn't found the sweet spot. But I had found that if I held the drive in my hand, it would 90% of the time, seek as if it was a read error (four beeps) rather than 'no disk found' (three beeps). I wondered if there was a capacitor issue. The board on these things is quite small but there were a few electrolytic caps on there that I just so happened to have in stock. I didn't get any proper pics of this but there's one that shows the red capacitor which is one I changed. Re-capping isn't really a spectator sport.


A red capacitor. That I put in. Steady now..


But the drive continued to behave exactly the same. Before I could work out why this was the case, the drive died. Dead. Kaput. No sign of life at all. I switched it on and got exactly nothing.

Darnit, again.

I started to look at the circuit board and see if I could work out what had failed, starting at the power supply rails. With the power on, there was 12v at the power plug and at a couple of other places on the board. But there was nothing on the 5v rail at all beyond the power plug. This was worrying as the 5v  rail drives the chips on the board.

After some probing I found that there is a component called Q4 that was open circuit. A similar component was at Q3 but this wasn't open circuit but seemed to short circuit. I couldn't believe that this would be correct so I desoldered them for a closer look. Being through hole components they were simple to remove and a quick Google of their numbers (N11004 and N11008) revealed that they are 'circuit protector' devices, very similar to fuses except they continue to work if the overload current disappears - in theory. The N11004 stops conducting at 0.4A and the N11008 stops conducting at 0.8A.


The protectors.

I put them both in my component tester and found that the N11008 came out as a negligible resistance (correct) but the N11004 came out as 'broken part or no part inserted' (incorrect). 


N11008 has a tiny resistance


Broken. :(


So, I decided to take a risk and solder a wire link across where Q4 actually sat on the board. What's the worst that could happen? It's dead and useless anyway..


Link added at Q4. 
No protection on 5v but I'll take that risk

Nervously, I switched the PCW back on again and...

....partial success. The disk now spins. More importantly, it spins when the PCW is switched on and the it stops when the PCW emits it's three beeps to say it couldn't find a disk. So it half works. But without the heads moving, it's a bit of a doorstop - and not a very good one as it's too small and light. 

I looked up the other chips on the board and found that the M52819 is the floppy drive controller and interface. I'm fairly sure this chip is OK as it is trying to control the drive as shown by the spindle motor starting up and turning off. The next chip is marked MH003 and I can find nothing on this chip at all. I have no idea what it is or what it might be. Any suggestions welcome.. The final chip is actually a through hole device and is on the other side of the board. This one is an AN8250N which is a 'stepper motor driver' chip.


The AN8250N hiding in the background...
(This picture looks familiar... Hmmmm...)

Ah-ha! Perhaps this is the cause of the issue? I saw from the datasheet that pin 9 is the 'starting voltage' which should have a typical voltage of 10.2v on it. When the PCW is switched on this voltage is a steady 1.8v so something is clearly wrong. There is a tiny SMD transistor mounted between the pins of the IC and the top contact is connected to pin 9 so I started to wonder if that was acting as a control to the starting voltage. I could try removing it from the board and then test it with the component tester but I've seen ants bigger than this transistor.


This is about the size of a thick grain of rice...

So I decided to solder a wire to the board at each of the three contact points. I have a reel of wire wrap wire that is a very thin coated copper wire which is perfect. It wasn't too difficult to solder the wires on to the board but the result from the component tester was a bit odd to say the least..


Component tester plugs hanging from the
thinnest wires in the world..

It came out as two resistors in series with values of 887 ohm and 4.18 ohm. This really doesn't seem right but could be as a result of the fact it is in circuit. 

I decided that before I start looking for an AN8250 on eBay (or other) I should see if I can replace that SMD transistor. It has the marking 'CR' on it and this seems to be a C945 NPN transistor. So I've ordered some of those but it will be a while before they arrive. 

In the meantime, I have a cunning plan....for next time.

Wednesday, May 01, 2024

And now for something completely different...that actually works (spoiler).

For various reasons my spare time is currently devoted to other things which means I don't have a lot of time for the vintage/retro/possessed computers of old. But I stumbled across a youtube video that intrigued me. It was such a simple thing. And it was cheap. 

It is a simple bluetooth adapter that can be installed in a ZX Spectrum which completely removes the need for a cassette player to load games. (You can't save anything with it but that's not an issue - keep reading). When the speccy is switched on it powers the bluetooth module up and it becomes available for your phone or other bluetooth device to connect to. Then all you need to do is play a .wav or similar file taken from a speccy game cassette and it loads just like you have a cassette player installed.


My speccy with no lid


"But", I hear you cry, "you have one of those fancy SmartCards from the chaps at Retroleum (now at version 3.1 but mine is a version 2). Why would you need to do such a thing?"


My Smartcard v2 in a 3D printed case


Because I bloody well can. So there.

A quick trip to eBay and I got a ridiculously cheap bluetooth board, specifically advertised to work with the speccy. Installation was dead easy and required just three small wires to be soldered to the motherboard, +5v, GND and Audio. 


I'm blue ba da...oh I already did that joke


I located it underneath the heatsink - I hope it'll be OK there as it does get quite hot, I really need to get one of those modern voltage regulators that don't generate any heat. The +5v and GND were soldered to one of the caps and the audio wire on a resistor close to the 'ear' socket (which everyone knows should have the BLACK connector on the original cable - that's a hill I'm prepared to die on). 


"I have the power!"

'Ear, what you up to?


Button her up, she's ready to go.

And that really is it. After putting the case back together I plugged it in and checked that the Sinclair Research message appeared as normal. Nothing is any different unless you search for bluetooth devices with your phone. Then you will find an additional device 'BT_Audio' or similar. There is no password or anything on the bluetooth so just tell your phone to connect to it. Once it's connected, all audio will go out through the speccy's tiny, tinny speaker. 

But that's just fine for loading stuff. I downloaded an app (Google it) which contains many spectrum .TAP images and which plays the audio through the phone as if it were on tape. Then I connected to Bluetooth and set one of the games to start loading... And...

Chase HQ. An epically good Speccy game

..it works perfectly. If I have one criticism it's that the volume of the audio isn't that loud through the speaker. I don't know if it's because the Bluetooth units volume is deliberately set low, or whether it's because of where the signal is injected but it is still very quiet even when the phone volume is turned up full. Everything loads without issues though so I assume because it is a very 'clean' signal going into the Speccy the system can handle a bit less volume. Long time speccy owners might notice that the raster bars for the initial signal don't look quite right, where I think they would if the volume was a bit louder.

I can, of course, still use the SmartCard but what it does mean now is that any audio files I get that aren't compatible with the SmartCard I can load into the speccy as if it were from a cassette and then hit the NMI button and save an image to the SD card. To do this took a bit more fiddling than I expected as I couldn't work out how to get the speccy to just boot to it's normal startup but still have access to the SmartCard.

What I ended up doing was loading in VU-3D. Then I broke into the program (it's mostly in basic) and the typed 'RANDOMIZE USR 0" which basically does a reset. Then, once the 'Sinclair' message appeared I clicked the NMI button on the SmartCard and saved the image as a blank image. This means if I load that image back in, I am back to a plain, empty spectrum experience.

The upshot of all this is that if I have a game I want to load via the Bluetooth then all I need to do is load up the blank image, type LOAD"", press play on my phone and wait for whatever it is to load. Once it's loaded I can press the NMI button and save the new image as something else. I can't believe I'm such a genius..... :D  So far, I've loaded the original Jet Set Willy (I only had JSW2 previously), Ghostbusters and a couple of others. It's surprisingly nostalgic - if a bit quiet - listening to the loading sounds of the speccy, but still very functional.

Anyway, it works, it was cheap and it means I can post something relatively quickly before I go back to 'other stuff'. :)

Gratuitous Spectrum shot

Don't worry, I'll be back to the Torch Triple X soon, despite me now thinking it's possessed...