TV-B-Gone Can Double As A Camera Remote Control

[Christopher] found a way to get a bit more mileage out of his TV-B-Gone kit. The little device is intended to turn off every television in range with the push of a button. But at its core it’s really just a microcontroller connected to some infrared LEDs. Instead of sending codes to shut of televisions, you can rewrite the firmware to send a camera remote shutter release code.

It doesn’t take too much to pull this off. You need a way to flash new firmware to the device, and you need to know the new code timing that you want to send. Since the firmware is open source it’s easy enough to make code changes, and there are several easy methods of flashing AVR devices (like the tiny85 used here), including using an Arduino as an ISP.

But [Christopher] did more than just add the Nikon code for his camera. He realized that there’s a jumper to select between European or American television codes. Since he wasn’t using the foreign option, he replace that pin header with a switch that selects between normal TV-B-Gone operation and camera shutter release modes. Nice.

AVR Chiptune Project Turns This Simple Code Into Music

[Mark] had seen a few examples of algorithmic music generation that takes some simple code and produces complex-sounding results. Apparently it’s possible to pipe the output of code like this directly to audio devices on a Linux box, but [Mark] decided to go a different direction. His project lets you play simple algorithms as audio using AVR microcontrollers.

Now the code work for this is very simple, but he hardware implementation is where things get interesting. Ostensibly, [Mark] didn’t have the components available to build a filter to use PWM as an audio signal. Being that he’s a ham operator, he grabbed some radio equipment he had on hand and whipped up an alternative. He’s feeding the PWM from an Arduino into the voltage controlled oscillator on a board meant for high-altitude balloon telemetry. The signal broadcast by this board is then picked up by his radio receiver, and played on some speakers.

Rube-Goldberg contraptions aside, the effect is pretty interesting, as you can hear in the latter half of the video clip which we’ve embedded after the jump.

Continue reading “AVR Chiptune Project Turns This Simple Code Into Music”

Bread Head Makes AVR Programming A Snap

bread_head_quick_avr_programming_header

[Quinn] over at Blondihacks has been working with AVR microcontrollers a lot recently, and wanted a quick way to program the ATtiny13a (her current AVR of choice) while the chip is still seated in a breadboard.

To speed up code revision and testing, she built a small programming header that she calls the Bread Head. The device is wonderfully simplistic, consisting of little more than snappable header pins and a bit of upside-down protoboard.

She soldered six headers to the top (formerly the bottom) side of the board, while a set of eight oversized headers were soldered to the opposite side of the programmer. Small bits of wire were soldered in to connect all of the appropriate pins together before [Quinn] slipped the header snugly over the top of the ATtiny and gave it a quick test. Everything worked perfectly, so she slathered in in epoxy for sturdiness and called it a day.

She says that the programmer works so well that she’s likely to make a similar header for other common AVRs too.

ATtiny Hacks: BEES! An Electronic Scale To See Who Brings In More Honey.

[MakingThingsWork] wanted an accurate way to keep track of the weight of his beehive, so he decided to build himself a data logging electronic scale. First he ripped the strain gauges from an old electronic scale which he then fitted to his home made beehive base. He then went about designing and building the control board which is based about the Attiny 85 (if you hadn’t guessed by the banner). An instrumentation amplifier was used to amplify the signal from the strain gauge, which is then read by the ADC on the Attiny. It looks like he had some trouble getting consistent results from the scale, so to eliminate the error caused by temperature variations he set up a fixed voltage divider for reference. With this setup the scale can produce results at +/- 0.5lb accuracy, sounds just fine for a system that cost less than $50. The V-usb project software has been used to connect the scale to his PC which he uses to collect and graph the data. All in all a very neat project and by the looks of it, some very productive bees.

Virtual Machine For Microcontrollers Lets You Run Python On AVR Chips

[Clifford Wolf] wrote in to let us know about a project he recently completed called EmbedVM. It’s a virtual machine for AVR microcontrollers. The package has a relatively small overhead, taking up about 3kB of program memory. The VM can execute 74,000 instructions per second, and runs asynchronously from the microcontroller. As [Clifford] demonstrates in the videos after the break, this can be handy for preloading commands to prevent slowdown during heavy VM processor loads.

The snippet in the image above is an example program written in the C-like VM code which will play some [Rick Astley] on a speaker. This code can be run from RAM, EEPROM, or even external storage like an SD card. Recently there was a supplemental compiler project that even takes Python code and compiles it into VM byte-code. What a nice abstraction tool for making inexpensive microcontroller-based designs easily programmable for those that have a bit of Python experience.

If you don’t recognize the name, [Clifford Wolf] is also the author of OpenSCAD, a tool that is quite popular with 3D printing.

Continue reading “Virtual Machine For Microcontrollers Lets You Run Python On AVR Chips”

Dev Board From An AVR Programmer

[jethomson] sent in a build he’s been working on that turns an inexpensive AVR programmer into a development board. The build is based on the very affordable USBasp programmer that’s based on an ATmega8. With hundreds of these boards available from China for less than a Hamilton, we’re wondering how soon it will be before we see these boards end up in other projects.

After fiddling with the AVR fuse settings, [jethomson] managed to burn some code to the microcontroller. After that, all that was required to upload software to the programmer is a bit of solder, a push button, and an external programmer. [jethomson] also managed to make this little AVR programmer compatible with the Arduino environment with a small addition to the boards.txt file.

[jethomson] included a few bits of software as an example – he ported the haunted USB cable and adapted the USB business card to print out, “All work and no play makes Jack a dull boy.” Nice work, and we can’t wait to see it in future projects.

Kinect-controlled Delta Robot Has A Magnetic Personality

kinect_controlled_delta_robot

[Malte] is a loyal Hackaday reader and neurobiology PhD candidate with a keen interest in hobby robotics – definitely our kind of guy! He wrote in to share a project he has been working on in his spare time, a Kinect-controlled delta robot (Google translation).

Deltares, as it is called, is pretty straightforward as far as delta robots are concerned. It uses three servos to actuate the arms, which are controlled by an AVR micro running BASCOM. The AVR gets its coordinate data from his computer via a serial connection after it has been captured by the Kinect. [Malte] opted to use Microsoft’s official SDK for the project, processing the Kinect skeletal data using a small C# application he wrote.

The end result is pretty neat as you can see in the pair of videos below. In the first video, [Malte] uses Deltares as a plotter, drawing a crude face on a piece of paper with a marker. In the second, he commands Deltares with his right hand, using his left to activate the magnetic solenoid to pick up the steel spheres.

It looks pretty cool to us, and we’d love to see what sorts of things he puts together if he ever ends up making robotics his career rather than a hobby.

Continue reading “Kinect-controlled Delta Robot Has A Magnetic Personality”