Building line following robots is fun and easy. Building a line-follower that is this tiny is a different story. The surprising thing for us is that despite how it looks, this robot whose name is Rizeh doesn’t use wheels to get around. [Naghi Sotoudeh] built the line-follower using two vibrating motors, with needles (not shown above) making three points of contact with the ground.
His website is a little sparse, but hit the downloads page to get a PDF file that serves as the build log. We also downloaded the 32 second demo video which is worth it. The magic-marker track that the bot is circumnavigating isn’t any bigger than the palm of your hand!
Onboard the diy PCB you’ll find two GP2S04 IR reflectance sensors which detect the black line on a white paper. The power-up sequence spends a few seconds calibrating these sensors. Speaking of power, [Naghi] went with a lithium polymer cell from a Bluetooth headset. At the heart of it all is an ATtiny45 which uses its hardware PWM capabilities to drive the two motors.
Of course line-followers rank up there with self-balancers as our favorite robot projects. But by far the ones we love the most are the speed-run maze solvers.
[Dustin Andrews] built this add-on board which works as a proximity sensor. He wanted a standalone sensor for his Arduino projects which would use a single pin as a trigger. This lets him alert the Arduino when an object approaches the sensor without the need for polling or extra code on the Arduino side of things.
As you can see, a single chip on the board takes care of all the work. That’s an ATtiny13, they’re inexpensive and sometimes you can even salvage them from consumer electronics like this color changing light bulb. The microcontroller monitors the phototransistor which is wrapped in electrical tape to isolate it from the IR LED emitters on either side. This setup creates a reflective sensor. When an object nears the board, the infrared light from the emitters reflects off of it and onto the phototransistor. And since the Arduino works as an AVR programmer you don’t need special hardware to program the device.
Want to monitor how much a wheel has turned in your project? Then you need a rotary encoder! Here’s a way to add rotary encoding without changing the mounting method of your wheels (translated). [Jorge] added it as a way to improve the functionality of this line-following robot. It uses a paper encoder wheel which is monitored by an optical sensor.
The paper wheel consists of alternating white and black pie pieces. You can make this with a felt-tipped marker, or use a tool like the one we featured a couple of years ago to print out a disc rendered to your own specifications. This is glued to the inside of the wheel and monitored by a CNY70 reflective sensor (the same one used in that electric keyboard retrofit).
The homemade board which holds the sensor can be seen mounted on top of each wheel’s motor. It requires three wires, voltage, ground, and data. The data line is connected to the output of the phototransistor in the CNY70 package so it can be used with a microcontroller interrupt for easy integration with the firmware driving the robot.
[Jorge] goes into some detail about how the added data helps to improve the speed performance seen in the clip after the break.
Continue reading “Easy rotary encoding for your projects”
So we saw this tip come in and thought–oh, another POV device. We watched the video (embedded after the break), took a sip of coffee, then almost sprayed the beverage all over the computer when we realized that this uses a diy sensor to synchronize the POV image.
[Ch00f] came up with the idea for the sensor after seeing a similar implementation on a commercial POV toy. Instead of using a proper accelerometer to sense the motion, the toy uses a plastic bead in a channel. When you move the body of the toy the bead rolls to one end or the other, covering or exposing a reflective sensor.
A similar sensor is used here. A drinking straw servers as the channel, with a paper-covered nylon screw as the bead. [Ch00f] cut a window in the bottom of the straw for his reflective sensor, then sealed each end with a wad of paper.
This method works, but not as well as he had hoped. It seems the refresh rate and timing of the particular sensor he’s using is rather poor. If it were replaced with one that is simply and IR LED and phototransistor (like the sensors from [Jack’s] last video) he thinks it would work a lot better.
Continue reading “POV bauble uses DIY accelerometer to sync the image”
[Sebastian Steppeler] has been hard at work on his optical sensors for an electric piano. When we looked in on the project back in October he was testing reflective sensors to increase responsiveness and MIDI data resolution for his electric keyboard. Since then he’s finalized the sensor circuits and produced enough boards to monitor all 88 keys on this full keyboard. You can see the string of PCBs just above the ivories, waiting to be installed. Not only are then in, but he also added sensors for the pedals.
Because the boards were installed by hand, there are some variances in the physical placement. This can have a rather dramatic effect on the readings from the reflective sensors so he has been working out a method of balancing the calibration. Part of this is already being taken care of by the C# interface that he wrote for a PC. Take a few minutes to check out all of his blog posts, then jump down after the break and hear how great it sounds.
Continue reading “UPDATE: Playing piano with optical sensors”