Primer Tutorials For Arduino IR Remote Cloning And Keyboard Simulation

We’ve featured loads of IR Arduino projects and they are all exciting and unique. The projects spring from a specific need or problem where a custom infrared remote control is the solution. [Rick’s] double feature we’re sharing in this article is no exception, but what is interesting and different about [Rick’s] projects is his careful and deliberate tutorial delivery on how to copy infrared remote codes, store the codes with a flavor of Arduino and then either transmit or receive the codes to control devices.

In the case of his space heater an Arduino was used to record and later retransmit the “power on” IR code to the heater before he awakes on a cold morning. This way his room is toasty warm before he has to climb out from under the covers, which has the added benefit of saving the cost of running the heater all night. Brilliant idea if you don’t have a programmable heating system. Maybe he will add a temperature sensor someday so it doesn’t have to run on strictly time.

A more complicated problem was controlling DVD playback software on his computer remotely. [Rick] says he sits at a distance when watching DVDs on his computer but his computer doesn’t have a remote control like a normal TV. Arduino to the rescue again! But this time he pulls out a Teensyduino because of its added feature of being able to emulate a keyboard and of course the computer DVD playback software accepts keyboard commands. Once again he used the “IRremote.h” library to record certain button codes from an old remote control before adding the retrieved codes to a Teensyduino setup and programmed to receive and decode the remote’s IR signals. The Teensyduino then maps the IR codes to known keyboard shortcuts and transmits the simulated keyboard shortcut commands to the computer via its USB cable where the DVD playback software recognizes the key commands.

As always [Rick] shares all his libraries and sketches on his blog so follow the above links to download the files. You will not miss a single step if you follow his excellent videos below. Plus, here are some other ways and other tools for using an IR remote with your Arduino and cloning an infrared remote.

Continue reading “Primer Tutorials For Arduino IR Remote Cloning And Keyboard Simulation”

Raspis And Arduinos For FM Broadcast Streaming

radio

The biggest Internet provider in Portugal needed a system to turn FM broadcast stations in Angola, Cabo Verde, and Mozambique into a web stream. Like every good project, the people in charge of the engineering turned to Hackaday staples – Raspberry Pis, Arduinos, and TP-Link routers, all stuffed into an awesome modular rackmount cabinet

Each module in this gigantic rackmount system includes an Arduino, a Raspberry Pi, a Silicon Labs Si4705 FM receiver chip, and a TI USB audio capture chip that allows the Pi to turn the audio out from the radio receiver into an audio stream. All the Pis are connected to a 24 port Ethernet switch and to a separate master Raspi that converts data received from each module into an icecast stream.

The engineering behind each module is pretty impressive – they’re all hot swappable, have remote shutdown capability, and have voltage divider on the backplane to detect where in the rack it’s placed. It’s a very cool piece of engineering and a very cool example of using off-the-shelf hardware to do something that could be much, much harder.

Hacking A Cheap Toy Quadcopter To Work With Arduino

Building your own quadcopter is an expensive and delicate ordeal. Only after you navigate a slew of different project builds do you feel confident enough to start buying parts, and the investment may not be worth your effort if your goal is to jump right into some hacking. Fortunately, [Dzl] has a shortcut for us; he reverse engineered the communication protocol for a cheap toy quadcopter to work with an Arduino.

The cheap toy in question is this one from Hobbyking, which you can see flying around in their product demonstration video. [Dzl] cracked open the accompanying control handset to discover which transceiver it used, then found the relevant datasheet and worked out all the pin configuration involved in the SPI communication. Flying data is transmitted as 8 byte packets sent every 20 mS, controlling the throttle, yaw, pitch and roll.

[Dzl] took the build a step further, writing an Arduino library (direct Dropbox download link) that should catch you up to speed and allow you to skip straight to the fun part: hacking and experimenting! See his quick video after the break, then convince yourself you need a quadcopter by watching this one save its creator, [Paul], the trouble of walking his son to the bus stop.

Continue reading “Hacking A Cheap Toy Quadcopter To Work With Arduino”

A POV Spinner Display With Arduino

pov-display

[Martin2250] has been working on a spinning disc style POV display. He’s posted his progress up on reddit. This hack is a great example of using what you have at your disposal. [Martin2250] is using an IR LED and photodiode to determine the rotational speed of the disc. He tried using the Arduino micros() function to delay between the photodiode pulse and turning on his LEDs. As [Martin2250] found out, micros() isn’t quite accurate enough for this purpose.  He’s since switched over to using the AVR’s native timers, and is getting much better results.

The disc in this build is actually a CD. [Martin2250] sanded away the label, then masked out his digits. He “painted” the CD with a black marker. Peeling off the tape revealed his stylized digits. Cardboard, hot glue, and visible LEDs were used to create four light boxes for the digits. The disc can display any four digits at once – perfect for a POV clock. We love the use of on-hand materials in this hack – bits of hard and balsa wood, liberal use of hot glue, and of course cardboard. The only thing missing in our eyes is some duct tape!

Classic 80’s Stereo Receiver Enjoys A Second Life As RadioduinoWRT

radio2[Raffael] had an old Broken Yamaha natural sound receiver lying around. Rather than throw it out, he built himself a slick web radio. He calls it RadioduinoWRT. [Raffael] started by removing all the internals – though he kept the front panel controls.  He then added an Arduino Mega to handle the front panel controls, including a 16×2 character LCD module. The Arduino also takes commands via IR remote. An enc28j60 Ethernet module allows the Arduino to communicate with a the brains of the operation, a TL-WR703N mini router.

A micro USB hub expands the single USB port on the WR703, allowing both a USB sound card and a 4 gig USB stick to be mounted. We’d like to add that the TL-WR703 is a must in this application – the amazon link [Rafael] provides brings up the TL-WR702 as a top link. Only the TL-WR703 has a USB host connection.

The real magic is in [Raffael’s] software setup. The WR703 is running OpenWRT.  He added modules for the USB sound card, as well as expanding the file system onto the USB stick. Once that was complete [Raffael] added Music Player Daemon (MPD) and MPC, a console app to drive MPD. Lighttpd, a light web server provides an interface for the Arduino as well as a web front end to the entire radio.All this allows [Raffael] to control his radio in several ways. He can log in via any web browser on his network. He can use the front panel controls. He can use an IR remote. Since he is running MPD, any client (there are literally hundreds out there) will also drive the radio.

While a low-end USB sound card in a home stereo application does make our inner audiophile cringe a bit, the quality does seem to be pretty good. [Rafael’s] design would make it simple to swap out a higher quality USB sound card if the need arises.

Continue reading “Classic 80’s Stereo Receiver Enjoys A Second Life As RadioduinoWRT”

Furbies Sing Queen At Fresher’s Faire

kent-furby

The University of Kent has their own hacker space, called  [Maker Society]. Every year the school holds an orientation for new students called the Fresher’s Faire. The [Maker Society] display at this year’s Fresher’s Faire included a group of partially clothed Furbies singing the classic Bohemian Rhapsody by Queen. This isn’t our first run in with Bohemian Rhapsody and hacked hardware.

The [Maker Society] started by doing some internet research and reverse engineering a first generation Furby.  The Furby itself is a marvel of cost reduction. All the doll’s functions run from a single motor and a cam system. A limit switch tells the on-board microcontroller when the cam is at the zero position. An optical encoder keeps track of the cam as it moves. The [Society] replaced Furby’s internal microcontroller with an Atmel ATMega328. This allowed them to use the Arduino programming environment.

Many classic Animatronic systems use an audio recording for motion. Typically a stereo recorder would perform double duty. The first track would contain the audio for the animation. A second track would contain audio tones corresponding to movement of each of the degrees of freedom of the doll being animated. Because the two tracks were on the same strip of magnetic tape, the audio and movement would always be in sync. Multitrack tape record and playback systems added even more flexibility to this type of system.

Continue reading “Furbies Sing Queen At Fresher’s Faire”

Arduino Keypad Door Automation

arduino door pad

[Andrea] just sent us this great student hack he made for his room. He’s constructed an Arduino keypad door lock — without using any proper fastening hardware!

The entire build is made out of scrap parts he had lying around: some DVD’s, a bit of wood, an allen key, a motor and belt from a broken printer, an old hard drive enclosure, and a few power supplies. As you can see the entire setup is held up rather artistically using good old duct tape.

The system auto-locks after 5 seconds, and just in case, [Andrea] has hard-coded in a few safety codes into the firmware to allow him to forcefully open the door — you know, if it malfunctions or something. Not overly confident in his code, he also has it reset every 5 minutes of idling to safeguard against potential memory leaks — probably a good idea! All in all it’s a very cool build, and we have to give him props for not damaging the door to mount it! Down the road he’s also planning on adding a knock sensor using the small speaker that is already part of the circuit, because, why not?

Stick around after the break to see this magnificent contraption that would make Red Green proud.

Continue reading “Arduino Keypad Door Automation”