Friday, 15 March 2013

Zippo Burglar Alarm

This is another old project that I originally posted over at Instructables. If you want to have a go at making one, check out the original posts.

... And this piece represents society's self destructive nature


This idea began with my obsession with Zippo lighters, and I suppose that all started with a childish fascination with fire (I still list burning things as one of my hobbies). 
But now it's more than that, I love the Zippo design because of it's simplicity, a wick petrol burner, the satisfying click of the cam hinge, the easily replaceable parts, rugged metal construction, all come together in a neat pocketable enclosure.
It's got ties with the army, it's a hollywood icon, not mention that they're just plain cool.

I used to carry a zippo all the time, but now it lives in my toolbox. These days my love of Zippos manifests itself as seeing what gadgets I can cram into them, and occasionally setting my trousers on fire.
Which brings us back to the Zippo burglar alarm.

A quick bit of googling set me up with the simple electronics knowledge I'd need to make an infra red proximity sensor, I mocked one up using a PicAxe chip to do the heavy lifting.







 | Warning! Poorly Explained Tech Stuff | 

A basic IR proximity sensor works by shining an IR LED at a receiver whose resistance will change depending on how much IR light is hitting it.
You can place the emitter and receiver on opposite sides of what you are trying to detect, but it is easier and more compact to use reflected light. I.E the led (clear part at top of image) sends out it's beam , if an object is with 20cm the light will reflect off of this object back to the sensor (black bit just to right of led) and trigger it.

For my project I'm actually using a digital sensor. The difference being that it will only trigger when it receives a very specific coded signal from the the LED.
This is much more secure and isn't subject to ambient light or other interference.
Generating the specific code is done by my chip. Then, when the sensor is set off, my chip will trigger the red LED and the piezo transducer. These gold discs are nice simple ways of making annoying noises (think pre-polyphonic ringtones).

The push button is just there to select the various different program modes I put on the chip.

 | Warning! Poorly Explained Tech Stuff | 






So now that my circuit was working on that breadboard the task would be squeezing it into such a small space.


First job was to plan out my circuit in extravagant, illustrated fashion.

Mock up of the main board


This battery board, occupies the Zippo lid.




Constructing the actual boards took an incredibly long time. One of the main problems being trying to insulate everything. Zippo cases are made of brass so I was afraid of shorts. I was insulating everything as I went along with clear epoxy, which was fine until I tested the circuit and it didn't work.




After a few hours with a multi-meter I found a short buried under a mass of epoxy where I had glued two boards together. After deciding that chipping away the epoxy would just cause more damage I decided to sever the connection and re-route it with some wire.




The battery board was mainly a pain just trying to fit 3 button cells under it and cram it into the lid.



I wanted to retain the classic snap action of the Zippo hinge and remaking it seemed tricky, so I opted to just hack up the insert.


Less one chimney.



Shorten significantly and relocate the spring.


I had all the pieces, now I just had to smoosh them together.


Piezos normally have special enclosures to increase volume. That would have taken too much space so I just expoxied it to the side of the case, which improved the output significantly.


I insert the main board, so that the LED pokes through this convenient hole.

Side note, those markings on the base of the Zippo indicate the year it was made. Turns out this one (£5 off eBay) was from 1984. If I'd known that I wouldn't have defaced it. 


The smaller board screws into the lid (securing the batteries) and what's left of the Zippo insert push fits to keep the rest of the guts in place.
I did make a little sleeve for the IR LED but it has a 30ยบ beam angle so only reflected light will set off the sensor.   

You can see it working in this old video*



I made this as part of the Instructables.com gift exchange, so I no longer have the original. But now that I've got my CNC mill and can make nice neat circuit boards, I've added remaking this to my to do list, along with a million other 'zippo gadgets' .

R/C Zippo

Camera Zippo
Torch Zippo - Actually working on this.
MP3 Zippo
Infinity Mirror Zippo
Hermit Crab Zippo
Laser Pattern Zippo
USB Card Reader Zippo


Maybe someday I'll get around to building some of them.



* Please forgive the quality, I still haven't gotten the hang of making good videos but this one still makes me cringe watching.

Thursday, 14 March 2013

Milling PCBs and Circuit Board Evolution

I've been dabbling in electronics for years. Most of the time this involves starting on a breadboard and then transferring your finished circuit onto stripboard.

More often than not I'm trying to squeeze far too much stuff into a tiny space, for example in my Zippo Burglar Alarm.
Which means that the resulting boards are an awful mess of wires and massive solder lumps.






For this post I'm going to use my Hellboy Corpse Locator light board as an example, because it's been through a fair few revisions.
It's a fairly simple piece, I needed a board to fit under the dial of my corpse locator prop, and make the dome light up red. A simple task electronically, but mechanically it's difficult to get everything to fit.

I started by using a tank cutter to cut disks out of stripboard.




I was surprised by how well this worked, it made it easier, not having to shape each board by hand, but each one still took about 10 minutes.

I wanted to use surface mount LEDs, they were on the copper side, meaning everything else was on the reverse side. Which left me trying to find a way to create a second battery contact on the reverse side of the board.

The most reliable solution I could come up with was stitching a grid with copper wire.


Again, at the time, I was proud of my little inovation, conductive paint had too much resistance, glueing foil to the board had been problematic, this wasn't perfect (some wide copper tape would have been good) but working with materials at hand it did the job.



Once everything else was attached, the board looked like this. 
After making about 10 of these I managed to get them quite neat. But it was very labour intensive, each one probably took over 3 hours of quite fiddly work. 
And due to the nature of cutting out the boards, each one was slightly different, in where the LEDs went and where the wires were routed.


Many months later, the dawn of my CNC machine, and obviously one of the first things I wanted to have a go at was milling PCBs. I drew up the design in Vectorworks (EagleCAD* is the proper tool) and bought some copper clad board and was very easily able to cut out a simple PCB.
Milled PCBs are different to proper manufactured PCBs, you start with a solid layer of copper and simply mill away 'isolation paths' to create your tracks.



The one on the left is my very first attempt, I just used a cheap V bit that I had and the result was some very rough looking paths, but an entirely functional board.
My second attempt (using a 0.8mm ball nose) was much neater, but after my PCB milling bits arrived from China I was able to cut really neat boards. These are 0.2mm isolation paths, so potentially I can mill some really complex boards with lots of tiny surface mount parts.





Designing for CNC always affects your design. For example I wanted to take advantage of the fact that the copper layer could act as my other battery contact (no more stitching) so that meant the board was flipped and everything was soldered on the back. 




This also meant I had to switch to normal 3mm LEDs and mount them upside down (poking through the board) I originally use smt LEDs to keep the board thin, but the limiting factor is always the battery thickness so this works out fine, and the 3mm leds are brighter.

The boards look really cool now, very neat and I can do cool stuff like engrave labels and my logo. But the main thing that makes these far better than their predecessors is the time they take to produce. Each one probably takes about 20 minutes of milling, because it requires several tool changes. But then only about 10 minutes of soldering and it's finished.

Also each one is identical, which means I can add matching screw holes to my plastic corpse locator parts. rather than the tedious task of lining up and drilling each individual part to match it's specific board.




* Eagle is a program which allows you to draw up circuit diagrams, as well as layout circuit board designs for sending off to have fabricated. With the proper add on you can also create Gcode to send to a CNC machine. It sounds like a fantastic tool, but when I had a go there was a lot to learn and, for such a simple circuit, with mostly through hole components it was just slowing me down.

Friday, 1 March 2013

Concrete Couch

I covered this project in extensive 'how to' detail over at Instructables. So here I'll just give an overview and cover some different aspects.





This project started out as a competition created by the University of Brighton Architecture Society.
You can read more about the scope and intention of the project on the University's website. As well as everyone who worked on it.


I did enter the competition myself, but being a first year I only made it through one round of judging. The final design came from a third year and consisted of stacked concrete blocks to create modular seating. 

The actual build took place over the summer. I joined the build team and our first job was finalising the design.

We decide to add lugs to more securely seat one block on another. We took our inspiration from how Romans used to join columns together. However our early prototype looks more like a lego brick.



This is still one of my favourite things I've ever made from concrete.

On that note this was a prototype created by the other team (attempting to make a chair by filling a large bag with concrete).



It was a beautiful object, like a concrete pillow, impossibly smooth for something so hard. A quality which, unfortunately, they were unable to recreate in the full-sized chair.


From our prototype we adjusted the design to have four lugs on top and to make them square.

We made a mould out of plywood. The construction of the moulds is actually pretty complicated, gluing together strips of wood that are chamfered so that we created the right shape for the lugs. The Instructable has more on all that, but I quite liked these diagrams I put together.



This is the first brick we pulled out of the mould.


A little rough, but we checked it over, made another to make sure they fit together and finally decided to add some lugs to the sides to help them all lock together.
The lugs are centered, if we had offset them we would have been able to overlap the bricks when stacking (like with traditional brick laying, or LEGO) but we intentionally constrained it to direct stacking, in line with the original concept drawings.
Although, by this time, I felt we had taken ownership of the project, the original designer was unable to join the build so we'd collectively made all the development decisions. The identity of the bricks themselves was totally different (originally they had been conceived with holes so they would thread onto scaffold poles inserted in the ground)



Then it was into production mode.


We cut a stack of plywood on a table saw them began gluing all the panels together.


Eventually we had a pile of panels ready to be assembled into boxes.


We had enough moulds to produce 5 bricks at a time.


We tried a bunch of different techniques to make the blocks more interesting, one of the best was simply hot gluing leaves inside the mould before pouring.
Other techniques included burning the mould, and hot glueing lines inside.

We poured 5 blocks at a time. Over a period of a few weeks we came in, broke down the moulds, cleaned them, reassembled them and cast 5 more bricks, then left them 3-4 days to cure. This method is known as batch production and we were able to make around 30 bricks this way. 


The final job was hefting all the bricks down to the garden so we could set them up.





 As seating they're fine for up to about an hour, which is plenty of time for lunch or a quick break. 

This was a fun project and I learnt a lot. Concrete's a really fun material when you give it a chance, we didn't even scratch the surface of the cool finishes you can achieve.

One of the main lessons though was how many issues you have to deal with in 'live' projects, designing stuff is easy, but the number of revisions and compromises you have to make when thinking about actually making it are what end up informing the design more than anything else.

CNC Mill Build - Enclosure

After finally getting the mill running it became obvious that I was nowhere near done.

Firstly, in their current position the electronics didn't give the machine enough room to move freely, so they would have to be relocated.

Also my current method of using drawing pins to hold down material wasn't going to be a permanent solution.


The first problem is easily fixable, I collected a bunch of connectors, then got out my calipers, cracked open Vectorworks* and began designing an enclosure. 
I cut all the pieces out of 3mm MDF and when assembled they looked like this.




From the front all you see is the name and power switch.


One side features a cut out for a fan.


The back has all the connections, A/C power in, parallel signals from the computer and five molex connectors, one for each motor and one for the limit switches.


I designed the box to be low profile so it would fit in the sliding drawer under my desk.



Here it's nice and out of the way but easily accessible if I need to fiddle with it.




Under the hood, you can see the power supply takes up most of the space. Main power is routed through the illuminated switch at the front. The 24V supply then gives power to the motors, it also drives a tiny 5V regulator for the logic power supply and the motor is supplied by a slightly larger 12V regulator (you can see it glued to wall on the right)




I found some little fuse holders and intend to put a small fuse in after the switch. There's also room at the back for adding more connections, for things like spindle control and an emergency stop button.



Being the first real thing I've made with my machine this taught me a lot. Firstly my machine is pretty damn accurate. 
The pieces just fit, I was expecting to have to sand things, but they actually fit great and I measured the pieces to be well within 0.2mm of what I intended, that's nowhere near what some CNC machines can achieve but with MDF it's more accuracy than I'll ever need.

Another thing to note is, always measure your material. I should have remembered this from when I designed stuff for laser cutting, but my 3mm MDF turned out to be 3.2mm, so my box joints aren't quite flush.

A lot of time designing this was spent on the engraving. The majority of fonts these days are solid blocks, you can turn them into outlines with a vector program, but the best results are achieved from single line fonts. You can see that the axis labels I engraved on the back of the box are a bit chunky, I didn't like that so I spent a while manually creating single line letters for my title font.



This was tedious but I'm happy with how the final thing came out.


The M6 for short

I'd like to make the lettering black so it pops more, but I can't think of a good way to do this, hand painting would be tricky, and detract from the nice clean finish.
The easiest solution is to mill all the way through a material and place black behind it.

I also installed a hold down table. Essentially this just involved sinking a bunch of t-nuts into the back of my board in a grid. I now have a grid of points where I can bolt things down to the table.





Above you can see me marking out holes, and a couple of nuts ready to insert.
The grid is now finished, I'll snap a proper picture next time I'm using it.

I've actually found that for most materials  double sided tape is a better solution, most of the time the clamping bolts just get in the way.


I've been happy with this set up for the past few weeks, I've had a go at milling a phone dock, pcbs, and at the moment I'm milling maps out of cork. :D

One thing I haven't really tried is milling plastic, I've got some chunks of acrylic on the way so that's next on my to do list.


*Vectorworks is my CAD program of choice, mainly because it's what I used during my architecture degree. However it seems that I'm in the minority using this program. Most people use AutoCad or SketchUp, or for simple 2D work, Inkscape.
Supposedly AutoCad was designed by engineers and Vectorworks by architects.
I've got a copy of Illustrator, but most of the time I get frustrated with the alien pen tool, give up and switch back to Vectorworks.