Sump pump monitor emails and raises alarm if water rises


[Matt] literally finds himself in a sticky situation. There’s an oil slick in his sump well. These wells work in conjunction with drain tiles to pump water away from the foundation of a house. Unfortunately the tar that was used to waterproof the outside of his foundation is also washing into the sump and gumming up the works. The system he built will sound an audio alarm and send an email if something goes wrong with the sump pump.

He’s monitoring for two different issues. One technique uses a float valve to sense if the water is too high, signalling that the mechanism controlling the pump has malfunctioned. The other is a current monitor that senses if the sump pump has been running too long (caused by the sump’s water sensor getting stuck in the on position). The one thing he didn’t want to do is control the pump directly as a bug in his code will easily result in a flooded basement. We have the same concerns when considering building a DIY thermostat (an error there could mean frozen water pipes leading to flooding).

Raspberry Pi Hacking, Commando Style


If you’re lacking useful equipment for your Raspberry Pi hacking adventure, such as an HDMI monitor or power supply, this handy write-up will show you how to continue your hacking. All you’ll need is a laptop, the Raspberry Pi itself, an SD card, and an Ethernet and micro-USB cable. As noted in the article, it’s not really recommended to power the ‘Pi off of USB only, so this could potentially be a source of problems.

This hack begins by installing Linux on an SD card per this setup page, then using a Virtual Network Computing [VNC] setup to work with your Raspberry Pi. There are a few steps in between being able to do this, like setting up network sharing, and sleuthing out the IP address of the new processor, but everything is explained in detail for Mac and Linux. Windows users will have to do a bit of “sleuthing” of their own, but if you have some more information on this process, we’d love to hear about it in the comments!

Hackaday Links: December 5, 2012

PS1 hombrew competition


The PlayStation Development Network is hosting a six-month long competition to develop homebrew games for the original PlayStation.We don’t get many homebrew games for old systems in our tip line, so if you’d like to show something off, send it in.

This is how you promote a kickstarter


[Andy] has been working on an SNES Ethernet adapter and he’s finally got it working. Basically, it’s an ATMega644 with a Wiznet adapter connected to the second controller port. The ATMega sends… something, probably not packets… to the SNES where it is decoded with the help of some 65816 assembly on a PowerPak development cartridge. Why is he doing this? To keep track of a kickstarter project, of course.

What exactly is [Jeri] building?


[Jeri] put up an awesome tutorial going over the ins and outs of static and dynamic flip-flops. There’s a touch of historical commentary explaining why dynamic registers were used so much in the 70s and 80s before the industry switched over to static designs (transistors were big back then, and dynamic systems needed less chip area). At the end of her video, [Jeri] shows off a bucket-brigade sequencer of sort that goes through 15 unique patterns. We’re just left wondering what it’s for.

Finally, a camera for the Raspberry Pi


In case you weren’t aware, the camera board for the Raspberry Pi will be released sometime early next year. Not wanting to wait a whole month and a half, [Jouni] connected a LinkSprite JPEG serial camera to his Raspberry Pi. The whole thing actually works, but [Jouni] didn’t bother posting the code. Maybe we can encourage him to do so?

Blatant advertising? Yes, but fireballs

Nintendo gave [MikenGary] a Wii U and asked them to make a film inspired by 30 years of Nintendo lore and characters. They did an awesome job thanks in no small part to Hackaday boss man [Caleb](supplied the fire), writer [Ryan] (costume construction) and a bunch of people over at the Squidfoo hackerspace.

Traffic lights tell you when your Xbox Live friends are gaming

It sounds like [Andrew] is trying to build a Pavlovian response into his behavior when it comes to online gaming. He wants to make sure he doesn’t miss out when all his friends are online, so he built this traffic signal to monitor Xbox Live activity. It will illuminate the lights, and drive the meters differently based on which of his friends are currently online. When the light’s green, he drops everything a grabs a controller.

The base of the light is a black project box. Inside you’ll find the Arduino compatible chip which drives the device mounted on a piece of protoboard. A WIZnet W5100 adds network connectivity at the low price of around $25. There is one problem with the setup. The API which [Andrew] found doesn’t use any authentication. This means that he can only see the public status of his friends; anyone who has set their online status set to private will always register as ‘online’. If you know of an existing Xbox Live API that would solve this issue we’d love to hear from you in the comments.

Remote uploading to an Arduino with codebender

A few weeks ago, we saw codebender, an online replacement for the Arduino IDE that allowed you to upload a sketch to your board from a web browser. Over on the codebender blog [Vasilis] and his team are rolling out a way to remotely upload code to an Arduino over Ethernet. Now you don’t even need a serial connection to program an Arduino; it can be done over the Internet to a board in the next room, or on another continent.

The star of this hack is the Ariadne bootloader, an implementation of TFTP that allows any Ethernet-enabled Arduino to receive updates over the Internet. There is still one small problem with the Ariadne bootloader: uploading code over Ethernet requires someone to press the reset button on the Arduino, completely negating the benefits of programming an Arduino over Ethernet.

This problem has been solved before for earlier Arduino boards, so we’re sure [Vasilis] and his team will be able to fix the reset issue in very short order. If you’d like to check out the remote TFTP bootloader and play around with codebender, you can grab Ariadne over on GitHub.

Cheap as chips Arduino Ethernet shield

It’s no secret that Ethernet shields for the Arduino are a little expensive. With the official Ethernet shield selling for about $50 and other options not much cheaper, there’s a lot of room for improvement for Arduinofied Ethernet. [Boris] over at Open Electronics has a solution to this problem: his Ethercard powered by a $3 Ethernet controller.

The Ethercard uses the Microchip ENC28J60, a through-hole Ethernet controller. There isn’t much else on the board apart from an RJ45 jack, caps, resistors, and a cheap buffer chip. This board was designed to be easily produced, and we’re thinking it might be possible to etch this board at home.

There are a few drawbacks to this ENC28J60 Ethernet shield – the official Arduino Ethernet shield has a 10/100 Mbps connection where the Microchip-powered shield is limited to 10 Mbps. Given the reduced cost, ease of assembly, and the fact that it’s pretty hard to saturate a 100Mbps connection with an Arduino this flaw can be easily ignored.

Pretty neat, especially considering how much you can do with an Ethernet connection on your Arduino. Files and code available in the git.

Using the Raspi as an Ethernet shield

[Alexandre] wanted to set up a web-based temperature logger with his Arduino, but found the Arduino Ethernet shield a little finicky. Since his Raspberry pi was just delivered, he figured he could use the Raspi as an Ethernet shield with just a little bit of coding.

After [Alexandre] set up his Arduino to send a thermocouple through the USB, the only thing left to do was to add node.js to the Raspi’s Debian installation. Every five minutes, the Arduino wakes up, takes a temperature reading, and sends it over to the Raspberry pi. From there, it’s easy parse the Arduino’s JSON output and serve it up on the web.

In the end, [Alexandre] successfully set up his Raspberry pi as an Ethernet shield to serve a web page displaying the current temperature (don’t F5 that link, btw). One interesting thing we have to point out is the cost of setting up this online temperature logger: the Arduino Ethernet shield sells for $45 USD, while the Raspberry pi is available for $35. Yes, it’s actually less expensive to use a Raspberry pi as an Ethernet shield than the current Arduino offerings. There you have it, just in case you were still on the fence about this whole Raspi thing.