Posts with «atmega8» label

RF Remote Made Easy

The 433 MHz spectrum is a little bit of an oddball. It’s one of the few areas of the radio spectrum which is nearly universally unlicensed, meaning as long as devices using it adhere to the power restrictions and other guidelines about best practices, it’s essentially an open playground. IoT devices operate here, as well as security systems and, of course, remote controls. And, using a few off-the-shelf parts [hesam.moshiri] shows us how to take advantage of this piece of spectrum by designing and building a programmable and versatile 4-channel 433 MHz remote control.

Built around an ATmega8 microcontroller, making it easy to work with Arduino sketches, and with a 2×8 character LCD for ease-of-use when not connected to a computer, the wireless switching device can store up to 80 remote control codes in its EEPROM memory. This was one of the harder parts for [hesam] to sort out, but using structures to store the data for the codes eventually solved the problems. A simple GUI makes using it with whatever remote happens to be on hand fairly straightforward, including the ability to record codes from existing remotes on the fly and also to associate those codes with specific actions.

Schematics and a bill of materials are available on the project’s page, making this fairly accessible to those looking to add some wireless connectivity to a project, home automation system, or IoT device. It’s mainly set up as a switching device, but with some modifications could be put to work doing more complex tasks. The 433 MHz spectrum is an exciting place to be, too, and things like setting up entire security systems using it are not too far removed from a switching device like this.

Walkman-esque Human Interface Device

Cheap keyboards never come with extra buttons, and for [Pengu MC] this was simply unacceptable. Rather than go out and buy a nice keyboard, a microcontroller was found in the parts drawer and put to work building this USB multimedia button human interface device that has the added bonus of looking like an old-school Walkman.

The functions that [Pengu MC] wants don’t require their own drivers. All of the buttons on this device are part of the USB standard for keyboards: reverse, forward, play/pause, and volume. This simplifies the software side quite a bit, but [Pengu MC] still wrote his own HID descriptors, tied all of the buttons to the microcontroller, and put it in a custom-printed enclosure.

If you’re looking to build your own similar device, the Arduino Leonardo, Micro, or Due have this functionality built in, since the USB controller is integrated on the chip with everything else. Some of the older Arduinos can be programmed to do the same thing as well! And, with any of these projects, you can emulate any keypress that is available, not just the multimedia buttons.


Filed under: Arduino Hacks

Controlling your webcam with an old Guitar Hero pedal

Hackaday reader [Tom Price] often uses Skype to communicate with family near and far, but he was getting tired of adjusting his webcam each time his kids moved out of frame. While the solution he came up with isn’t fully automated, it is hands-free, which is good enough for his purposes.

[Tom] was looking around for an electronic foot pedal of some sort when he came across a wireless 3rd party Guitar Hero peripheral that happened to fit the bill. Using an Arduino library created by [Bill Porter], he was quickly able to get the toy to communicate with an Arduino-flashed Atmega8, but things kind of fell flat when it came time to relay signals back to his computer. Using another Atmega8 along with the PS2X library, he was able to emulate the Guitar Hero controller that his foot pedal was looking for.

With the pedal portion of his project wrapped up, he focused on his webcam. [Tom] mounted the camera on a small servo, which he then wired up to the receiving end of his foot pedal rig. As you can see in the video below, he can now pan his camera across the room with a tap of his foot, rather than leaning in and manually adjusting it.


Filed under: arduino hacks, news, playstation hacks