Update: Tiny Line-follower And More

This tiny line-following robot is quite impressive. It’s [Ondrej Stanek’s] second take on the design, which he calls PocketBot 2. Just like the earlier version, this robot is small enough to fit in a matchbox, but it’s received several upgrades in this iteration.

The coin cells that ran the previous version have been replaced by a rechargeable Lithium Ion cell. The ATmega8 which controlled the first robot has been swapped out for an ATmega128 running at 32 MHz. You won’t find an IR receiver on this one either, it’s been traded for a Bluetooth module which adds a quantum leap in functionality. For instance, the graph in the upper left of this photograph shows the reflective sensor data readings used to follow the line.

There’s all kinds of great engineering in this design, which is shown off in the video after the break. One of our favorite parts is that the axles are attracted to the center of the robot by one rare-earth magnet. This keeps the rubber tires pressed against the motor spindles rather than use a gearing system.

Continue reading “Update: Tiny Line-follower And More”

External RAM For An ATmega128

Those who are familiar with Atmel’s line of 8-bit AVR microcontrollers should already know that some of them have support for external RAM. But have you ever actually used this feature? We haven’t. Now you can learn how it’s done by reading through this guide. It touches on all of the hardware, but doesn’t dwell on it. Instead, you’ll get the background you need on how to write to, read from, and test an external module like the one sticking up in the image above. The test routine shows how to make sure everything’s working correctly with your memory mapping before you begin developing firmware around this increased capacity.

[Thanks Spman]

Add Supercaps To Your Exercise Routine

Many exercise machines generate electricity as you pedal or climb in order to run the on-board electronics. Unfortunately if you stop or even slow down too much the juice will die and your exercise program will reset. Wanting to improve on this gotcha, [Mike] cracked open his exercise bike and added some super capacitors.

On the circuit board he found an ATmega128 was in charge of the user interface. He probed the board a little bit and couldn’t find how it was connected to the power regulators. After some additional snooping he found it has its own SOIC regulator separate from the ones that run the display and peripherals. He takes us through the calculations he made before choosing his parts. What he ended up with is a set of three supercaps in series that add about two minutes of juice before the levels drop and the chip resets. The design of the board helped a lot as the high-load electronics (like the LCD screen) are on a separate power bus than the processor.

Projectile Speed Sensor

[Mike] built a sensor rig to measure projectile speed. The setup uses a tunnel with two sensors in it. Each consists of a laser diode on one side focused on a photodiode in the other. The two are monitored by an op amp and measured by an ATmega128 microcontroller. When the beams are broken the elapsed time between the two events is measured in order to calculate speed. There is a setting to adjust the calibration for a range of speeds, which came in quite handy as [Mike] initially tested the device with rubber bands before moving on to a pellet gun and then a rifle.

It seems like he’s tempting fate by shooting a target just a few inches below his exposed circuitry but his marksmanship prevailed. We’ve seen bullet speed detectors in the past, used just for the delight of seeing how fast the projectile is moving, and also to capture an impact at just the right instant.

CNC Hot Wire Cutter From Scanners

hot-wire-cutter-from-scanners

[Raul] built a CNC hot wire cutter that he uses for cutting shapes out of foam. His device uses two flat bed scanners to provide two planes of motion. One scanner arm has the foam mounted on it and provides the Y-axis movement. The other scanner has the hot wire mounted on it and provides the X-axis movement. The cutting wire is mounted on a flexed bow made from heavy gauge coat hanger wire.

He tapped into the logic board of one scanner to gain access to the motor movements. The other is connected through a couple of H-bridges. Both are controlled by an Atmel AVR ATmega128 which in turn takes its commands from a connection with a computer printer port. A python program uses vector graphic files in SVG format and traces the outline for cutting.

We’ve got a video of this in action after the break. At our request, [Raul] took some time to post a set of pictures and make comments on them. Thanks for the hard work and great job! Continue reading “CNC Hot Wire Cutter From Scanners”