Clocky is an alarm clock with a difference. When Clocky's alarm goes off, if you don't make Clocky happy, Clocky gets angry and runs away screaming. To shut Clocky up, you have to hunt it down and silence it.
After looking at Clocky I thought that it would probably be fairly simple to use Clocky's frame and parts for a small robot.
This Instructable is about finding if Clocky is any good for this purpose.

Step 1:

To disassemble Clocky you must first remove the battery hatch and batteries, easy enough.

Step 2:

When I looked at Clocky's screws I realised they are triangular socket security screws and are set too deep for a modular bit from my screwdriver set. I then used an old trick where you take a flathead screwdriver and wedge it between two of the corners of the triangle socket of the screw. This worked a treat however as soon as I cracked open Clocky, its wheels fell off. This wasn't an issue, just how Clocky is designed.

Step 3:

I set the wheels aside and had a look at Clocky's guts.

Step 4:

This is a motor unit, self-contained with a gearbox.

Step 5:

This is the battery container. It removes intact and can be left in Clocky or used for another project later on.

Step 6:

This is Clocky's speaker and weight to help Clocky stay upright.

Step 7:

This is Clocky's top button assembly. It looks to be removable with two small Phillips-head screws holding it in.

Step 8:

This is the main PCB. It is exactly how I hoped it would be. The row of eight transistors appear to be the main drive transistors that run the motors. It looks to be a full H-bridge but I will check that out a little later.

Step 9: A Little Theory

After dissecting a bunch of toys and gadgets I learned that many of them are controlled the same way, with similar electronic layouts. Usually when I see a PCB laid out like this it means I can, by trial and error, ascertain which transistors do what and then control it with one of my favourite devices, an Arduino! The Arduino is an excellent diagnostic tool for devices like this as it can give a logic signal out in a controlled manner. For example, I load the Fade sketch, connect the ground to the negative battery terminal, put some batteries in the device and power up the Arduino. By taking the lead from the Arduino's output, usually D9 for Fade, and putting it on the right point in the circuit, I can check which transistors control which motor and which direction. Take Note! Never put the output directly onto the transistor. All of the devices I have seen so far have a resistor before the transistor to reduce the power to a level where it won't kill the transistor.

I have used this technique for aTyco  N-Sect, several small remote control helicopters, a remote control drinks cooler and a line-following robot from Jaycar, which I recommend highly as a good, cheap, tracked robot base.

Step 10:

These are the resistors I am referring to, just next to the small transistors, near the bigger transistors. Trace the circuit to check you are using the right end of the resistor or it will be bypassed and you may kill the transistor anyway!

Step 11:

Doing so I discovered that this point is for one direction on one motor,

Step 12:

and this is the other direction for the same motor.

Step 13:

With a little more poking I found that the circuits appear to be the same on both sides, this being one point for the other motor, M1

Step 14:

and this being the other point for the same motor.

Step 15:

This means that I can use Clocky as a base for a robot by simply tapping into these points and programming the Arduino to drive Clocky with a differential drive system. My Arduino also seemed happy to run from Clocky's battery pack, using the VIN pin and ground, making it possible for a self-contained robot with minimal modification to Clocky, leaving the opportunity to revert it back to just a clock later if necessary..

I hope this Instructable has inspired you to open up a Clocky and experiment or another device of your own and tinker. 
<p>Maybe you can help me? We bought a clocky that I now realize was a knock-off. After a few months, the clocky no longer beeps when the alarm goes off, we just hear the whirring sound of the wheels turning around. Do you happen to know what might be broken and how we can fix it?</p>
Having been a while ago I don't remember Clocky's guts much at all. Hopefully you have a loose wire or the piezo has failed. Open it up and look for a gold disc about an inch across. See if the two wires to it are intact. If they are, find another piezo and replace it. If this doesn't work I am afraid I don't know what else I could be. Good luck!
<p>In Step 6 you can see the speaker. Hopefully you have a similar one. Check the wires to it as well. </p>
<p>You have said that when we open it up the wheels will fall off. Will it be possible to get them on again?</p>
This is great. Thank you for the detailed pictures and instructions. Good work!

About This Instructable




More by TooManyScooters:How to disassemble a Sunbeam MX6800 Retro Mixmaster. How to hack your Clocky. 
Add instructable to: