Wednesday, 17 January 2018

A new Microbee disk controller, from original design films.

One of the guys at the Microbee Software Preservation Project got his hands on design films for a Bee disk controller, so he imported them into KiCAD as image files, cleaned them up, and generated beautiful Ger bets that look exactly like they were made with Bishop graphics.

He sent me one of the resulting PCBs, and I spent some time last night throwing it together, using bits from my junk box. Note the cool labelling on my TI TMS2793 floppy disk controller IC. The bit on the right comes off when scrubbed with isopropyl, revealing the writing on the left. It’s still a TMS2793, but with a HP part number. I wonder if TI was responsible for the relabelling way back when?

Friday, 1 December 2017

Applix 1616

The Applix 1616 was a very cool 32 bit computer designed in Australia in 1985 by Andrew Morton. It used the Motorola 68000 (like a Macintosh!) and had a fully bit-mapped display. All very cool stuff. Many people (myself included) see the Applix as something of a successor to the Microbee, though minus the commercial success of the 'bee. Incidentally Microbee designed their own 68K machine (the Microbee Gamma) not long after the Applix became available, but struggled badly in development. The Gamma was never released publicly, and only a handful of prototypes exist now.

There were kits of the Applix available, and a blurb in ETI magazine, but things like 68K processors were obscenely expensive back then, so there was no way I was going to build one. That's all different now. I've got pretty-much all the bits in my various junk boxes and drawers to make one. Now all I've gotta do is reverse engineer the PCB layout, come up with some PAL designs, and go for it. Unlike the bee there are no issues with IP ownership and sharing.

There are four sheets - CPU, CRTC, and a couple of I/O ones. How hard can it be?

Edit March 2018.

I've managed to borrow a real Applix 1616 (Thanks heaps Philip), which after a quick clean I've taken some really detailed macro photos of to help with the replication.

Friday, 17 February 2017

More fakes

Here are some fake 2SK1058 & 2SJ162 MOSFETs I just bought from ebay. These came from an American seller. Different 2SJ162s:

In each case I've put a real 2SJ162 next to the fake. In all photos the fake is on the left and the real deal is on the right.

The real transistor is the most modern version of the 2SJ162, made after Hitachi spun their semiconductor foundry off as it's own entity under the "Renesas" brand. Note the absence of Hitachi markings, or indeed Renesas. Note also that the real thing has it's marking done with a printing process, whereas the fake has markings done by laser, in a raster pattern.

Lots of transistors are marked by laser now - indeed it's the standard way for product to be identified these last fifteen years or so. However that's after Hitachi became Renesas. Note the real Renesas product (perhaps twelve years old) still hasn't got laser markings.

The other tell-tale is that the date code on the two wildly different 2SJ162 packages is identical. Fabs do change their packaging from time to time, but not with the same date code.

Note further that the raster pattern isn't just where the markings are, but extends all the way across the package. I'm hypothesising that this is how they obliterate the original markings without resorting to sanding.

And their counterfeit complementary pairs, 2SK1058s:

Again, real deal on the right, fakes on the left. Same thing with the laser markings, but this time the raster pattern is only where the text is. Perhaps they got a pile of transistors that were unmarked so there was no erasing needed?

This is incredibly frustrating. I'm a seasoned professional engineer with decades of experience. If I didn't have some known-good stock of these transistors, and if I hadn't been alerted to the possibility of trouble by the two different 2SJ162s with the same date code, then I'd have chucked them in a circuit and wondered why it didn't work. How's a fifteen year old enthusiastic kid going to cope? She'll build her amp, wonder why it vanishes in a cloud of smoke, and give up.

A very easy test can be done with a multimeter. Cgs on the real parts is ~0.8nF, and Cgd around 0.6nF for the 1058, and 1.1nF for the 162. For the fakes I didn't measure valid capacitances for most of the 2SJ162s (so they probably aren't even MOSFETs), and the remainder all measured ~5nF Cgd, so they're likely DMOS parts rather than lateral MOSFETs.

So the last photo shows a cotton bud soaked in isopropyl alcohol, having scrubbed the surface of the transistor:

Black scunge comes off, and the raster pattern is more obvious. I'm wondering if they paint the transistors with something where they've had to remove markings to blacken them up before remarking. I didn't get any black scunge off the "2SK1058" variety - I'm thinking this is because no remarking was needed for these ones.

I'll see how the seller goes with a refund.

Edit: The seller refunded immediately, and said "Hello I sold many of this item, without any complaint", which is I guess exactly my concern. So lots of people have bought these, put them into amps, found they don't work, then blamed either their own assembly skills or else the amp design, when the problem is that the actual parts are fakes. It's really unconscionable behaviour.

Finally, a quick disassembly. From left to right we have both the flavours of "2SJ162" then the "2SK1058":

The dies are all different sizes - 4.2mm square for the first "2SJ162", 4.1mm for the second, and 4.5 for the "2SK1058". They made rather a mess mounting the die, which is a little surprising and makes me wonder if perhaps these are specifically built to be fakes - ie that they buy die and package them, then put bogus labels on them.

Monday, 30 January 2017

Measuring a MOSFET Power Amplifier.

I'm on a bit of an audio kick of late. It's all about building some speakers and an amp for my study, as I stole the speakers and amp from there (some nice home-brew 2-way bookshelfs with Vifa P13WH mid-woofers and P27TG tweeters, and an old NAD 3020B) for my bedroom. Anyway, I've got a pre-existing amp design, based on David Tilbrook's AEM6000, and I've ordered the drivers to build a pair of Lynn Olsen "Ariel" MTM transmission lines. That'll make some pleasant noise, I think.

On to the amps. Back when I originally designed these amps, some 10 years ago, the distortion analyser I had had a noise floor of 0.0013%. I achieved that fairly easily so moved on. I've just bought a PCB for a super-low distortion oscillator based on the Linear Tech "AN67" circuit, which uses some scary high-gain opamps wrapped around a resonator to generate an "unmeasurably" pure tone.

Now I've got a sniff of a world beyond 0.001%, I'm very keen to see how far I can go. Part of that's developing a whole new completely over-the-top amplifier (see previous posts), part of that is just playing with my existing amps to see what they're really capable of.

The process is straightforward. Put one together on a heatsink with a dummy load and thrown together power supply using bits from the garage, apply a stimulus from either my mac, my function generator, or my new oscillator, measure what's being put into the load with my CRO and spectrum analyser, tweak, repeat. It's a process that's quite involving.

Here's the amplifier in question. It's a little 50mm x 100mm PCB, implementing a modified version of Tilbrook's AEM6000:

The one that we're concerning ourselves with today is the one on the left. It's an evolution of a couple of previous designs:

They started with my original "repackaging" of the AEM6000 using flat-pack MOSFETs, shown on the top left. Then I made a "baby" 50W version (top right). While making that I wondered whether I could roll a version that would fit on a 50mm wide heatsink, with off-board filter caps. That resulted in the two smaller boards below. They depart from the original in that the VAS stage is no longer differential-symmetrical, as I simply couldn't see the advantage of the differential structure in Tilbrook's original. Also I made much better use of the back-side of the PCB. Whereas the original has practically nothing on the back bar the MOSFETs, this one has a fairly even spread of parts on each side. That makes it more compact and keeps parasitics down. Despite the small size it's still using 1206 (or MELF 0204) parts.

The schematic for the small 100W flavour is below:

First measurement, after setting the bias to 100mA per MOSFET and setting the output offset to <1mV, is to check for oscillations. I simply connect the output to the load, monitor that with the 1M input on my spec-an, and use the spec-an tracking generator (via a 20dB pad) as the amplifier input:

No nasty surprises. Hitachi lateral MOSFETs are prone to oscillate around 1-2 MHz if the amp isn't well compensated. I find working with LTspice to prototype the compensation is straightforward, and as long as you check the DC conditions on the real thing you'll be good.

While it's connected to the tracking generator, I check the gain flatness across the audio band:

It's hard to tell the spectrum analyser from my amp at the bottom end, as the spectrum analyser has a high-pass at 20Hz. Anyway, it's flat to within 0.1dB or so from there to 20KHz, which should be plenty. Of note is that I measured my NAD3020B, and it's got 6dB of bass boost from 60Hz to about 500Hz, with the bass knob in the middle. It's relatively flat when the bass knob is turned all the way down. I guess that's how you sell amps. That one "sounds better" - ie colours the music.

From here the measurements get increasingly challenging. First the noise floor of the amp. My spectrum analyser has a direct noise readout in nV/sqrtHz, which is incredibly cool. Pulling the amp input off the tracking generator, terminating it into 50 Ohms, and then winding the spectrum analyser all the way down to find the noise floor, we get this:

With the marker at 1KHz, we read off 139nV/sqrtHz. Input referred (this amp has a gain of 16), that's just 8.7nV/sqrtHz. To put it into context, the OP134, a pretty well regarded low-noise opamp, has an input referred voltage noise density of 8nV/sqrtHz.

Next we start working our way down the THD rabbit hole. I started by using my macBook air, as it has a reasonably clean DAC. I used Audacity to generate a 1KHz tone, then played that at all the mac volume settings, both directly and via my amp output:

Okay, not bad. Note the amp appears better than the macBook around 100mW to 1W. This is simply because the amp provides a gain of 16, so what was buried in the noise of the spec-an without the amp, isn't with the amp. Things turn to custard after a few watts. Initially I passed that off on the wimpy 2x25V 80VA supply I was using for test, but we'll find later it's a much cooler problem.

To go deeper, I really do need a better source. So I spent some time building the 1KHz low-distortion oscillator. Here's a photo:

The new oscillator, coupled with a 1KHz notch filter between the amplifier and the spec-an, really does allow us to make a much better THD plot:

But the distortion still isn't anything to write home about - sure, it's better than 0.001% at medium levels, but it falls off badly after a few watts.

I wondered what sort of improvement I could get by substituting faster VAS and second stage transistors. The MJE340 and 350 are bullet-proof, but they're pretty slow really. I pulled them out and substituted KSC3503D & KSA1381E, then made another plot:

Wow, that didn't help. Much gnashing of teeth and measuring showed one of the output drivers was drawing half the current of the other one. I went to replace it, and found out I'd, ahem, forgotten to do the screw up holding it to the heatsink, so it was running _much_ hotter than it should have. Tightening the screw up fixed the god-awful distortion, and we were back where we were with the MJE parts, marginally better:

On the basis that the KSA and KSC parts are faster, and my sims showed considerably improved stability, I wondered if I could improve the THD a little by winding up the negative feedback. This has the effect of reducing the output level, but I can sort that with more gain in the preamp. So I substituted a 5K1 MELF resistor for the 15K thick-film 1206 that was setting the feedback ratio. Bam! Instant huge improvement in THD. Much better than the couple of dB that I should have gotten. So I tried a variety of other MELF resistors for Rf. All show dramatically improved THD over the 15K thick-film chip resistor, and a gradual increase in THD in line with reduction in feedback:

So next I did some reading about distortion in resistors, and found that it's actually a thing. Thick-film resistors are notorious for changing their resistance significantly with changes in applied voltage. That change in voltage directly leads to a change of division ratio, and hence to distortion - we get different gain in the peaks than we do at the zero-crossings. The MELF resistors are a thin-film that's carefully engineered for stable resistance, both with changes in temperature (+/-25ppm/deg) and voltage. So they really are worth the extra few cents. Anyway, there's a whole nother resistor in this feedback divider, and that's also a thick-film chip. Not for long:

Yeah, that's 1ppm there, right around 25W output. So finally I did a much more exhaustive measurement, carefully accounting for every harmonic at a huge range of output powers, from 100mW all the way to 140W. Then I modified the oscillator to do 10KHz and repeated the exercise. I'm rather happy with the results. This amp is lovely and clean all the way to clipping at 120W. Slew rate doesn't clobber the 10KHz THD result until around 80W. Note a peculiarity of the results where the 10KHz THD is slightly lower than the 1KHz result under 1W. I attribute this to a slight increase in noise at low frequency, both from 1/f noise and 50Hz harmonics getting into the measurement. These are reduced by 10KHz:

Wednesday, 23 December 2015

Varnish

Varnishing isn't easy. It takes a while to get good results. The good thing about it is you can always just apply another coat. I think I'm getting better at this, after (thinks!) six coats on my rowing thwart, I've got a reasonably good recipe that looks set to provide a tolerable finish, at least after a few more coats...

My ingredients are Feast Watson spar varnish, Penetrol and real gum turpentine to help the stuff flow, and a proper varnish brush, which is wide and very thin, so it doesn't hold too much varnish, with super smooth bristles, so it doesn't leave great big ugly brush marks. I'm thinning the varnish out with ~15 percent penetrol and a further 5 odd percent turpentine. That gives me a mix that flows out nicely. Of course that's a recipe that's highly dependent on environment, brush, technique...

I started sanding with 180 grit, but found 400 works better in the latest coats. Here's the rowing thwart thus far. There's a bit of general lumpiness but the gloss level I'm getting is fairly good:

My rowlock bases and tabernacle have had a couple fewer coats. In the case of the rowlock base that doesn't seem to be an issue, but the tabernacle still needs some love.

I find when I'm putting it on it's good to keep a little container with mixed varnish+penetrol+turps, plus one with half an inch of pure turps in it handy, so I can thin out and clean the brush periodically, to keep it from sticking to everything.

Sunday, 20 December 2015

Camouflaged cat is camouflaged.

See if you can spot the cat hiding in this picture:

Of course like all good cats, Mogget's goal in life is to ensure his paw prints are in all varnish.

Saturday, 12 December 2015

Finished the coamings

After gluing the coamings in place, the next step involved trimming them so they were the correct size. This involved a process not-unlike trimming my fringe. Take a little off one side, look at it from afar, take a little off the other side, look at it from a distance, take some more off... Luckily I managed to stop myself before I reached the deck.

Then I sanded things smooth, coated with epoxy + filler (this 4mm ply has a pretty crap open-grained face ply, which swallows epoxy), then a couple of coats of unthickened epoxy, then sand down to 180 grit, and finally toplac paint.

Here's what it looks like tonight.

The shaped bit in the bow is to allow clearance so I can flip the forward thwart hatches over. The coaming is about 65mm above the deck at the bow, and 22mm above deck where I'm likely to sit on it.

Next job is to complete sanding the decks out to 180 grit and then paint them with top coat. No, I'm not using undercoat. I really dislike the stuff - it clogs emery way too fast for my liking.

Wednesday, 2 December 2015

Metalwork!

Here's a padeye for my mainsheet. The usual arrangement for a dinghy is that one end of the mainsheet is terminated at the end of the boom. The sheet then goes through a block attached to a traveller or bridle across the transom (I still haven't made my mind up which way I'll go), then back through a block at the end of the boom, along the boom to about half way, then via another block mounted to the boom down to a block mounted to the centreboard case.

I have concerns about pulling a padeye out of the back of the centreboard case, as the loads might be fairly high, especially given that Geraldton is a windy place. It's hard to get inside the centreboard case to add a plate inside do through-bolt, so instead I'll use screws but screw into a couple of different faces, so that the screws are at an angle to one another. So here's that custom padeye so far. It mounts to both the vertical rear of the centreboard case as well as the sloping part, and will be held in by half a dozen #8 screws:

After welding with oxy-acetylene and CIG "Com-weld" filler, it looks really ghastly. I'm calling this piece "snot on bronze".

The below picture shows it mostly finished in-situ, poking up at the top of the aft end of the centreboard case - note the angle isn't 90 degrees (are they ever?).

I'm probably 70 percent of the way through the finish work. I've got to cut down to the bottom of some pits and polish it properly. Even so, from the regulation ten feet I reckon it looks okay.

Sunday, 29 November 2015

Last coaming piece.

Today I put the very last coaming piece on the boat. Now that I think of it, it's also the last piece of plywood. All subsequent bits of wood (spars, rudder) will be solid.

The second layer of coaming progressed very slowly, as I needed lots and lots of clamps for each piece. While waiting for pieces to set up I shaped other areas of the coaming and made some mounts for my nice bronze row locks from Jarrah.

This was fun, as they're a complex shape (practically no 90 degree angles here) and necessitated lots of delicate plane work.

They're held down with two #10 x 50mm screws from under the deck, plus epoxy. When I put the rowlocks in, there's four #8 x 25mm screws through the coaming into these blocks, plus an additional #8 x 38mm screw from on-top. The rowlocks are thus very solidly located to the boat.

The angles are rounded out and bum friendly, and I've raised the rowlocks by about 8mm from our initial test with Perry pretending to row. I think the rowing ergonomics should be reasonably good. It's still a big (wide) boat to row, but I reckon I've done everything I can.

Doing the final shaping on the coaming is easy on top, as there's plenty of room to plane and my Stanley no. 4 and spokeshave work really well. Alas it's rather harder underneath, as there's not enough space between cockpit seats and coaming to get the no. 4 in. I very nearly pulled the pin on a low angle block plane, but figured for this job a simple piece of coarse emery on a wooden block will suffice. That leaves me a little more money for the enormous pile of blocks that I now have to buy.

Wednesday, 25 November 2015

Coamings and thinking about rigging

I've been on holidays from work for three weeks, and it's been an incredibly productive time for me. After painting the interior I went straight to work on the coamings. Once the coamings are done I can paint them and paint the decks and timber-work, and the hull is then essentially complete, leaving a much shorter list of things that need to be finished before launch.

Here's the first piece of coaming being glued on. I started with the hardest bit, as I figured this was where I was likely to run into trouble. I used 4mm ply, and oriented it so that the central ply had its grain running along the boat. This made it much easier to bend, which was necessary because that's a really tight radius bend around the front of the cockpit.

After this piece, I just kept putting pieces on until the cockpit was filled in. Then I went around for another layer. The second layer needs many more clamps than the first, as the glue area is much larger. Here's an example piece going into place.

Now I'm starting to turn my attention to all the little detail bits. One of the questions that I'm mulling over at the moment is of how to attach my main sheet. The only other Navigator sloop that I've seen any detail of is Dauntless, which goes for a high-zoot factor traveller across the transom. Wayfarers generally opt for a bridle across the transom, and I'm leaning towards this arrangement, as is seems simple and straightforward.

So now the options of how to locate the ends of the bridle. The photo below shows some of the options I'm mulling:

The join in the ply that the eyes are sitting on has a 19mm square Tassie Oak stringer underneath it. At a minimum, I could simply put a pair of #8 by 25mm countersunk screws into this stringer to hold the smaller eye down. For something stronger, I could make a bronze plate up to go under the deck, and use #8 bolts, sandwiching the deck in a similar fashion to what I did with the chainplates. Or I could do the same with the larger four-bolt eye. I suspect the last option is incredible overkill. Indeed I'm suspecting all three options are overkill, but I've sailed on a boat (albeit a 26' one with a cabin-top mounted traveller) watching the traveller coming off the top of the cabin in gusts...