1 - Beginnings
3 - Hello World
4 - More On GPIO
5 - Interrupts
7 - Timers
10 - Buttons and Bouncing
Would you like to be notified by email when Tim Wescott publishes a new blog?
Part 1 of this article was really more of an extended (and cynical) product review. In this part of the article, I actually take things apart (sometimes a bit more suddenly than I meant to) and show you some innards.First the globe. I knew there was a magnet in there someplace, because it's obviously plastic and it also attracts metal. I had intended to gently part the globe at the glue bond along the equator. I started by trying to gently flex the thing on my work bench, hoping that the glue was significantly more brittle than the surrounding plastic. I was wrong.
The picture shows the remains of the globe. In the lower right of the picture can be seen the circular black plastic magnet holder, and the magnet itself. The magnet was inside the holder, and the holder was attached to the "north pole" of the globe with a plastic rivet. The magnet is a rare-earth magnet, and is the biggest one I've ever seen in a piece of consumer equipment. It's 30mm diameter by 12mm thick. The only bigger ones that I've seen have been pole pieces for motors in aerospace applications, although I'm sure there are some electric motors out there that can sport large magnets, too.
The big magnet is a large part of why this relatively cheap toy can levitate a globe a good half an inch below the head: the magnet starts pulling into the head from about an inch away, and without its globe, plastic holder and rivet, the thing hangs onto the head piece to a scary degree.The picture below shows the detail of the magnet and mount, and the magnet fitting into the mount.
The arrangement of the power cord is one I haven't seen before. Instead of putting the cord on the wall-wart, the cord is on the base and that plugs into the wall wart. The wall wart is rated for 24V at 5VA. It doesn't say, but the circuit design implies that it is an AC adapter.
With all the pieces of globe removed, I took the base apart. The picture shows the copper side of the circuit board, the transistor in its heat sink, and the wires going up into the arm to the head. The circuit board has four holes and there are four standoffs in the base, but there are only three screws -- ain't top-notch workmanship great?
This picture shows the top of the circuit board. The upper left corner has the four diodes for the power supply. I'm assuming that U2 is a 5V or 3.3V regulator. Given the scarcity of resistors and capacitors on the board, that 16-pin DIP is a microprocessor, not a quad op-amp. Clearly someone was concerned that a potential competitor might figure out which 16-pin microprocessor was used here -- although the program to be found inside would be the more critical intellectual property, in my opinion.
The fact that this thing is microprocessor driven makes the performance of the control loop inexcusable, in my humble opinion. Yes, it's just an executive toy, but it could be a really good working executive toy with just a bit more effort!
The large coil that you see in the lower left of the picture is a coil for turning the globe. If you refer back to the picture of the shards-o-globe you'll see a magnet embedded in one half -- that magnet, plus this coil, are there to make the globe spin. It didn't really work right and I don't much care anyway, so I'm mostly ignoring that function.This picture shows the arm mounting from below. The arm is held into the top of the base with a nut, and there are flats on the arm (next picture) that keep it from rotating. The arm is hollow, and there are five wires leading out of it to the circuit board.
This picture shows the arm out of the base. You can see the flats that hold it in alignment. I think this is clever design: for a very little bit of money spent in manufacturing, they've made sure that the arm gets put together right and always stays in place. I may be making snarky comments about this gizmo, but in some ways the design itself is well thought out.
Here's a picture of the head, with its cover removed. The cool high tech magnetic core is -- a bolt! A crummy bolt. That black thing on top of the bolt is, I'm sure, a hall sensor. I'm not sure how the hall sensor reads the position of the magnet when its readings are confounded by the current flowing through the electromagnet, but I plan on gathering data for part 3 of this series.
Here's a view of the head with the hall sensor pried off the bolt. Someone actually took the trouble to run the bolt through a milling machine, or the paid someone to do a pretty good job with a file.It may not be apparent from the pictures, but the housing for the head piece is stamped out of steel and chromed. I'm sure that this helps concentrate the magnetic lines of force from the head and thus gives a longer 'hang' distance.
And finally, here's a shot of the electromagnet completely disassembled. While the top part of the head is plastic with flashed-on chrome, inside is a plain flat stee part, threaded for the bolt and keyed to the head stamping with dimples that fit into matching holes in the stamping. Here again, I'm sure that the reason this is made of steel is to provide a path for the magnetic flux.
So with the exception of finding a bolt (fer cryin' out loud) as the central part of the magnetic circuit, I haven't found any surprises at this point, although there's a lot of nifty detail.
Careful inspection of the placement of the "ventilation" holes in both the base and the head will reveal that whoever designed this thing believed that if you ventilate the bottom of a hot part then you're all set -- even if you haven't done anything about the top. The directions warn about heat, but if they'd really wanted to get rid of the heat there should be some mechanism for venting air out of the top of the base and head.
I was somewhat surprised at how fine the wire is in the head. This is interesting. I'm not sure what the designer was thinking -- the wire is fine enough to impact the difficulty and expense of winding the head, yet the whole thing is powered off of a 24VAC wall-wart. Had they designed the system to operate off of 12 volts they could have doubled the wire area and halved its length, making it less likely to break while winding, and requiring fewer turns to wind.
In part 1 I mentioned that the electromagnet is unidirectional. It always acts to attract the magnet, which means that the magnet always hangs below the unpowered equalibrium point. This is both borne out and explained by the single power transistor in the circuit -- by designing the electromagnet to only attract, the manufacturer can shave some pennies off of the price of the toy, and make a bit more profit, or sell more units. The alternative would be an H-bridge, which would require at least four active devices and a great deal more attention to circuit detail; it is not surprising that the manufacturer chose as they did.
After I broke open the globe, and even before I started disassembling my toy to see how it ticks, I found the temptation to play with that magnet irresistable. In fact, this led to me getting this whole article out a bit earlier than I intended to, because I'm having so much fun!Just about anything that is roughly the weight of the globe, and that fits under the arm, can be levitated. Spools of wire, felt pens, blocks of wood -- you name it. A troll doll would be perfect, or maybe the right size of Smurf, or a plastic dinosaur. Here's a shot of various things I had lying around my bench, happily levitating.
You can even stick the magnet inside of something ferrous, if the walls are thin enough.
You could almost stop here, and have fun with this thing. Levitating globes are old hat these days, but how many people do you know who have a levitating tea tin in their office? (Please don't ask me why I find a levitating tea tin to be compelling -- it just is, and I don't think I want to know why).
One note of caution if you should start playing with this toy in this manner: the magnet is strong enough that small children should not play with it without supervision. This particular magnet is not quite strong enough to pinch adult fingers, but I have gotten myself trapped between a larger version of it and a hunk of steel, and the experience was painful. I'd let kids play with it, but only if I were standing by keeping an eye on things. You know the kids around you: use your own judgement.
In part 3 I'm going to take the base off of this thing again, and see if I can get some measurements of the attractive force of the magnet and the voltage from the hall sensor as the electromagnet current and the proximity to the magnet are varied. I'll also find out if the transistor is operated in its linear region or if it is pulsed. That information should be enough that I can then launch on an effort to build my own controller for this and experiment with different control rules.
Add a Comment