Expand Cut Tags

No cut tags
ggreig: (Western gentleman)

Or, Reinventing The Torch.

In Doctor Who, the Master’s signature weapon is the Tissue Compression Eliminator, which kills by shrinking the target to the size of a doll (the scale of the doll is, for some reason, never specified). It’s mostly used by the Master as played by Anthony Ainley in the 1980s, and in those stories takes the form of a thick rod with a bulb at the end that opens, crocus-like, to fire a red beam.

However, it made its first appearance in the Master’s very first story, Terror of the Autons, in which Roger Delgado’s Master wielded a rather more stylish version resembling a cigar, and fired by pressing with the thumb:

The Ainley period Tissue Compression EliminatorThe Delgado period Tissue Compression Eliminator

Knowing I was going to be attending a Doctor Who convention and would be expected to dress accordingly, it occurred to me – before last season’s revelation about the Master – that a) I had the beard for the part and b) had always fancied a jacket with a Nehru collar. A bit of hair colouring would convert my largely white beard to the original Master’s two-tone badger-style goatee. Couldn’t do much about the hairline.

What I couldn’t easily accept, adapt or get hold of, however, was the Master’s TCE, so I thought about building one.

The Core

My first thought was to buy aluminium tubing and telescope short sections of it together, but it proved difficult to find sizes guaranteed to telescope and although the prices were reasonable for the amount I wanted, minimum order amounts were – less so. I headed out to the nearest hardware store and inspiration, of a sort, struck. Toilet roll holders – the sprung, plastic sort – would do the job for a few quid.

I bought a handful of black ones on the spot to experiment with, and ordered some silver ones from eBay. The black ones were noticeably better quality, but using a silver one as my base would give me a much better finish for the sliding section than I could possibly have achieved using paint. I also found I could fix some if its issues by opening up a big enough hole in the larger end to work the weedy spring out and replace it with a stronger spring from one of the black ones.

The Circuitry

Having found something that could form a good base to work on, the next thing to consider was what to put inside it if I wanted it to appear to work. Well, electrically that’s not hard. What I would need would be a power source, and something that would light up when a switch was closed. It’s a torch!

Circuit diagram for the Tissue Compression Eliminator

With appropriate circuit board to mount them on, I could fit seven LEDs (arranged hexagonally, with one in the middle) within the diameter of the toilet roll holder. A bit of browsing at Proto-Pic turned up what I wanted; a 1" circular protoboard. I did have to trim it down a bit to fit, but it gave me a good starting point. I also got some Super Bright Red LEDs. I already had resistors to hand, and a small selection of switches which happened to include a suitable one.

The circuit couldn’t get much simpler and was easy to throw together on a solderless breadboard just to check everything worked. Then the tricky bit was to work out how to wire it up in practice, cram it all inside a toilet roll holder without breaking anything, and provide a way of activating the switch.

Building The Shell

It was obvious the LEDs would have to be mounted inside and at the front somehow. However, a single toilet roll holder was neither long enough to represent the TCE, nor would it be possible to mount the LEDs inside its broader half – there would be nowhere to attach them, and that space also contained the spring. Even if that hadn’t been the case, it would have been very tight and might have necessitated cutting down on LEDs. This is where the black toilet roll holders came into play.

By cutting the bigger part of a black toilet roll holder to a suitable length, and then sawing a slit along it, it was possible to prise it open and fit it as a sleeve around the silver one. This again gave the right colour without the need for painting, and it made it possible to extend the length of the TCE with a double skin – an inner, un-slit tube simply stacked on the front of the silver one, and a slit sleeve embracing them both. The slit tubes would require filling later to cover the gap, but again a good structural foundation was in place.

With the idea for the extension of the muzzle established, the problem of where to mount the LEDs was solved, as they would go inside that rather than the body of the main holder.

Planning The Interior

With that settled, the next most obvious decision was that power would have to go at the other end, so that it could be easily inserted and replaced. To power the LEDs, I wanted a 6V power supply. Within the space available, that meant I’d need to go with with several watch batteries, but I managed to get an AAA battery holder that fit nicely inside the thinner half of the toilet roll holder, and found that LR44 watch batteries would fit nicely within that. Taping four 1.5V LR44s into one slightly bigger 6V battery with insulation tape and adding a longer spring to the battery holder to hold them in place solved the power supply problem.

With both power and light source at least notionally sorted out, the tricky bit was how to connect them up successfully, with a switch in between that would be activated by the narrow end of the toilet-roll holder being pushed in.

How To Press The Switch

I had a small press-to-close switch that would fit inside the narrow end, and was about the same width as the battery holder. I could mount it (and the resistor) at the positive end of the battery holder, and hopefully attach some sort of plunger to the far end of the toilet-roll holder that would come down and press the switch closed when the smaller tube was pushed into the larger one.

I considered other alternatives, the main one being conductive paint on the outside of the small tube being brought into contact with more on the larger tube, but whenever I thought about reliability, I came back to the plunger option. Paint would have been very prone to wear and tear, and (as the conductive paint is black) painting over it to restore the silver look would reintroduce connectivity problems and spoil the look.

However, a plunger presented problems too. It had to be long enough to press the switch, but not so long that it would cause mechanical problems by pressing too hard – a tricky measurement to make confidently inside a tube and out of sight. It had to be broad enough to be sure of hitting the switch, and to prevent it being easily knocked out of alignment, but narrow enough to avoid catching on the lip of the narrower tube, and getting caught up in the spring. Finally, it had to share the confined space with the wires connecting the power end of the assembly to the LEDs, without fouling or putting strain on them – or doing the same to itself.

The solution I came up with was to build a plunger that was fixed at one end, but had the other end sprung.

Building The Plunger

In order to accommodate a spring with the least hassle possible, I started with an old modelling paintbrush for the shaft of the plunger. It was roughly equivalent to a piece of narrow dowel, but with the advantage of being already hipped. I measured things out and cut it so that I could just slide a small spring on, and the broad part of the paintbrush would hold it in place. Then I built up each end with Sugru and a circle of plastic card to fix things, provide flat surfaces at either end, and make the plunger robust.

Making one end of the plunger sprung provided a couple of benefits. It allowed for a soft press on the switch, so that it didn’t matter so much if I didn’t get my measurements quite right; and it prevented catching on the lip of the narrower tube from being a problem – if it did occur, the sprung tip would flex slightly until it just slipped in, rather than getting stuck.

The most worrisome part was getting the wiring to share the same space. Ultimately, I just drilled holes through the ends of the plunger for each wire, with enough space to let it move fairly freely, and hoped.

Construction

Parts before assembly - click through for full sizeHaving – more or less – worked  out all the parts necessary, it was time to try to bring everything together. I’ve not done a lot of soldering in the last 25 years, so creating a circular array of 7 LEDs wired in parallel kept me busy for a while, and worried about short circuits, as there wasn’t a lot of space to work with the wire I had. Connecting up switch and resistor on a little piece of protoboard and connecting it to both the battery holder and the wire that would connect to the LEDs was challenging within the space available too. Both of these went well, though, and I used more Sugru to fix the switch assembly firmly in place (and provide a bit of additional insulation) at the positive end of the battery holder.

Where I messed up – though I didn’t discover it until later – was the simplest part of the soldering. While connecting a wire to the negative terminal of the battery holder, I overheated the plastic and managed to break the connection between the metal terminal and the spring holding the battery in place. I tried to keep testing everything was still working at every stage, but I missed this and had some worrying debugging of connections later on with a multi-meter when stuff just didn’t work! When eventually discovered, a combination of conductive thread and paint remedied the issue.

I fed the wires through the plunger, with excess that could be cut back once I knew how much slack would be required to attach the LED assembly but allow the battery holder to be pulled out for inserting or removing batteries, and I drilled some extra holes through the stationary end of the plunger to allow me to fix it in place more firmly with thread or wire. I tried thread first, but it was too fiddly and difficult to get right, so I fell back on aluminium modelling wire – and another layer of Sugru to fix the LED assembly in place and avoid short-circuits!

TCE nearly complete

Finishing The Exterior

As already described, the exterior of the barrel was to be built up with parts of the black toilet roll holders. With a bit of specialist super glue for awkward plastics, these went on firmly and the large lengthwise gaps left by slitting them and the smaller circumferential one between the two sections were filled with black Sugru, which I then rolled on greaseproof paper to try to get a reasonably smooth surface. The result wasn’t perfect, but good enough if you weren’t inspecting it closely. The interior of the barrel was painted silver.

The butt end, where the battery holder was inserted, was covered up with a cylindrical rubber ferrule (sold for the foot of a chair), which was just right for the job of a battery cap.

Finally, I added a a bit of copper trim – two strips of plastic card covered with Bare-Metal Foil and attached with the plastics super glue. One covered the join between the two sections of black tubing nicely.

The End Result

The completed TCEThe completed TCEThe completed TCE, lit upThe original, on-screen TCE

The final picture shows the original, for comparison.

Arduino

Apr. 1st, 2012 10:02 pm
ggreig: (Western gentleman)

An Arduino UNO and accessories

Back in 1990 I was relieved to graduate with a 2:2 in Physics and Electronics, and the knowledge that whatever I was going to do next, I didn’t want it to involve Physics. A conversion M.Sc. to Computer Science came along, and having enjoyed the logical parts of Electronics, it turned out I was able to make a go of computing.

I think that probably the last time I had anything much to do with hands-on electronics was back then, when I created a voice-delay board for my Honours project; a project that would store up to eight seconds of speech at 8-bit quality, before playing it back.

For the last year or so, I’ve been intrigued by the idea of the Arduino (or a clone such as the Netduino, which allows you to use the .NET Micro Framework), a microprocessor with an environment of plug-in accessories that’s intended to make it easier for people – especially artists and designers – to achieve interesting things with electronics.

For this week off, I dug out the gas soldering iron I’ve had pretty much unused for ages, ordered a bunch of interesting sounding parts and, driven by visions of having a robot zipping about the place autonomously and chatting to people, I set out to see what I could achieve.

To avoid disappointment straight away, you possibly won’t be astonished to hear that there’s nothing to show you!

However, I did have fun tinkering with electronics and simple programming.

What you see in the picture above is an Arduino Uno (top left) connected to my PC via a USB cable and sitting on a base that also holds a breadboard for experimentation. Surrounding it are three “shields” that can be stacked on top of it and controlled by it. Going clockwise, they are an Ardumoto shield for powering electrical motors, a Voice Box shield for synthesising speech, and an EasyVR shield for voice recognition. Also in shot, some tools including a Portasol Technic butane-powered soldering iron, and an SRF02 Ultrasonic range finder.

I’ve tinkered a bit with each of them – enough to be sure I can get them working – but spent most time on getting the Voice Box shield to talk. This required some soldering to attach the ”headers” (the black strips of connectors that allow the shield to be stacked on top of the Arduino) and a couple of screw connectors that speaker wires could be pushed into.

In the process I found that I could still solder stuff, but wasn’t very good. Also that the gas soldering iron wasn’t very good for recovering from bad soldering events, so it’s a good thing I was just a bit untidy and didn’t have any real disasters.

Programming the Arduino is done in a simplified version of C++, based on the Wiring platform, with some of the structure of your program pre-defined and hidden from you to make it easy to get started. It has its own IDE, originally developed for the Processing language. Arduino programs are called sketches, and they control the behaviour of the pins around the edge of the board, which you connect other components to (such as the shields, or standard electronic components).

Personally the first thing I did was look for a plugin that would allow me to work in Visual Studio rather than the Arduino IDE, and luckily there is one. Despite the claim that “serial tools are far better than Arduino”, I did find myself dropping back to the Arduino IDE on occasion for the tool that observes the serial output from the Arduino, as some of the output wasn’t appearing in the Visual Studio version, even though I knew it was there. Also some of the UI idioms it uses weren’t entirely at home in Visual Studio – adding a new Project from the Project menu, rather than the File menu for example. Apart from those quibbles though, the Visual Micro plugin gave me an environment I was happier working in.

The Voice Box shield turned out to be simple to program to. Using standard Arduino library functionality, you create a software serial port that will use two pins to talk directly to the SpeakJet chip on the Voice Box shield; then you send arrays of numerical commands to that serial port. That’s it, as far as technical stuff goes.

Where the work arises is in figuring out what those numerical commands should be. There are some general commands for such things as volume, speed, and pitch, and then more specific commands that represent phonemes that can be used to build up your speech.

There is a helpful program that will do some of this work for you, based on a dictionary of words that other people have already created. If the dictionary doesn’t contain the words you want, however, you’ll have to build them up one phoneme at a time. This applies to perfectly normal words that you’d expect everyone would want an electronic voice to say for them, such as “Exterminate!”, so get ready to spend some time looking up numerical codes for phonemes.

I spent less time with the EasyVR voice recognition shield, so don’t have a lot to say about it at the moment, except that it maintains tables of words it can recognise and the pre-defined words worked perfectly well for me. I haven’t yet investigated customising it, but working within the limitations of this and the Voice Box, I hope it’ll be possible to build up simple dialog trees.

I got the Ardumoto shield to drive the motors on a Dagu Magician chassis. They appear to be a bit weedy, so I don't think they're going to drive that Sevan's Dalek I have lying about, even though it looks like the Magician chassis would fit beneath the skirt, but it’s a start.

So if everything works, why haven’t I achieved more? Well, you may have guessed, but everything working fine separately is not the same as everything working in unison. Although there are quite a lot of pins controlled by the Arduino (6 analogue and 14 digital), inevitably some of the shields want to use the same pins for different purposes. The next step is to do something about this, to which end I’m looking at the Go Between shield from Mayhew Labs; and if in future I want to add many other components so that a robot can interact with the outside world, I will probably end up looking at a Mux Shield.

In future, I might like to play with a Netduino in order to get a nicer programming environment, but I started off with an Arduino because it’s more widely used and supported and I wasn’t going to be faced with the possibility of having to write my own support libraries for shields before I really knew what I was doing.

I’ve had a bit of fun, it’s not been too taxing of my electronics or programming skills, and it looks like more interesting things could be fairly easily achievable.

June 2017

S M T W T F S
    123
45 678910
11121314151617
18192021222324
252627282930 

Most Popular Tags

Syndicate

RSS Atom

Style Credit

Page generated Jul. 30th, 2025 08:24 am
Powered by Dreamwidth Studios