Archive for the ‘Uncategorized’ Category.

This picture is all wrong

osc

So, this picture was doing the round a few months back. But it’s now made me feel cheated, confused and ashamed. It turns out it’s wrong, all very very wrong.

Firstly as my friend Akiba pointed out, the Tektronix 2245A wasn’t a storage scope. Tektronix’s analogue storage scopes I believe started with the 2400 series, I’ve recently been reading about the analogue CCD memory used in these instruments as a friend has been repairing one. It’s an interesting architecture, a historical quirk which has largely fallen into disuse.

Giving them the benefit of the doubt, it’s possible 2245A is a typo for 2445A. But the 2445A started at 150MHz, no 100MHz version was available.

Finally, what exactly is the scope he’s carrying? Here’s a close up:

osc1This makes little sense to me. I really don’t know of any scopes with a CRT on the right hand side. Maybe someone can point one out? But I’m pretty confused here (based on the fact that the Nike swipe is also fipped, I’d guess the image is mirrored but I’m going to run with this..).

Flipping the image, the scope does indeed look like a 2245a:

osc2Tektronix 2245A

 

 

 

 

 

And not much like a 2445a:

 

osc2tek2445a

 

 

 

 

 

 

Also, Tektronix is spelled incorrectly? Perhaps this image comes from a bizarre parallel earth where Tektronix is called Tectronix and everyone is left handed? Perhaps taking your oscilloscope to a club is an entirely normal activity, and people hang out discussing the finer points of trigger mode selection. In the immoral words of Liz Lemon “I want to go to there”.

I’ll let you draw your own conclusions, however in the meantime:

osc3

Sony WPSD5 Surround Sound System “repair” Notes

sony_sur

I was offered a broken WPSD5 Surround Sound system and of course snapped it up. A couple of weeks back someone also offered me a working one but I turned it down. Positioning all those speakers felt like too much for an audio-luddite like me. But a broken one… well that’s an adventure!

While economically un-viable repairing broken consumer electronics gives an interesting insight into the design discussions taken. And for someone like myself who isn’t an experienced EE, wandering through the schematics teaches me all sorts of things. Gratifyingly a service manual is available with both detailed schematics and a overall block diagram:

sony_blockdiaWorryingly the digital side is built about a proprietary microcontroller (IC701). The microcontroller is powered by EVER+5.6V which comes off the main power supply and is always up. Other supply voltages (for the analogue section) are brought up by the microcontroller on soft power on.

The microcontroller itself however doesn’t do very much, it just brings up the system and controls the surround sound DAC. The DAC is an AK4527, for which a datasheet is readily available. This is a fun part, it’s a I2C controlled surround sound synthesizer. It includes ADCs to sample analogue input or can also accept digital signals (S/PDIF via some external ICs). Analogue signals head out of this IC and out of the digital board toward the analogue section.

On the analogue board we find 3 TA2022 power amplifiers. These are 2 channel 90W “class-T” amplifiers. Class-T is Tripaths proprietary, switching, class-D amplifier implementation. The TA2020 from this series was listed as one of the 25 microchips that shook the world. It was my first time encountering class-D amps and it was interesting reviewing this part of the design. A datasheet for the ta2022  is also available, and TA2022 modules can be found on eBay easily for about 15USD. They look like fun modules and I’ve seen a number of amateur projects using them.

So… on my system the fault signal was being asserted, by this funky transistor network:

faultThat signaled a fault to the microcontroller, which in turn stopped the main powersupply from coming up and didn’t enable the relays on the speaker outputs so you wouldn’t be able to hear anything anyway. In order to debug further I need to get the amplifiers to come up. I removed the digital board and started digging around.

First of all, you can pull pin 16 (POWER) on CN123 to +4.7V DIRECT (which is also always up). That switches IC906 on. This is a regulator (datasheet) which generates a bunch of supply voltages. I then shorted Q394 which is the transistor controlling the output relays. The amplifiers where still muted (controlled via AMP-MUTE) so I pulled AMP-MUTE high (I think using +4.7V DIRECT again) to turn them out.

In debugging the system I found that 2 of the amplifier ICs weren’t coming up. The TA2022s have built in fault detection and 2 of them were muting themselves. The layout of the 3 TA2022s the largely identical, IC301 however does also generate a reference signal that is fed to the other two:

amps

Strangely the system doesn’t used the HMUTE signal from the TA2022s but has additional fault detection circuitry, and this was causing the fault signal that was being sent to the microcontroller. The TA2022s own fault detection circuitry was also firing however. This is basically where my debugging stopped. I would likely continue by replacing the TA2022s, but it wasn’t worth it for me.

Now… what I’ve actually been wanting is a cheap 2 channel stereo speaker system. So I hacked a 3.5mm stereo jack on to the input of the analogue board and am using the surround sound system as a stereo speaker set. I’m just using a couple of the satellite speakers. This is probably a pretty awful thing to do, I’d guess they don’t produce low frequencies particularly well, but it sounds fine to me and is and order of magnitude better than my laptop speakers so I’m happy… I also had an interesting adventure and learned a lot about how consumer Hi-Fi equipment is put together.

A Note On The Ion Torrent Flow Order

The Ion torrent DNA sequencers don’t just flow in A,T,G and C bases in a 4base cycle but use a more complex 32bp flow order. I was trying to figure out exactly what was going on and found this comment on the ioncommunity forum which somewhat explains what’s going on. Here’s the flow order they use (32 bases long!):

TACGTACGTCTGAGCATCGATCGATGTACAGC

The 32 base sequence, is composed of 2 16bp sub-sequences. These subsequences have the same structure but the bases are transposed. The 16bp sequences contain one flow of every base followed by every 2bp combination [1]. In the general case a string containing every possible substring of length k exactly once is called a de Bruijn sequence [2].

Why they do this is less clear, it might be that hitting bases in order assists with phasing or other characteristic errors. It’s also possible that there are other aspects of the base flow order that improve the sequencing process.

[1] The following is a verification of the statement above:

Original Sequence: TACGTACGTCTGAGCATCGATCGATGTACAGC

The following are the 16bp sequences, below these I’ve labelled each base by the position it first occurs in the sequence. These patterns are identical. The conclusion is that if you swap A with C, and swap C with G you can change the first sequence into the second:

TACGTACGTCTGAGCA
1234123413142432

TCGATCGATGTACAGC
1234123413142432

Taking the 12bp sequence, you can see that it contains every 2bp combination exactly one:

TACGTCTGAGCA
new@navlaptop:~/biotech/dnae/floworder$ ./a.out | sort | uniq -c
1 AC
1 AG
1 CA
1 CG
1 CT
1 GA
1 GC
1 GT
1 TA
1 TC
1 TG

[2] https://en.wikipedia.org/wiki/De_Bruijn_sequence

Inside a cheap bubble blowing toy

IMG_0165 2

My wife picked up a cheap (6USD) bubble blowing toy. Ever since we got it I’ve been at least as fascinated by it as our child. Perhaps slightly less enamoured with the repetitive melody it produces however.

As always though, I find it amazingly how much they pack into these cheap mass produced consumer products and the corners that get cut to reduce costs.

What particularly interested me was that it uses a peristaltic pump to push the soap mix toward what I call the “bubble formation aperture”. I’ve been reading about peristaltic pumps recently because they’re often used to deliver accurate volumes of liquid for scientific and medical applications.

Peristaltic_pump

The pump is named after the contractions the intestine makes to push food through your digestive tract and it operates in the same way. The gif to the left (shamelessly stolen from the wikipedia page), shows how fluid is pushed along.

This toy uses this exact mechanism, because it’s transparent you can see the pump operating without taking the toy apart which is also pretty neat and a nice learning aid. The gif below shows the toy operating and you can clearly see the pump working away.

bubbletoy

IMG_0177In order to create bubbles the toy needs not only to deliver the fluid in a controlled manner and allow it to form a film, but to force air through the film in order to create bubbles. This uses the simple (but I still think rather nicely designed) fan assembly shown to the right.

Both the fan and the pump are driven by the same motor. This is a dual shaft motor, which looks something like this:

dualshaftIn order to keeps costs low the toy uses a couple of other neat tricks. The first is the usual ultra-cheap PCBs that are used in these kinds of toys. Single layer and massless. Rather than being CNC routed out I’ve heard these are punched out, given than normal PCBs cost almost nothing, these must be practically free. Again, as is common it uses a dye on PCB with a blob of epoxy on it. This actually isn’t required for the general operation of the toy, it’s only used to synthesise the annoying music the toy produces (and flash the LEDs).
IMG_0168

One final trick is the omission of any kind of power switch. The trigger just has a spring connected to it. The battery ground is connected to this spring and when the trigger is press it shorts against the motor chassis to complete the circuit. That’s a serious hack to avoid a real switch or an extra metal plate. But when the product costs 6USD and I would imagine an order of magnitude less to manufacture. Every penny must count.

 

 

 

 

 

 

 

 

Update

FullSizeRenderI’m impressed by how robust the toy is. Even though it’s in no way water tight it’s still operational after being fully submerged. The rear LED failed but everything else works. I put this down to the simplicity of the electronics and the fact that the IC is enclosed in resin. But it looks the motor housing maybe more or less water tight. Pretty impressive in any case.