Pimp My Rocket (Espresso Machine)

Combining Coffee and Electronics – An Idea for a Project

Having played around with fixed function logic ICs, such as the Johnson counter used in the Spindicator project, I was keen to move on and experiment with programmable microcontrollers. I decided to obtain and play with some PICAXE chips, as they looked like they would provide an easy introduction to using microcontrollers. Soon enough I was flashing LEDs and building touch-activated computer power switches. But what I really wanted to try was using the chip to control the colour of an RGB LED. For a suitable project I came up with the idea of using a strip of RGB LEDs to provide accent lighting for my Rocket Espresso coffee machine, where the colour of the LED would depend on the temperature of the machine (specifically the inlet water to the brew head). I thought this had the potential to not only look pretty, but actually provide useful visual feedback on the all important brew water temperature. If you are reading this because you’re a coffee geek interested in E61 HX type espresso machines, you may want to skip the electronics part and read the last section to see how it turned out.

PICAXE is a low-cost, easy to use microcontroller system which uses a simple BASIC like programming language. I’m not going to provide a tutorial on how to use and program PICAXE chips in this post. If you are interested in that, the PICAXE website has excellent documentation, free programming software, and lots of circuit and code examples. There are several different PICAXE chips you can buy, with different numbers of inputs/outputs and different inbuilt functionality. The inbuilt PICAXE function that is central to this project is PWM (pulse-width modulation).

Controlling RGB LED Colour with PWM

An RGB LED is actually made of three LEDs under one lens, a red, blue and green LED (I’ll call these sub-LEDs). Each sub-LED can be switched on separately, so you can switch on blue and red to get purple for example. By switching each sub-LED completely on or off  you can make six colours (red, blue, green, purple, cyan and yellow). In order to gain access to a complete spectrum of colours, you need to be able to precisely control the brightness of each sub-LED, and the way to easily do that is via pulse-width modulation. PWM controls the brightness of an LED by switching it on and off very fast (20,ooo  times per second in my program), and controlling the amount of time it is on during each on-off cycle. The time for an on-off cycle is called the period (50µs in this case), and the time of the on pulse as a percentage of the period is called the duty cycle. So a for duty cycle of 50% at 20kHz, the LED will be switched on for 25µs, then off for 25µs. The switching is too fast for the eye to see, and so the overall result is that the LED will just look half as bright. Thus the LED brightness is directly proportional to the duty cycle. Most PICAXE microcontrollers have a PWM control function built in and accessible on one or more of the chip’s pins (see pinout diagrams in the PICAXE manual). Some PICAXE chips also have separate PWM control circuitry referred to as “HPWM”, or hardware PWM. The circuit and program described below uses the software PWM function. To control an RGB LED you need a chip with three (or more) independent PWM outputs such as the 14M2 or the 20M2. For this project I used the 20M2.

Close-up of the RGB LED strip used in this project. Note that the strip has current limiting resistors built in, and uses a common anode configuration.

The Circuit

The circuit for this project is fairly simple as the PICAXE microcontroller does most of the work. For the LEDs I used a strip of six RGB LEDs. These  are pre-wired to a strip of adhesive backed flexible circuit board as shown in the photo above. They come on a long roll which can be cut to any multiple of three LEDs. Initially I was going to use two sets of six, one mounted under the Rocket on each side. Consequently, this circuit is designed to drive 12 LEDs, and can drive up to 15 using the transistors and resistors specified. When I tried it though, I didn’t like the look of the reflections of the individual LEDs off the stainless steel bench on which my machine sits. In the end I decided to use one strip of six mounted behind the machine and reflecting a nice diffused colour off the wall behind. The first circuit diagram below shows the power supply for the PICAXE and LEDs. The 12 volt DC input is supplied from a small 500 mA 12V plug-in power adaptor. This 12V input is used directly as the power supply for the LEDs, and also as the input to a 7805 voltage regulator with 5V output. The 5V rail powers the PICAXE chip and peripheral circuitry. I added a small LED to the 5V output as visual confirmation of PICAXE power on. The switch on the 12V input is to assist with programming the PICAXE (the best way to program the chip is to initiate transfer from the computer with the power off, then quickly switch the power on). To save space I implemented this switch with a simple two pin header and jumper, which is actually a bit fiddly. If I were to build it again I would use a proper PCB-mounted mini toggle switch.

Power supply circuit

The rest of the circuit is shown in the diagram below. It can be divided into four parts; the 20M2 PICAXE chip itself, the serial programming interface circuit, the thermistor voltage divider and the LED switching transistors.

Click for larger image

The serial interface part of the circuit consists of two resistors and a 3.5mm stereo phono jack,  and is the standard minimum serial communication circuit as specified in the PICAXE literature. This can be used with either a simple serial cable (for connecting to a computer serial port, if your computer still has one), or the PICAXE USB  cable. For a temperature sensor I used a standard 10KOhm NTC thermistor (a component whose resistance changes in response to temperature). The thermistor forms half of a voltage divider with a 2.4K resistor, the divided voltage being read by the PICAXE analog to digital conversion function (ADC). The value of 2.4K was chosen to give a reasonably linear relationship between the divider voltage and thermistor temperature over the range of interest (25 to 120°C), as well as the greatest change in voltage over this range. This relationship can be calculated, and is shown in the plot below for my thermistor, which has a specified calibration constant (beta) of 4,100K.

The PICAXE ADC function converts the voltage at the input pin to a number between 0 and 255  in direct proportion to the voltage. This number is then used by the program to calculate and adjust the duty cycle of each sub-LED (red, blue and green). Because the LED strip requires a supply voltage of 12V, and because a PICAXE output can only sink or source up to 20mA, the LEDs are switched via three BC337 transistors (for my final 6-LED configuration, I could have also used BC548 transistors with say a 2KOhm base resistor). For the particular RGB LED strip I used, I measured the 100% duty cycle current per sub-LED at 6.2mA (red), 5.5mA (green) and 5.7mA (blue). Thus for a strip of six LEDs, the maximum current that any transistor will switch is 37mA. In the circuit shown above, the BC337′s can switch 100mA and remain saturated (probably more, but that’s a safe figure), which means that the circuit will safely switch a strip of 15 LEDs (they come in multiples of 3 remember). By reducing the base resistor value you could switch a lot more LEDs, as BC337′s have a maximum collector current of 800mA (you may need a gruntier 12V supply than I’ve specified though, and don’t forget the PICAXE per-output 20mA maximum current, with 90mA maximum per chip).

After going to some trouble to design a PCB layout in Illustrator, I decided that I couldn’t be bothered trying to etch a circuit board, so I made up the circuit using a prototype board and jumper wires, with screw terminals to connect the power supply, thermistor and LED strip. The board is illustrated below.

The circuit board

The prototype board. Not very elegant, but it does the job.

The Program

Of course the circuit above doesn’t do anything interesting until you load a program into the PICAXE. Programs are written in a simple language modelled on BASIC, but with many commands specific to the PICAXE functions. These include ‘readadc’ which measures the voltage on a pin and converts it to an 8 bit number (used for reading the thermistor), and ‘pwmout’ which sets the pwm duty cycle of an output pin. Again, there’s excellent documentation on these commands available on the PICAXE website. If you click on the link below, you can download my program in open document format, which you should be able to open in your word processor of choice (WordPress does not seem to allow uploading plain text files). You can simply copy and paste the text from this document into the PICAXE Programming Editor.

PICAXE BASIC Program for Rocket LED Controller

Here’s a brief description of how the program works. The objective of the program is to ramp the LED colour from blue through green to red in response to increasing brew water temperature as monitored by a thermistor attached to brew head water inlet pipe. The two important parameters that need to be set in the program are the thermistor readings that will correspond to 100% blue and 100% red. The half way value for 100% green is calculated from these by the program. I obtained the red and blue values by measuring the thermistor resistance when the machine was cold and fully hot (which happens about 45 minutes after switch on out of interest). I converted the resistance values to PICAXE ADC readings using a spreadsheet (the same one that produced the graph above). You could also directly observe the ADC readings by writing a simple program that reads the thermistor and reports the value back to an attached computer using the PICAXE debug function. The program uses the range of ADC values corresponding to 0-100% duty cycle for an LED and calculates a scale factor for converting the ADC value into a duty cycle output for the LED. Note that the PICAXE duty cycle output value is not a number between 0 and 100 as you might expect, but is calculated from the PWM frequency and the clock frequency of the chip itself. It’s all a bit confusing, but there is a ‘PWM wizard’ function in the programming software that helps you calculate the values to use. In this program, the PWM output values range from 0 to 400 (corresponding to 0 and 100% duty cycle). Anyway, having initialised these values, the program then enters the main loop where it reads the thermistor value and determines if it falls the blue-green ramp or the green-red ramp. It then calculates the appropriate duty cycle output for the two ramp colours (the third colour being off) and issues the pwmout command for all three colour channels. It then returns to the beginning of the loop, reads the thermistor again, and checks to see if the value has changed. If not, it just keeps re-reading the thermistor until it does.

Installing the Thermistor

So having built and tested the circuit, the next step in this project was to install the thermistor into the Rocket. In this case, I attached it to the copper pipe that supplies water from the heat exchanger to the brew head (I’ll talk a bit more about this below). The top panel of the Rocket can be removed for easy access to the brew head plumbing. Here’s the thermistor installation in pictures.

Thermal compound is applied to the water inlet pipe

Teflon tape holds the thermistor against the pipe. A short length of adhesive foam is then wrapped around it for insulation.

A final layer of foil tape completes the installation.

Installing the LEDs

As I mentioned in the above, I eventually opted for a strip of six LEDs installed at the back of the machine so that they reflect diffuse light off the wall behind. The LED strip adhesive stuck well to the polished stainless steel case. Importantly, it also seemed to be removable without damage to LEDs or case. However to test the set-up I just exposed a little adhesive at each end of the strip, and that’s how it has remained attached so far.

The LED strip attached behind the machine.

The End Result

Most of the measured temperature rise occurs in about the first 15 minutes after switching the machine on, so that’s about how long it takes the LEDs to change from blue through green to red. Over the next half hour or so the temperature does increase a few degrees more as the whole machine warms up to a steady equilibrium temperature. I decided that the best way to show what the heat-up looks like was to make an animated gif image from a series of stills. The quality’s not great, but you’ll get the idea.

An animated sequence showing the LED colour change as the machine heats up from cold.

Out of interest, the circuit draws 49mA from the 12V supply when operating, which gives a power consumption of 590mW. Of this, the LEDs consume about 330mW

More Than Just Pretty Lights?

The objective of this project was not just to make pretty accent lighting for the Rocket, but to also see if it could provide useful visual feedback on the temperature of the water entering the brew head. It is essential that this temperature is right if you want to make good coffee on a heat exchanger E61 type espresso machine like the Rocket. Actually it is essential on any machine: the brew water temperature needs to be in a certain range in order to make good espresso (85-95°C). Different machines have different ways of achieving this temperature. In heat exchanger machines there is a water boiler which is maintained at a certain temperature, usually around 120-125°C. This boiler provides steam for milk frothing, and is also the heat source for heating the brew water. The pipe taking cold water to the brew head passes through the boiler so that the brew water is heated and will be in the correct temperature range when it hits the coffee, hopefully. Unfortunately there is more to achieving the correct brew temperature than just the  boiler temperature and design of the heat exchanger. Firstly, the machine needs to be properly heated up (at least 45 mins for the Rocket, especially if you want to do more than one shot) as getting the correct temperature requires the pipe-work and brew head to be warm. To keep the the E61 brew head warm, which is a large chunk of brass, the pipework forms a loop between the heat exchanger(HX) and the E61 head. This creates a convective flow as water in the head cools and flows back to the HX and water in the HX heats and flows up to the head. This also helps keeps the water in this ‘thermosyphon’ loop cooler than the boiler temperature, but in the rocket (and I suspect most machines of this type) it still quickly becomes too hot for making coffee. Reading my thermistor, I observed the head inlet pipe stabilise at 113°C when the machine was properly warmed up. So before you make your coffee you need to flush the over-heated water from the inlet pipe. However the machine design relies on some heating of the loop between shots, and on the heat stored in the brew head, to achieve the correct water temperature. If you keep running water through the HX and out the brew head, the water will quickly become too cold to brew coffee! It all sounds a bit tricky, but remember that these machines are based on a commercial design, and you can see how it might work in that environment: you pull a shot and while you clean and refill the portafilter the loop water reheats just the right amount, then you pull another shot. At home the machine is more likely to be sitting idle for a long time between shots, which makes controlling the temperature more of a challenge.

So do the LEDs help? Well sort of. I found I use the LED colour as an indication that I’ve got my flushing about right.  So, if the machine has been warming up for an hour, or sitting idle for a time, the LEDs will be red and I know from experience that the loop will be too hot, probably in the order of 113°C at the head inlet. The first step is to grind and tamp some coffee. The next step is to flush the over-heated water to drain. When I start the pump I can observe the super-heated water boil and splutter as it comes out of the head. After some seconds, the boiling will stop as the water temperature drops below 100°C. At this point I leave the flush running for maybe 5 seconds, which brings the temperature at the head down below brew range (around 80°C). There is a lag in the thermistor response, so a few seconds after stopping the flush I observe the LED colour stabilise to greenish-yellow. During this time I lock in the portafilter and get a cup ready. Now I wait for usually 30-50 seconds so that the cool water in the HX can heat, and the water at the inlet warm back up, but not above the acceptable brew range. This is indicated by the LED colour changing to a yellow- orange. Then I pull the shot. The LED’s certainly aren’t essential, but they’re fun and I think I’ll keep them.

Here’s a short video I made to illustrate the process:

Hmm, I don’t know why the captions are dropping off the bottom. I’m not very good at this video making business.  Anyway that’s about it. I hope you enjoyed reading about this project as much as I enjoyed doing it.


A Warm Antique Brown Finish for Pine

IMG_1498-2

I make a lot of things from pine as hard woods like oak are crazy expensive where I live. It’s fine for things like the set of small drawers pictured above. The problem I used to have with pine was achieving the Arts and Crafts style warm reddish-brown finish that I like. Dyes give patchy results on soft wood like pine, so I have been experimenting a lot with pigment stains. A particular favourite of mine is a reddish-brown colour called “traditional cedar” (a Wattyl Colourwood stain). I usually combine it with a small amount of another very dark brown (almost black) stain (Wattyl Colourwood “terra”) in order to achieve a rich dark brown. For durability I usually finish with a couple of coats of polyurethane. That gives an OK finish, but pine is a very white wood and the stained colour lacks the depth and amber warmth of an antique Arts and Crafts finish. Also, polyurethane can be very difficult to apply without getting dust nibs or runs or missed patches, and tends to give a bit of a plastic look to the finish. It’s great where you need durability though, such a the towel cupboard I made where people are likely to touch the wood with wet hands.

Recently, however, I discovered shellac. Of course I knew about shellac, but had never used it. Suddenly I was able to achieve the finish I wanted on pine. The key to the finish is amber shellac. It affords a lovely amber warmth to the finish, complimenting the red-brown stain. Now I know heaps of woodworkers will already be familiar with shellac and probably have their own preferred way of using it, but for those that are new to it here’s how I achieved the finish on the drawers in the photo above.

IMG_1468

The first step is to sand the wood down to 180 grit with sand paper.

IMG_1482

These are the pigment stains I use. “Traditional cedar” on the left, and “Terra” on the right. For the drawers I used a mixture of about 4 parts trad cedar and 1 part terra.

IMG_1474

The stain mix is wiped on with a rag to give a nice dark reddish-brown (I think I’ve used too much terra in this test piece, more like 3:1).

IMG_1480

Once the stain is dry, I apply a coat of amber shellac with a brush. You can see the instant warmth it adds.

IMG_1478

I buy pre-made shellac. It comes in both amber and clear. Being dissolved in ethanol, it dries very fast and can be tricky to apply with a brush over large areas, especially if the air is warm. You have to work quickly, but build-ups from overlaps can be sanded back later.

IMG_1481

When the first coat of shellac is dry (after one or two hours), I rub the surface with #0000 steel wool. You have to be careful at this stage or you’ll rub through the shellac and remove the stain. Difficult to fix.

I don’t have a good picture of the next step, but after the steel wool I rub on and wipe off a “glaze” of the dark Terra stain. Not much actually sticks, but it does make a difference and helps to give it a more aged look.

IMG_1491

Once the glaze is dry, I apply two coats of the clear shellac with a brush to build up some depth. You only have to wait about an hour between coats, but after the second coat I leave the shellac overnight to dry and harden properly.

IMG_1492

With the shellac properly dry I use some #000 or #0000 steel wool to sand the surface smooth (if it’s really rough I might even start with some 600-800 grit paper). I have done this step dry, but in this photo I’m using Danish Oil to lubricate the job (wipe it all off before it starts to dry). Here I am rubbing in circles to help reduce the fine ridges created by brushing the shellac. After this I rub the steel wool with the grain to remove the circular scratches (it doesn’t take much work). Finally, I finish the sanding with #0000 steel wool to give a smooth dull finish (like the third photo above).

The last part of the finish is to apply three coats of Danish Oil. This fills the surface and creates a beautiful shine which is not too glossy. I like Danish oil as it dries quite fast so you can build up the finish quickly.

IMG_1515

And here it is with the Danish oil applied.


More Photos of iPad Stand Construction

After the success of my original iPad stand I decided to use the left-over length of oak board to make four more stands. I slightly modified the design this time to include an angled front face on the base. I am calling this design “iPad stand No. 3″, as it is the third modification to my basic stand design (there was an original prototype with a shorter upright, as well as the design described in my earlier post). I decided to photograph the construction of these stands and write another post as I felt my previous post was lacking in photos and might have been hard to follow. So here again is a description of how to make my stand for the iPad 2.

Note: measurements below for the iPad 2 only.

As before I started with a board that was 110mm wide by 22mm thick after squaring and milling (the same board in fact). From this I cut four base blocks, this time 110mm long to match the width of the board (the length should exactly match the width of the board). Making them 110mm long meant I could use the full width of the board for the upright parts.

IMG_1336

The four 110x110mm base blocks.

The next job was to cut a slot 14mm wide by 5mm deep in each block. The slot is cut 20mm in from the front edge of the base as indicated in the diagram below.

vanishing pt test

IMG_1350

This is my simple home made router table. An acrylic plate screws onto the base of the router and sits in a recess in the table.

IMG_1339

The slot is cut in one of the bases. I made the slot in two passes as my biggest router bit was 12mm diameter.

After cutting the slot, mark a line along the bottom of the slot, 9.5mm (can be a small as 9.1mm) in from the front edge of the slot.

IMG_1341

I found a stick that was 9mm wide and used that to measure out the cutting line in the slot.

Next, mark a cutting line for the front face of the base. This should be located 8mm from the slot front as shown in the diagram below. Ultimately you’ll make four angled cuts in the base as indicated by the blue dashed lines.

vanishing pt test 2

IMG_1343

Set your saw blade angle to 14°. The rest of the cuts will be made at this angle. Start by cutting the angled front face of the base. Keep the off-cut as you’ll need it for the glue-up.

IMG_1344

The front face cuts have been made.

Next make the cut in the slot to create the front piece of the base.

IMG_1346

Lining up the saw for the slot cut.

IMG_1338

The photo above shows a narrow piece I used for testing the cuts. Here the slot cut has been made and you can see that small bit of the slot remains on the back bit of the base. The next task is to trim that face to remove the residual slot.

Now mark another cutting line on the top face of the bask part of the base, 60mm from the sloping face as shown in the cutting diagram above. Cut along this line to create the rear sloping face (at the opposite slope to the front face). Keep the off-cut.

IMG_1348

The parts of your base block should now look like this.

Next, I took a length of my 110x22mm board and cut it through the middle of the 22mm side on a table saw to create two thinner 110mm wide boards for the upright parts. These I milled to about 7.5mm thick. These were then cut into 160mm lengths with the saw blade still at the 14° angle (same slope direction at both ends).

IMG_1351

Cutting a 160mm upright piece from the thin board.

Before gluing the parts together, sand the upright board to 180 grit, and also sand the slot in the base, and the top face of the rear part of the base. These surfaces are difficult to sand properly once glued.

The final construction job is to glue the upright board to the base parts. To do this, make a sandwich of the base parts, including the off-cuts (front and back, don’t glue these of course, just glue the faces that butt against the upright) and the upright and clamp it tight between two lengths of timber as shown in the photo below. For glue I use cross-linking PVA.

IMG_1353

When set, remove the clamps and discard the off-cuts. The stand is ready for final sanding and finishing.

IMG_1355


Spindicator Mk 2–Now With Fade Effect.

IMG_1229

I’ve had a couple of questions asking about using capacitors to fade out the  LEDs of the spindicator to give a sort of trail effect, and I thought I’d like to try it myself. So let’s get straight to the circuit.

Spindicator with Fade

The first thing to note is that in this version I have used the computers 12V supply, not the 5V supply as in the original spindicator. This is necessary to obtain a good fade effect from the capacitor.

The motherboard interface and low pass filter are the same as in the original circuit. The difference is that the counter’s outputs now switch  general purpose NPN transistors (a BC 547 in this case). When a transistor switches on, its associated LED is lit via the 1k Ohm resistor, and the 47uF electrolytic capacitor charges. When the transistor switches off, the capacitor discharges via the 1k Ohm resistor and LED, fading the LED as the charge dissipates. The fade time is a function of the values of the resistor and capacitor; the larger the values the slower the fade. The resistor is also the current limiting resistor for the LED, so that sets a limit to its value (between 470-1000 Ohms for most LEDs). What I found with breadboard testing is that if the fade time is too long, the whole spindicator ring lights when there is lots of disk activity, and you lose the spinning effect. I found that a 47uF capacitor gave a noticeable but suitably quick fade to each LED.

A challenge I faced with this circuit is that it has many more components than the original spindicator, with an extra 10 capacitors, 10 transistors and 20 resistors. The prototype board and patch wires approach would be too big and messy, so I decided to make my own PCB. With some trial and error I managed to get a reasonable result by laser printing (Brother HL-2170W) a design onto some Canon glossy photo paper (GP-401) and using an iron on its hottest setting to transfer the toner to a blank copper circuit board. It required some hard pressing to stick the print to the board, and then more working over the areas where the traces were with the tip of the iron. What I found though is that the paper then pulled away cleanly, leaving the traces stuck to the board. There was no mucking around soaking off the paper in water as others have reported when using this technique. If some of the traces pull off with the paper, you can just clean the board with some xylene based brush cleaner and try again with a fresh printout.

IMG_1217

The above photo shows my copper board with its toner transfer sitting in the ammonium persulphate etching solution. You’ll notice some rough edges on the left hand ground trace, but there was enough cover left so I didn’t bother to print it again.

The end result, with components all soldered in is shown in the photo at the beginning of this post. I’ve connected all the LED cathodes together (not shown) so that there is only one common cathode wire and 10 anode wires running to the LEDs. I have not yet installed this spindicator – I’m waiting for the next time I’m doing some work inside the server (probably when I upgrade to WHS 2011).

Here’s a quick video of the spindicator mk.2 working at a constant clock frequency of about 25 Hz. The background sound in the video is rain on my workshop roof.


Make Your Own iPad Stand

IMG_1283

Percy admires the stand

UPDATE: I have added a new post with more construction photos and a slightly modified stand design here.

Here’s a simple woodworking project that I thought might be of interest to iPad owners . When I recently purchased my iPad 2 I decided to forego a “smart cover” in favour of a  leather sleeve from Saddleback Leather. To complement the sleeve I decided to whip up a wooden stand.  The design I came up with is easy to make with only three glued-together parts, as I describe below.

I made mine from white oak. Start by milling a two lengths of board, one to about 22mm thick (could be a bit thinner depending on what you have), the other to 7mm thick. I milled 300mm lengths of each as that’s about the minimum I can put through the thicknesser. The base part is made from the thicker board, and the upright from the 7mm board. The thicker board should be at least 110mm wide, and the thinner board should be cut to exactly 100mm wide.

Ultimately you want to end up with the three pieces, which have the following profile when the stand is viewed from the side. Note that the base pieces are being viewed end-grain on, so really their length is 100mm, not their width, but you know what I mean.

ipad stand plan

N.B. These measurements are for an iPad 2, NOT a first generation iPad. The width of the slot (9.5mm above) should be increased to 14mm for the original iPad.

These parts will be glued together to make the stand as shown below.

IMG_1242

For the base parts, straight cut a 100mm length of the thick board. It should be exactly the same length as the width of the thin board. What I did was finish the thin board to 100mm wide first, then used that as a template to set the cut distance for the thick board. Now you should have a base block which is 100mm long, at least 110mm wide and 18-22mm thick.

The next job is to rout the 5mm deep slot in the base. I suggest doing this before you make the angled cut which divides the base into two pieces. Using a table router is easiest. Cut the slot along the grain of the block, 10mm in from the front edge. Cut the slot about 14mm wide (18mm for iPad 1). This allows room to get the saw blade in for the angled cut. Mark a cutting line on the base of the slot 9.5mm (iPad 2) or 14mm (iPad 1) in from the front of the slot. Set the blade angle of your compound mitre saw to 14° and cut along the cutting line to make the front piece off the base. Make sure you’re cutting the angle the right way. The corresponding angled edge on the back part of the base will have some left-over slot cut in it, so trim it off using the angled saw. Now flick the back part around and cut the rear face at the same angle so that the long edge is about 70mm as shown in the drawing above. Keep the off-cut, as you’ll need it for the glue-up.

Lastly, with the saw still set at 14°, cut the thin upright board to length (165mm). Pre-sand the parts prior to gluing.

To glue the parts I sandwiched them between two lengths of wood as shown in the picture below. This is where you need to put the off-cut from the back of the base into the sandwich (don’t glue it of course) in order to make a vertical surface at the back.

IMG_1252

Finish the stand as you please. I went for a dark warm-brown finish using a reddish dye followed by a mix of red-brown stain and a dark brown stain sealed with amber shellac and finished with satin polyurethane.

IMG_1255

IMG_1282

IMG_1280


Finally, the True Ultimate Hiccups Cure.

 

A while ago I stumbled upon a sure-fire way of quickly getting rid of the hiccups. Before that I had been advised of, and tried many of the well known “cures”, all of which I had found to either totally fail, or be at best inconsistent in efficacy. You know the ones; slowly drinking water, drinking warm water, breathing into a paper bag, scaring them away (how do you actually do that?), holding your breath, filling your lungs and swallowing, and so on.

Thinking that maybe my method would probably be well known I performed a Google search. There certainly are a lot of methods discussed. I even found two I haven’t tried; eating a teaspoon of sugar or putting your fingers in your ears, but interestingly I could not find my method. So here at last, for all of you hiccups sufferers, I will reveal the true, ultimate, sure-fire hiccups cure (that doesn’t involve cutting your head off)…

To cure hiccups, stand on your head.

headstand

No kidding, this really works. Just do a head stand for about half a minute until you’re sure they’re gone. If you’re not skilled in yoga like the women in the photo, just put your head on a cushion and do  a three point headstand against a wall for support. It’s easy and fast, and helps with headaches too! Others may wonder what you’re doing, but it doesn’t look nearly as odd as hyperventilating with your fingers in your ears.


A Quick Wooden Computer Case

 

I recently decided to build a wooden computer case, despite the fact that I’ve never really liked wooden computer cases. The project came about because I realised that I had enough spare computer parts in my cupboard to build a reasonable computer. I don’t have room for another computer in the house, so I decided to build one for the garage. The plan was to make the computer as cheaply as possible from spares; the problem was I didn’t have a case to put it in. I thought about buying a cheap case, but in the end decided that since it was only for the garage I would whip one up out of plywood.  So that’s what I did. It’s not a particularly interesting project, it’s a simple wooden case with fairly boring parts inside, but I thought I’d put up a few pictures and notes anyway in the hope they may be of interest to others who may be thinking about building a wooden case.

I made the case from 12mm thick plywood. I went looking for a sheet of the usual pine ply, but was talked into an even cheaper sheet of poplar ply with hardwood veneer. I wondered about the quality of the ply (rightly so as it turned out), but bought it anyway. The problem with the ply was that the veneer is about 0.1mm thick and chips and flakes off with the making of every cut and hole. In addition, most cut edges (which I had planned to leave exposed) have gaps where there are missing bits in the laminated layers. It would probably be fine for making a door panel fitted in a frame, but was not a great choice for this project. I ended up covering the edges and using a dark stain to hide the chipped veneer, which worked out reasonably well.

IMG_0859

Here I’ve cut the side on which the motherboard is mounted. I’ve added another square of 6mm ply under the motherboard in order to lift it up a bit more. This moved the cut-out for the connector plate further away from the edge of the back board, making it easier to cut. The block of wood beneath the motherboard is a spacer for the power supply, also used to move it away from the side.

 

IMG_0860

As I did with the server cabinet, I used small rubber grommets as stand-offs and screwed the board down to the plywood.

 

IMG_0862

There were a number of slots to cut, all of which I did with a router using wooden templates and a template guide on the router. This is the slot for the connector plate. I was able to use plywood offcuts to make templates since the perfect template thickness for my router guide is 12mm. You can see in the photo that for square or rectangular holes like this I just mark out the hole size with template offset added (two times the distance between the edge of the the template guide and the edge of the router bit), and then plunge cut the hole in the template with my drop saw. It’s quick and easy and makes a perfect square (or rectangle). The fact that the cuts extend beyond the bounds of the hole does not matter. Because I’m cutting right through the board here, I’ve placed another sheet of scrap ply underneath to stop the router cutting the table. I recommend making several shallow cuts, as cutting the full 12mm all at once is too much for the router.

 

IMG_0871

And here’s the back of the case with all slots cut. I try and make very careful measurements (vernier calipers are indispensible for projects like this), but even so, the perfectly snug fit of the metal connector plate was a pleasant surprise. You can see that the router bit leaves rounded corners. These can be squared with a chisel, but I just left them as they were. The large hole is for the power supply, which will sit at the bottom of the case. It seemed easier to put it at the bottom rather than have to construct a sturdy shelf at the top, however it does make cooling more of a challenge.

 

IMG_0901

This photo shows the PSU cut-out from the back. The PSU hole has a recess on the inside into which the PSU fits. This helps secure it. To cut the recess, I made a template to cut the exact outside size of the PSU when using a 12mm router bit. I then cut the through hole with a 6mm bit, which made it 6mm smaller than the PSU in each direction. Keeping the template in place, I switched to the 12mm bit and cut the recess to a depth of 7mm.

 

IMG_0874

In this photo I’ve glued the back and base to the side and temporarily installed the motherboard to assist with positioning the hard drive and PSU. I only intend using the one hard drive, which is held in place with a simple friction restraint (a “Z” shaped metal bracket screwed to the base board). The drive sits on a rubber pad to reduce vibration, and will eventually be earthed to the motherboard with a wire.

I guess I should say something about the hardware. The mother board is an Intel D975XBX2, A.K.A  “Bad Axe 2”. I actually won it in a computer mag competition, along with some other parts. I used it for a while in a computer, and found it to be a difficult board to overclock, although stable at the right settings. The processor is a Core 2 Duo E6600, one of the original Core 2’s. The first Core 2 I bought was an E6600, but I later sold it. The only piece of hardware I didn’t have for this build was the CPU, and CPUs compatible with this board can no longer be purchased new. I found a reasonably priced E6600 on an auction site. The guy even threw in the custom “Freezer Pro” cooler, which I don’t think is a great cooler, but probably better than the stock job (I’m a big fan of the Thermalright ultra-120 extreme CPU coolers). My preferred hard drive brand is Western Digital, and luckily I had a spare WD 500GB drive for the build. Most of my data is stored on my home server, so my client computers only need one modest drive. With regard to drives, I decided to go all futuristic and not include an optical drive. Actually, it’s probably more that I wanted to keep the case as simple and compact as possible. It isn’t as hard to cope without an optical drive as you might imagine. I now buy and download most software and music etc. from the internet, and software on DVDs can easily be transferred to a USB flash drive on another computer. That’s how I installed Windows 7 on this machine. The graphics card, not installed in the photo above, is an Nvidia 8800GT with a nice quiet aftermarket cooler.

 

IMG_0873

I spent a while thinking about how to fit ventilation fans to the case. Because the computer will be operated in a potentially dusty environment I did not want the case to be under negative pressure. I decided that two 12cm intake fans would do the job, one on the top feeding air to the CPU cooler and RAM, and one at the front blowing across the hard drive. The fans would need  filters which could be removed from the outside, as this case will not be as easy to open up as a metal one. My solution was to cut an 110mm diameter circular hole with a jigsaw, then rout two recesses on the outside face. The first recess was a circular 130mm recess centred over the hole and cut to a depth of 8mm. The second was a 134mm square recess centred over the hole and cut to a depth of 6mm. The result is shown above. To make a grill to retain the filter cloth, I cut the bottom out of a small garden sieve and trimmed it to fit into the circular recess. This is held in place with some hot melt glue. I then positioned the fan over the hole and marked, drilled and countersunk the holes for the fan retaining bolts. I chose bolts with countersunk heads so that they would be flush on the outside. Over all this went a square of filter cloth (vacuum cleaner motor filter), cut to fit into the square recess.

 

IMG_0872

Finally, I made a removable wooden grill from some 5mm think strips of pine. The grill was sized to fit into the square recess, and was screwed down over the cloth with four pan head screws as shown. The panel on the left is the front panel, the other is the top panel. On the front panel you can see that I’ve also drilled out a 16mm hole for the power switch, and above that a 3mm hole for the power LED. The thread on the power switch was not long enough to go through 12mm of ply, so I recessed an area behind the switch hole with the router.

 

IMG_0875

In this photo it’s all starting to come together. I’ve fitted all parts, installed Win 7, and am testing the system stability with Prime 95 whilst monitoring temperatures with Everest (two invaluable programs for the computer builder). You can see the little white power LED above the switch. As well as the left side of the case, I decided to also make the top panel removable. This makes it easier to replace the top fan, and to remove the motherboard. To secure the top panel, I screwed it to a wooden rail which I glued near the top of the three fixed sides. The removable side panel also has a wooden rail glued around the inside. Three of the top screws (missing in the above photo) screw into the side panel’s rail, helping holding the side on. I decided to make more of a decorative feature of the screws by using cup washers.

 

IMG_0877

There are a couple of things to note about the back. Firstly, you’ll notice the wooden plug in the end of the video card slot. I had to make these slots a certain length in order to be able install and remove the cards. The metal return on the card bracket sits on the edge of the ply, which stops the card from rotating downwards. However, because of the slot length, when you plug in the cable, the pushing tends to rotate the card out of its slot. To stop this I made a tight fitting removable plug. The second thing to notice is the aluminium strip screwed over the lower slot. Ultimately the slot above it got one of these too (note: the blue light is from LEDS on the front fan – not intentional, it’s just that I had this fan going spare). I cut these two slots because among my spare parts I had a WiFi card and a Creative Audigy sound card. Once I got the thing powered up I quickly learnt several things: Firstly, useful WiFi reception was not available in the garage, secondly the WiFi card was not compatible with Win 7, and thirdly, despite Creative’s Win 7 drivers, the Audigy card did not work at all well with Win 7. Ultimately I decided to extend wired LAN to the garage, and use the motherboard’s built in sound chip (at least for now). The slots were thus superfluous, and were covered up.

 

IMG_0878

Another shot of the back. Here you can see the small white reset switch. I installed it into a recess so that it is flush with the back. I hoped that this would help avoid accidental pushes.

 

IMG_0890 

This photo shows two more modifications. Firstly, I found that things were a bit warm because hot air could not easily escape the top of the case. There’s a reason why most cases have the PSU at the top. The solution was to cut some top vent holes in the removable side. These have some mesh behind them to discourage spiders. Secondly, I found that the removable side needed to be held in by screws at the front and back as well as top and bottom. The wood had a tendency to bow out otherwise. I thus added a row of screws down the front and back. The back and underside screws are just normal countersunk screws.

 

IMG_0895

Then I decided that the exposed plywood edges were just too shabby, and milled some thin strips of pine to glue over them, which is what’s happening in this photo. I didn’t bother with the edges at the back.

 

IMG_0899

And so to finishing the case. I had to strip everything out again in order to sand, stain and varnish the case. I started with this light brown stain, but ultimately decided to go for a dark brown finish, better to cover up the veneer chips.

 

IMG_0903

Here’s a shot of the case inside. You can see the wooden rail below the top edge. I’ve also added another strip down the front inside to take the decorative front screws.

 

IMG_0904

And here’s the inside with everything refitted and ready to go. Notice the wooden stop screwed in behind the PSU to stop it from moving backwards. The PSU hold down “Z” bracket is screwed into this stop.

 

IMG_0908

Finally, the end result. Stained dark brown and finished with four coats of polyurethane. I must say that it ended up looking better than I imagined.

The HP monitor is one I repaired.  One day after a few years of use it started smoking alarmingly. I wrote it off as dead, but didn’t throw it out. Eventually I did some research, and with a few dollars worth of parts ordered online, and advice from folks on the Badcaps forum, was able to replace the burnt out transistors and get it working again. Brilliant. Now all I have to do is clean out my messy garage so that I have somewhere to put it!


Follow

Get every new post delivered to your Inbox.