Piecax the Poltergeist. a Troublesome Spirit in a Box.
Intro: Piecax the Poltergeist. a Troublesome Spirit in a Box.
* { } * { } * { } * { }
Poltergeist : From the German for “noisy ghost”.
A metaphysical entity which announces its presence with rapping, banging and general mischief making.
It wasn’t easy, but I’ve got one shut up in this box. I call him Piecax. Sometimes he will lie quietly and make you think he’s gone, then startle you with frenzied knocking. Other times Piecax will have fun by echoing you. Find his favourite number and he might play you a spooky tune. Watch the video to see Piecax in action.
Thanks and credit go to JKestner whose Knock Block gave me the inspiration for this project.
STEP 1: The Box
I did this first so I wouldn’t be waiting for varnish to dry once I’d built the circuitry.
I started with a cheap softwood box from a craft shop. I clamped a rotary sander upside-down in a vice and rounded the corners and smoothed the sides, starting with a coarse sanding sheet and finishing off with fine. A final rub over with very fine paper and I had a smooth rounded box but a bit of a boring colour.
To bring out the grain I gave it two coats of walnut woodstain and then for the gloss, three coats of yacht varnish. The first coat was diluted with thinners to make it soak into the wood and give it more hardness and a good base for the other coats.
A quick raid on my sons' lego sets and I had a casket fit for a ghost.
STEP 2: The Electronics
* I'll re-write when I get a chance. *
STEP 3: The Mechanics
The various parts are stuck on with contact adhesive (that’s the type where you apply a thin coat to both surfaces, wait a few minutes, then it sticks hard immediately you put the parts together.) The sounder is glued to the lid so it picks up the vibrations directly as the top is tapped.
For the ‘knocker’ I used a small 3V DC motor with a piece of brass strip bent fixed to the shaft. I bent this to shape with a pair of pliers so it was a push-fit onto the shaft. Be careful as you push it on as the plastic back of the motor is likely to push out, so put a hard object on the end and push against that.
The motor came with a solar cell kit and had the plastic clip with it. Alternatively you could use a piece of split overflow pipe with one side sanded down, or use double-sided sticky foam to attach the motor to the box. Later on, I added solder to the end to give a good solid knock. A bit of trial and error is required to give the best weight.
STEP 4: Putting the Ghost in the Box.
With the box size I used, everything goes in pretty easily and neatly. You will need to adapt the layout if you use a different size or shape of box.
The battery is held in with double-sided sticky foam so it can be replaced. The circuit board in held in the same way, and has to go in before the motor if you're using a small box.
Gluing a small piece of brass strip to the lid where the knocker hits gives a sharper knock and helps the knocker to return quickly. The final picture shows a piece of foam glued in to dampen the 'clunk' when the arm returns.
Click HERE for information about the standard training video for containment of supernatural beings.
STEP 5: The PicAxe and Code
The code is here as a PicAxe .BAS file and as a Word document. There are loads of comments throughout to explain what's going on in the program. It uses 252 memory bytes of the 256 available.
20 knocks will give a 30 second sleep and then a series of 50 rapid random knocks; Long enough to put the box down in front of someone and tell them the spooky story of what it contains before it bursts into life.
13 knocks will play a tune which strikes fear and horror into the hearts of many - the 'Adams Family' theme tune.
I've used a PicAxe 08M microcontroller which comes as a blank chip and needs to be programmed. To do this, you will need a programming lead and the free programming editor software. Both the PicAxe chip and the lead are available from Tech Supplies in the UK or see HERE for other countries.
Once you have the lead, you only need a PicAxe, two resistors and whatever sensors and output devices you choose to have a full PicAxe development kit which can program any of the PicAxe range, so you can design your own projects.
The PicAxe was initially developed for the educational market in UK schools but is being widely used by hobbyists. The PicAxe is based on various PICs but with bootstrap code to interpret the downloaded programs and handle the programming side. They come in all flavours from this suprisingly powerful 8 pin package up to full blown 40 pin.
Look at the manuals and datasheets on the PicAxe site to see the full capabilities. Programming of the chip is via a serial link and done in-circuit. It takes about 20 seconds and you don't even have to unplug the lead to run the program.
I've been in electronics since the early eighties and I've never found a programming environment where the coding / simulation / proving cycle is so simple. Documentation and support from the forum is excellent and there are many robotics enthusiasts using the chips. Control for servos, steppers, ADCs etc are built in to the BASIC-like programming language as well as a host of other goodies. You can also simulate the circuit before you build, and do real-time debugging on a running controller. Look out for more PicAxe based projects from me.
104 Comments
faroking 1 year ago
pbecker83 13 years ago
Video
http://www.youtube.com/watch?v=u81YIyu9GEE
Pictures
http://www.flickr.com/photos/55301458@N03/
EdmilsonL 7 years ago
Hello please send me source code for Terminal" The Haunted Mummy send for my email edmilson@lseletro.com.br. thanks
AndyGadget 13 years ago
A like the solid thump and really good vibration you've got with yours.
Are you using a motor or a solenoid for the knocker?
(And ta for the mention at the end #;¬)
beme2013 10 years ago
madbutler 12 years ago
Thanks again for this great project
Madbutler
ps Are you working on any other 08m2 inventions using this great new chip with touch capabilities and a bigger memory?
Admiral Aaron Ravensdale 12 years ago
Thanks for your instruction AndyGadget...
I do some changes in the speaker / microphone section and add a flash signal durin knock!
Cheers
Admiral Aaron Ravensdale
jessyratfink 12 years ago
AndyGadget 12 years ago
Thanks Jessy. It needs updating as the parts list appears to have disappeared at some point and there's a problem when using the latest version of the microcontroller, but I'm on it.
Admiral Aaron Ravensdale 12 years ago
I hope i found until next week some time to post it here. But you can see it still on my website http://www.steampunk-design.de/useite.php?Klopfgeist pls change into english language!
cheers
madbutler 12 years ago
Admiral Aaron Ravensdale 12 years ago
Thanks for your instruction AndyGadget...
botronics 12 years ago
madbutler 12 years ago
AndyGadget 12 years ago
It shouldn't be a problem - I thought the PE accepted the old pin syntax for the 08m2 as well as the new and the old code should have worked as well as your version. I'm off to work now but will swap mine for a 08m2 later and investigate.
It's great that you're using this as a school trainer. That's what the PicAxe was primarily for.
madbutler 12 years ago
AndyGadget 12 years ago
Thanks for the extra information.
What you describe is very strange. I'll definitely look into it.
I didn't get a chance to try this tonight - Should do tomorrow though.
AndyGadget 12 years ago
I spent some time on this tonight and there is something strangely different with the 08m2. I didn't get the transistor heating you were seeing, but I couldn't get it to respond to the piezo knocks. If I manually took the input high it would only produce one knock no matter how many times I triggered it. I'll continue at the weekend. (Maybe it's haunted #;¬)
madbutler 12 years ago
thanks again
AndyGadget 12 years ago
The 08m2 has more memory for peek and poke, but the addresses I used in the original are part of that, so not the problem. The weird thing is that it's not recording the knocks. I can see the input on my 'scope (as you're doing with the LED) and the levels are there. I'll get it sorted at the weekend - It's one of those annoying things which should work . . . but isn't.