[Chris’s] bedroom has a unique setup with an air conditioning unit perched on the wall next to the top of the blinds that cover his window. Normally, to open the blinds he had to tug on a cord and operating the AC meant fiddling with a remote control. Not anymore. Now [Chris] has an all-in-one Raspberry Pi-based solution to drive both.
The build uses a stepper motor salvaged from a printer to directly drive the blinds, with a familiar-looking Easy Driver connecting it to the Pi. The motor spins the blinds’ mechanism either open or closed, though at a modest pace that’s slow enough to provide the needed torque. [Chris] added an IR diode plugged into the Pi that imitates the air conditioning unit’s remote control, and simply pointed it directly at the unit’s receiver. An inexpensive WiFi dongle gets the Pi onto the network, allowing [Chris] to interact via a custom web interface. The interface itself not only provides a couple of clickable buttons, but a cleverly-designed status image indicating the position of the blinds.
Make sure you see the video below for a demonstration and for more details on the build. This is one of the better examples of home automation devices we’ve seen recently, especially considering it actually fits the “autonomous” implications discussed in our Ask Hackaday post from a few months back—although a relatively simple automation, [Chris’s] interface does allow for operating both the blinds and the AC on a preselected schedule.
Continue reading “Raspi AC and Blinds Controller”
[Edward] wanted a different way to modulate notes on his MIDI controller, so he decided to go touchless. Inspired by the pressure-sensing modulation on his Edirol keyboard, [Edward] aligned eight sensors into a row of playable notes and used infrared to sense the distance of a player’s hand from the keys. He also included some function buttons to cycle through 10 octaves and RGB LEDs beneath the table that perform alongside the music.
He chose SHARP GP2D120 sensors (direct link to datasheet) for their low threshold, which allowed the board to detect distance close to the sensor. Each is mounted onto a sheet of frosted acrylic along with its own “hold note” button and an LED to indicate the key is playing. The lower panel houses an Arduino Mega that drives the system along with an RGB LED strip and its driver board. [Edward] used Maxuino and OSC-Route to interface the Mega to a Max/MSP patch which runs the show.
Learn more about the FlightDeck’s features in a video demonstration of the controller and the software after the break, then check out some other MIDI hacks like this organ pedal or the Arduino-driven MIDI sequencer.
Continue reading “FlightDeck: A “Touchless” MIDI Controller”
[Jeremy] refused to settle on your typical alcohol storage options, and instead created the Boozeshelf. Like most furniture hacks, the Boozeshelf began as a basic IKEA product, which [Jeremy] modified by cutting strips of wood to serve as wine glass holders and affixing the front end of a wine rack at the base to store bottles.
In its standard operating mode the Boozeshelf lies dark and dormant. Approaching it triggers a cleverly recessed ultrasonic sensor that gently illuminates some LEDs, revealing the shelf’s contents. When you walk away, then lights fade out. An Arduino Mega running [Jeremy’s] custom LEDFader library drives the RGB LED strips, which he wired with some power MOSFETS to handle current demands.
[Jeremy] didn’t stop there, however, adding an additional IR receiver that allows him to select from three different RGB LED color modes: simple crossfading, individual shelf colors (saved to the on-board EEPROM), or the festive favorite: “Dance Party Mode.” Stick around after the break to see [Jeremy] in full aficionado attire demonstrating his Boozeshelf in a couple of videos. Considering blackouts are a likely result of enjoying this hack, we recommend these LED ice cubes for your safety.
Continue reading “Interactive Boozeshelf is its own Dance Party”
[Dave Jones] from EEVBlog.com takes “Arduino fan boys” off the garden path getting down and dirty with different methods to capture, evaluate and retransmit IR remote control codes. Capturing and reproducing IR remote control codes is nothing new, however, [Dave] carves his own roads and steers us around some “traps for young players” along the way.
[Dave] needed a countdown timer that could remotely start and stop recording on his Cannon video camera, which he did with simplicity in a previous EEVBlog post using a commercial learning remote control unit. The fans demanded better so he delivered with this excellent tutorial capturing IR codes on his oscilloscope from an IR decoder (yellow trace) as well as using an IR photo transistor (blue trace) which showed the code inclusive of 38 KHz carrier frequency. Either capture method could easily be used to examine the transmitted code. The second lesson learned from the captured waveforms was the type of code modulation being used. [Dave’s] remote transmitted NEC (Japanese) pulse length encoding — which can be assertaind by referencing the Infrared Remote Control Techniques (PDF). Knowing the encoding methodology it was trivial to manually translate the bits for later use in an Arduino transmitter sketch. We find it amazing how simple [Dave] makes the process seem, even choosing to write his own sketch to reproduce and transmit the IR codes and carrier instead of taking the easy road looking for existing libraries.
A real gem of knowledge in the video was when it didn’t work! We get to follow along as [Dave] stumbles before using a Saleae Logic analyzer to see that his transmitter was off frequency even though the math in his sketch seemed correct. Realizing the digital write routine was causing a slowdown he fudged his math to make the needed frequency correction. Sure, he could have removed the performance glitch by writing some custom port control but logic dictates using the fastest and simplest solution when hacking a one-off solution.
[Dave’s] video and links to source code after the break.
Continue reading “Learn to Translate IR Codes and Retransmit Using Arduino”
[Sylvio] decided to buy one of the cheap alarm systems you can find on the internet to have a look at its insides. The kit he bought was composed of one main motion sensor and two remote controls to arm/disarm it.
Communication between the remotes and the sensor is done by using infrared, requiring a direct line of sight for a signal to be received. Modern alarm systems typically use RF remotes with a typical frequency of 434MHz or 868MHz. In his write-up, [Sylvio] first tries to replicate the IR signal with one of his ‘learning remote controls’ without success and then proceed to reverse engineering the remote circuit shown in the above picture. Hackaday readers may figure out just by looking at it that it is a simple astable multivibrator (read ‘oscillator’). Its main frequency is 38.5kHz, which is typical for IR applications. Therefore, if one of your neighbours had this ‘security system’ one could just disarm it with any of the same remotes…
[Sylvio] then explains different ways to replicate the simple IR signal, first with an Arduino then with a frequency generator and finally using the USB Infrared Toy from Dangerous Prototypes. We agree with his conclusion: “you get what you pay for”.
Since the 70s, NASA, NOAA, and the USGS have been operating a series of satellites designed to look at vegetation health around the world. These satellites, going under the name Landsat, use specialized camera filters that look at light reflecting off chlorophyll to gauge the health of forests, plains, oceans, and even farms. It’s all very interesting technology, and a few very cool people want to put one of these near infrared cameras in the hands of everyone.
The basic idea behind gauging the health of plants from orbit, or the Normalized Difference Vegetation Index, is actually pretty simple: absorb red and blue light (thus our verdant forests), and reflect nearly all infrared light. By removing the IR filter from a digital camera and adding a ‘superblue’ filter, the NDVI can be calculated with just a little bit of image processing.
The folks behind this have put up a Kickstarter with rewards including a modified webcam, a custom point and shoot camera, and a very low-cost source of one of these superblue filters. Just the thing to see how your garden grows or how efficiently you can kill a houseplant.
After months of promises, the Raspberry Pi camera is finally heading out to hackers and makers across the world. Of course the first build with the Pi cam to grace the pages of Hackaday would be removing the IR filter, and it just so happens [Gary] and his crew at the Reading hackerspace are the first to do just that.
As [Gary] shows in his video, the process of removing the Pi cam’s IR filter is extremely fiddly. Getting the filter out of the camera involves removing the sensor, gently cutting it open with a scalpel, and finally gluing the whole thing back together with a tiny bit of superglue. Not for the faint of heart, and certainly not for anyone without a halfway decent bench microscope.
If you’re looking for a Raspberry Pi-powered security camera, game camera, or something for an astronomy application, this is the way to make it happen. You might want to be careful when removing the IR filter; [Gary] broke one camera on their first attempt. They got it to work, though, and the picture quality looks pretty good, as seen in the videos below.
Continue reading “Adding night vision to the Raspberry Pi camera”