Project Enclosures The Right Way

[Stephen Eaton] created an enclosure and shared his process in a pair of blog post. We thought is was amusing that he remarks on how rarely his projects get the to point that you’d want to make an enclosure for them. We’ve certainly got a lot of bare-PCB creations lying around. But when it does come time, we think his fabrication method is a good way to go.

First of all, he didn’t start from scratch. He already had a SparkFun project case sitting around. The problem is figuring how to make it work for your situation. We’ve used a drill, a Dremel, and a file in the past and that yields passable results but nothing that would be mistaken for anything other than a carefully mangled project box. [Stephen] decided to mill the openings he needed from the box, which yielded professional looking results. He started by emailing SparkFun and asking if they could give him a 3D model of the project box and the obliged. He then modeled the LCD screen, LED light pipes, button, USB port, and SD socket. From there it was off to the mill with a custom jig and a few tricks we think you’ll appreciate. The end result is just another reason to build the CNC mill you’ve had on your mind for so long.

IM-ME Plays Music In Preparation For Gaming

[Emmanuel Roussel] is coding a version of Tetris for the IM-ME. Before you get too excited, he hasn’t actually written the game yet, but instead started with the familiar theme music. The IM-ME has a piezo speak on board so it’s just a question of frequency and duration. [Emmanuel] developed an Open Office spread sheet that calculates each note’s frequency and the timer value needed to produce it. He then created a data type that stores a note and its duration and used an array of those structures to store the song. If you’ve ever wondered how to cleanly code music this is a wonderful example to learn from because right now the code doesn’t have anything other than that code to get in the way.

The ground work for this was established in the other hacks we’ve seen. Now we’re left wondering who will finish coding their game first. Will it be [Emmanuel’s] Tetris or [Travis’] Zombie Gotcha?

Water Use Feedback Changes Behavior

How much water do you use when showering, or washing your hands, or washing the dishes? Not how much does the average person use, but how much to you use? That’s what the team over at Teague Labs set out to find with this water usage feedback system. The sensor used is a Koolance flow meter which is intended to measure coolant flow in PC liquid cooling systems. At $20, it makes a nice low-cost sensor which was paired with a WiFi enabled Arduino. In the image above they’re using an iPad as a screen so that you can see how much water you’re using (or wasting) as you wash your hands. This resulted in saving 1/2 gallon of water every time someone washed their hands.

The project code, schematic, and board files are all available for download. Along with the hardware build there’s some nice server-side software that gathers and graphs the data over time. We’ve seen a lot of power-meter hacks, but it’s nice to have the option to track water usage, even if this is tailored to just one tap at a time.

AVR Programming 03: Reading And Compiling Code

In the last installment of our tutorial series we built a simple circuit on a breadboard and programmed an ATmega168 to make it run. That proves that you know how to follow directions, but the eureka moments of doing everything yourself are on the way. This time around you will get down and dirty with the datasheet, learning where each line of the sample code came from, and give your recently installed compiler a test drive. We will:

  • Talk about bitwise operators and how they work when coding for microcontrollers
  • Discuss C code shorthand
  • Review the sample code from Part 2 and talk about what each line of code does
  • Learn to compile code

If this is the first you’ve heard about our AVR Programming series, head back to Part 1 and start from the beginning. Otherwise, take a deep breath and we’ll being after the break.

Series roadmap:

Continue reading “AVR Programming 03: Reading And Compiling Code”

Robot Eyes Look Where You Do

This robot eye can move five times faster than the human eye. It’s capable of being used to follow a human gaze and, as you can see by that coin, it’s small enough to be used in pairs. When used to follow your gaze it needs a custom-made eye tracker. The thought here is that a lot can be learned about a person’s psyche by monitoring what they are focusing on. But we wonder about the augmented reality properties of a setup like this.

Imagine a pair of glasses as a heads up display. If this camera knows where you’re looking it can process the items in your gaze and overlay digital information. As with all new technology there are obvious military uses for this, but we’d be more interested in a Flickr pool type collection of people’s real-world experiences. Like subscribing to the locations of that thumb drive network in NYC and having the camera/glasses guide you to the nearest installation.

Want to see how fast this thing responds? Check out the video after the break.

Continue reading “Robot Eyes Look Where You Do”

AI Via Super Mario Evolution

Can Super Mario teach you to think? That’s the idea behind using a simple version of the game to teach artificial intelligence. [Oddball] calls this The Mario Genome and wrote at program that can take on the level with just two controls, right and jump. He gave the script 1000 Marios to run through the level. It then eliminates the 500 least successful and procreates back to 1000 using the 500 most successful. In this way the program completed the level in 1935 generations and completed it in the quickest possible time in 7705 generations. He’s posted the script for download so that you can try it yourself. It’s an interesting exercise we’d love to see applied to more random games, like Ms. Pac-Man.

[via Reddit]

Chest Freezer Temperature Controller

[Mikey Sklar] finds himself in need of a temperature regulated refrigerator for fermenting foods like yogurt, kimchi, bread, and beer. After some testing he found that by building his own controller he can get a chest freezer to outperform an upright refrigerator at this task by 2-to-1.

The controller is based around an ATmega48. It includes a remote temperature sensors which you can see connected to the lower left header in the image above. On the back of the board there’s a relay used to switch the freezer’s power on and off. [Mikey] is selling a kit but the hardware and software for the project are both open source so build it yourself if you have the know-how.

A chest freezer is a great place to store Cornelius kegs… we’ll keep our eyes open for one.