The Robot Light Switch

Automating your home is an awesome endeavor — but playing with mains AC can be risky business if you don’t know what you’re doing. So why not play it safe and make use of your light switch?

Admittedly, it wasn’t because [Tyler Bletsch] didn’t want to mess around with AC directly, but rather out of necessity. You see, he just moved into a new office and his “smart” air conditioner… doesn’t turn itself off at night.

There’s a remote control to set the target temperature, but the unit isn’t smart enough to turn off at night. Instead, there’s a physical wall switch so you can turn it off with your actual physical hands, like a barbarian.

Refusing to be a barbarian (and to stay at work late), he decided to simplify the problem by building a servo driven light switch plate. It’s not the prettiest — but it does the trick. Continue reading “The Robot Light Switch”

Automatic Cat Feeder Dispenses Noms, Wants Cheezburger

[Domiflichi] likes his cats, but not the drudgery of feeding them. So, like any good engineer, this simple problem became his next project: building an automatic cat feeder. Based on an Arduino, his creation beeps to let the cats know that it is dinnertime, then dispenses food into a number of bowls. There are also buttons for manual control. This lets him give individual cats a separate feeding. Rounding out the feature set, a DS1307 RTC tracks the feeding times.

One of the most interesting parts of his build is the transfer from breadboard to protoboard. This usually involves taking apart a working version, then putting it back together and trying to figure out why it doesn’t work anymore. [Domiflichi]’s problem (detailed in a follow-up post) was figuring out how to program the real-time clock module to set the time, because it looses the time when you disconnect the power. Rather than use the Arduino to program the RTC,  he used the battery backup feature of the RTC chip, programming it on his computer and then soldering it onto the board. He went on to remove the backup battery after the chip was in place. That’s a solution that will no doubt have many readers waving their fingers disapprovingly, but it worked.

It may seem overly complicated, but his project is worth checking out to see how he approached some of the engineering challenges. The food hoppers themselves are off-the-shelf cereal dispensers. We’ve seen other designs bootstrap this mechanism with 3D printed augers.

Continue reading “Automatic Cat Feeder Dispenses Noms, Wants Cheezburger”

Magnetic Levitation With Arduino

Getting a magnetic field to balance on another magnetic field is about as easy as balancing a bowling ball on the tip of an ink pen. With a little help from an Arduino mega, however, [EmmaSong] was able to balance a high density neodymium magnet in midair. He pulled off this tricky project using a set of four coils he got off of Taobao (the Chinese version of eBay), a hall effect sensor, and a handful of current regulation ICs.

The coils can be made in house if necessary, with each winding getting about 800 turns of enameled wire. The rest of the circuit is straightforward. It appears he uses a potentiometer for a rough regulation of the current going to the coils, doing the fine tuning in the code which can be found here (.RAR direct download).

We’ve seen magnetic levitation here before, and this project adds to the list of successful techniques to accomplish this difficult project.

Continue reading “Magnetic Levitation With Arduino”

PIR Jack-o-Lantern Sees Them Coming

Planning to make that carved a pumpkin last past Halloween night? Forget the tealight or LED candle—here’s an easy, no-solder project that will make it extra special. By default, this jack-o-lantern looks like it has a flickering flame, but get close enough to it and it goes crazy with color.

All you need is an LED matrix, a Rainbowduino to drive it, a PIR motion sensor to trigger the random colors, and a power source. [Alpha Charlie] kept the electronics from becoming pumpkin-flavored with some plastic bags. Since he used the PIR as the jack-o-lantern’s nose, there is a bit of plastic behind it to keep moisture from interfering.

[Alpha Charlie]’s build instructions are quite detailed, which makes this project even simpler if you’ve never used a PIR before. There are lots of ways you could build on this project to make it your own, like using trick-or-treater motion to trigger screams or spooky sounds, or add more sensors to make it more interactive. Watch it react after the break.

If you have nothing else at all to do between now and trick-or-treat time, you could bust out the soldering iron and recreate this 70-LED matrix jack-o-lantern. Blinkenlights too safe for your tastes? Fire-breather it is, then.

Continue reading “PIR Jack-o-Lantern Sees Them Coming”

Code Craft: Using Eclipse For Arduino Development

As we work on projects we’re frequently upgrading our tools. That basic soldering iron gives way to one with temperature control. The introductory 3D printer yields to one faster and more capable. One reason for this is we don’t really understand the restrictions of the introductory level tools. Sometimes we realize this directly when the tool fails in a task. Other times we see another hacker using a better tool and realize we must have one!.

The same occurs with software tools. The Arduino IDE is a nice tool for starting out. It is easy to use which is great if you have never previously written software. The libraries and the way it ties nicely into the hardware ecosystem is a boon.

When you start on larger projects, say you upgrade to a Due or Teensy for more code or memory space, the Arduino IDE can hamper your productivity. Moving beyond these limitations requires a new, better tool.

Where do we find a better tool? To begin, recognize, as [Elliot] points out that There is no Arduino “Language”, we’re actually programming in C or C++. We chose which language through the extension on the file, ‘c’ for C and ‘cpp’ for C++. An Arduino support library may be written in C or C++ depending on the developer’s preference. It’s all mix ‘n match.

Potentially any environment that supports C/C++ can replace the Arduino IDE. Unfortunately, this is not easy to do, at least for inexperienced developers, because it means setting up the language tool chain and tools for uploading to the board. A developer with that much experience might eschew an integrated development environment altogether, going directly to using makefiles as [Joshua] describes in Arduino Development; There’s a Makefile for That.

The reality is the Arduino IDE is not much more than a text editor with the ability to invoke the tools needed to compile and download the code to the Arduino. A professional IDE not only handles those details but provides additional capabilities that make the software development process easier.

Continue reading “Code Craft: Using Eclipse For Arduino Development”

Swimming Pool Dance Floor Enlightened With Leds

In a well documented blog entry, [Loren Bufanu] presents a project that lit up a glass dance floor covering a swimming pool with RGB strips. We mentioned a video of his project in a Hackaday links but didn’t have any background information. Now we do.

boards in boxThe project took around 450 meters of RGB strips controlled by two Rainbowduinos and driven by sixty-four power Mosfets, sixty-four bipolar transistors, and a few other components. Producing white light from the LEDs draws 8 amps from the power supply.

The Rainbowduino is an ATmega328 Arduino compatible board with two MY9221 controllers. Each  controller handles 12 channels of Adaptive Pulse Density Modulation. In other words, it makes the LEDs flash nicely. [Loren] used the Rainbowduino instead of some alternatives because multiple R’duinos can coordinate their activities over I2C.

The software part of the project did not work as well as the hardware. The light patterns were supposed to follow the music being played. A PC software package intended to drive the R’duinos produced just a muddy mess. Some kludges, including screen captures (!), driven by a batch file tamed the unruliness.

It’s been awhile, but a similar disco dance floor, built by [Chris Williamson] but not over a pool, previously caught our attention. [Chris] is a principle in Terror Tech that recently got a mention on Sparkfun.

The video after the break fortunately does not make a big splash, but is still electrifying.

Continue reading “Swimming Pool Dance Floor Enlightened With Leds”

Leap Motion Arduino Control

Leap Motion Wirelessly Controlling A Prosthetic Hand With An Arduino

The Leap Motion controller is a rather impressive little sensor bar that is capable of generating a massive 3D point cloud and recognizing hands and fingers to allow for gesture control based computing. It’s been out for a few years now but we haven’t seen many hackers playing with it. [Anwaarullah] has messed around with it before, but when it came time to submit something for India’s first Maker Faire, he decided to try doing an actual project with it.

Checking out the latest Leap Motion SDK, [Anwaarullah] realized many improvements had been made and he’d have to rewrite some of his original code to reflect the changes. This time around he’s opted to use the ESP8266 WiFi module instead of a Bluetooth one. He printed off a Raptor hand (from the wonderful folks at e-NABLE) and hooked it up with some RC servos to give him a nice robotic hand to control.

Continue reading “Leap Motion Wirelessly Controlling A Prosthetic Hand With An Arduino”