Megger PAT120 animation

Made by Howard Matthews at Push Pictures
Music by
Created in Blender, composited in After Effects
Additional modelling by Richie Phillips
Additional model credits from BlendSwap:
Mixing desk: simonrepp; kitchen mixer: swmo; Anglepoise lamp: up3danimation; Clip light: bmanjones; PC: modelyna; drill: bdfspace69; table fan: shivraj; milling machine: WiKKiD Widgets; laptop: MarkLaBarr

Do not throw away!!

So, I was pulling apart an old car CD-changer unit (as you do), when my eye was caught by the printing on a tiny bit of circuit board…

dontthrowaway 112

I wonder how many of these little scrap-looking PCBs were chucked out by accident before someone at the factory realised they were going to have to do something about it:

dontthrowaway 111

Tee hee.

Hacking an old RAF Nimrod control panel

Bought one of these things off eBay for around £35:

nimrod 110

Don’t know what it’s for. Probably some sort of comms / radio display. The reason I jumped on it – behind that dark window are 8 of these alphanumeric LED displays:

nimrod 109

These little displays are usually around the £15-20 each. Loads of LEDs:

Loads and loads of tiny LEDs...

And a little controller chip on the back of them:

... and on the back, under a little crystal window, a simple controller chip.

Little but not simple (!) – check out all the gubbins [that’s a technical term] in there:

OK, not that simple a controller chip.

Before trying to get the whole panel working, I hooked up an Arduino to a single display to get it working:

nimrod 104

Once you’ve sussed out how to get one display working, figuring out what the connections to a full display panel should be is a lot easier, even if it doesn’t look it:

Too. Many. Connections. Needed.

nimrod 105



Got it working!

Getting an expensive piece of ex-RAF equipment to say naughty words is the sort of thing that gets me out of bed in the morning.

Now that I’ve got the thing working, I’m not sure what I want to use it for. Maybe a new trip computer for the Landrover… we’ll see.

Getting camera tracking data from Blender to After Effects

There’s a plugin for Blender that lets you export 3D camera data in a format AE can use – you end up with a camera in AE that moves exactly the same way as your camera in Blender.

After Effects strangely doesn’t support orthogonal cameras though – you can have either flat compositions with no 3D transformations, or full-on 3D with perspective. No isometric-style perspectiveless 3D. So, no good for my current project, which looks 3D but is completely perspectiveless:

Screen Shot 2014-02-07 at 11.11.52

This means that if you need to track a logo in over an orthogonally-rendered animation you have to use the 2D Corner Pin effect to distort the logo to fit the scene. In a fast-moving scene you can just render tracking markers at the corners of where the logo should go, then use them in AE to place the corner pins, either by eye or using Motion Tracker.

For slow moving scenes it’s hard to get the track perfectly. Orthogonal views along with a camera that rotates as well as translating exacerbates the error; the lack of perspective already looks weird, so a logo that isn’t tracked solidly seems to swim. After much frustration and a bit of googling I decided to hack up a script for Blender to export the data I needed:

# use this script to export the resulting screen coordinates
# of the currently active object in 3D space. Coords get 
# output to the console -h

import bpy
from bpy_extras.object_utils import world_to_camera_view

scene = bpy.context.scene

# needed to rescale 2d coordinates
render = scene.render
res_x = render.resolution_x
res_y = render.resolution_y

rnd = lambda i: round(i,1)


for j in range(1845,1902):   # frame range you're interested in    
    obj = bpy.context.active_object
    coords_2d = world_to_camera_view(scene, cam, (obj.matrix_world *  obj.location))
    print("\t{}\t{}\t{}\t".format(j, rnd(res_x*coords_2d.x), rnd(res_y*(1-coords_2d.y))))

Worth the hassle, though: the flown-in logo is locked to the wall now:
Screen Shot 2014-02-07 at 11.15.36

Chinese 12V 6800mAh Li-Po battery mini review

Lots of these Li-Po battery packs on eBay, going for around £12 from various vendors:

BatPic 122

Nice hand-sized battery pack, with a coax plug and socket on flying leads, and a handy little power switch and LED. Comes with a somewhat underspecced charger (350mA – so, around 20 hours to charge).

The battery specs seem too good to be true, though. 6800mAh at 12V? Nearly 7Ah at a fraction of the size of an old fashioned gel battery. Hmm.


To test the battery capacity, I hooked it up to a little LCD telly via a Turnigy power analyser.

BatPic 126

The TV takes about 0.3A, so it ought to run for about 20 hours. Ha! To start the test, I charged the battery fully with the supplied charger:

BatPic 124

12.77V is a little high, but it’s straight off the charger; it’ll relax back to around 12.6V.

About 6 hours later, it was time to switch it off before the battery flattened itself permanently (10.8V is as low as you should go):

BatPic 127

So. Not really 6.8Ah at all, more like a third of that. I think I know what they’ve done, though (assuming they aren’t just out and out dishonest): to create a nominally 12 volt battery, they’ve strung 3 cells together in series – but then they’ve mistakenly added the Ah capacities of the cells together. Connect 3 cells in series, you add the voltages, but Ah stays the same as a single cell; connect them in parallel instead, and you add the Ah up but the voltage stay the same as a single cell. They’ve mixed it up.

The headline, therefore: these battery packs only have a third of their marked capacity. Caveat emptor etc.

The upside (!) is that the little charger that comes with it takes half the time to charge it.

UPDATE: A kind commenter, Unferium, notes below that Li-Po cells can be safely discharged to about 3V per cell rather than the 3.6V I used, which does change the results slightly. The voltage drops off very fast from 10.8V down, so you only get an extra 0.25Ah out of the pack. I think the headline stands 🙂


Anyway, let’s see what’s inside. Note: Lithium batteries can explode or burst into flames if mishandled, or if they’re faulty. Do not take one apart unless you know what you’re doing, or you’re an idiot. Thankfully, I’m fully qualified in at least one of those categories.

First, off comes the outer blue shrink-wrap:

BatPic 128

… revealing a stiff cardboard “case”. It comes apart easily to reveal:

BatPic 129

The actual battery of cells is just the silver chunk; the dark strip on the left is just dense packing foam. Shame they couldn’t just make the whole pack a bit smaller instead – I can’t see what benefit that padding does given that it’s only on one side of the cells. Even if something bad happens to the battery and the cells start expanding, they’ll blow up like a pillow, not out sideways. Ho hum.

Let’s pull the cells out:

BatPic 131

Yup, three Li-Po cells in series. Thankfully they’ve each got their own protection circuit (which disconnects the cells before they get overcharged, or so discharged they’re unsafe to charge again):

BatPic 143

The 3 cells are extremely securely glued together, so don’t try pulling them apart. If the foil envelope around a cell is punctured, they give off a strangely fruity smell and need to be disposed of safely in a neighbour’s bin. (Not the nice neighbours, the ones on the other side)

In use:

Despite their misleading label, they’re still useful battery packs, particularly for Arduino / microcontroller use. 2.2Ah at 12V is still plenty of juice for some projects. Here’s a little wireless monitor I rustled up to monitor our solar panels:

BatPic 140

It’s just an LCD, an Arduino and an nRF24L01+ radio module, all cable-tied to the battery:

BatPic 145

Lasts for a couple of days between charges, and it’s surprisingly robust. Easy to recharge with the charger that came with the battery (albeit a bit slow).

BatPic 144


They’re not as good as they say they are, but they’re still handy.

h at howiem dot com — animation, music, electronics, ramblings