Electronic candle protects sleeping infant

posted Feb 6th 2012 11:49am by
filed under: Microcontrollers

[William] developed this temperature candle as a tool to help keep babies safe as they sleep. It seems that ambient temperature has an effect on Sudden Infant Death Syndrome (SIDS). This device is meant to alert you when room temperature is outside of the recommended envelope.

The board hosts an eight-pin PIC microcontroller (12F683P), a temperature sensor, RGB LED, and a push button. The round PCB is the same size as a votive candle, which is nice except that you’re going to have to drill a hole in your candle holder to accommodate that barrel jack.

The temperature sensor is read by the microcontroller and used to determine the color of the LED. Red is hot, blue is cold, and just right is somewhere in between. But if you’d rather know the exact current temperature you can press the button and it’ll blink out the Celsius reading using blue for 10 degree increments (three blinks is 30 degrees, etc.) and red for single degrees. Don’t miss the demo of the candle in the video after the break.

Read the rest of this entry »

Ball-in-maze game shows creativity and classic 8-bit sound

posted Jan 19th 2012 2:57pm by
filed under: Microcontrollers

[M. Eric Carr] built this a long time ago as his Senior Project for EET480. It’s an electronic version of the ball-in-maze game. We’ve embedded this video after the break for your convenience.

The game has just one input; an accelerometer. If you’re having trouble visualizing the game, it works the same as this Android-based version, but replaces the physical maze and marble with a virtual maze on the graphic LCD screen. This has huge implications. Instead of just recreating the maze on the screen, [Eric] designed a multi-screen world, complete with warp blocks, which adds difficulty to  finding a solution. It also means that multiple different mazes can be played if you get tired of playing the same level.

This game also features music. A separate PIC microcontroller uses PWM to push out the 8-bit sound heard in the video. From the YouTube comments we learned that [Eric] didn’t write the music himself, but we still appreciate the playback quality he achieves with his hardware.

Read the rest of this entry »




Reverse Geocache box looks great and packed with features

posted Jan 19th 2012 8:01am by
filed under: gps hacks

[Ranger Bob] crafted this great looking Reverse Geocache box. Our favorite feature is the black piece of acrylic on top. It’s laser cut (not sure if the letters are engraved or not) and gives a great finished look while hiding a couple of things at the same time.

The orange box is a metal cash box, and there’s a smooth indentation in the lid where the handle resides when not being carried. [Bob] removed the handle and mounted the GPS module in that void. But there’s also an OLED display mounted next to it. As you can see in the demo video after the break, the screen is bright enough to be seen clearly through the smoky acrylic covering that depression.

This project gave [Bob] the chance to order his first professionally made circuit board. He did the design in Eagle, managing to keep within the 5cmx5cm limits of Seeed Studio’s least expensive Fusion PCB option. The board hosts the PIC 18F87J50 responsible for handing the screen, GPS module, input button, and USB port. Power comes from an internal Lithium battery.

We’ve featured a lot of Reverse Geocache boxes and they’re still one of our favorite projects because so much love goes into the design and build process. Here’s another one that we chose randomly for your amusement.

Read the rest of this entry »

Python maps mouse movements on an LED matrix

posted Jan 13th 2012 4:01pm by
filed under: Microcontrollers

[Vinod Stanur] is working with a mouse input and a microcontroller driven LED matrix. The mouse cursor is tracked inside of a window by Python and the resulting coordinates on the LED grid are illuminated. He calls it an LED matrix “Paint Toy” because one of the features he’s included lets the user create pixel art like in MS Paint.

The 10×8 grid of lights is controlled by a PIC 16F877A. This display orientation is perfect for the 8-bit controller, which uses an array of ten bytes to keep track of the pixel data. A computer running his Python application (which uses the Pygame module to track the mouse movements) communicates with the display board via an RF connection. Five bytes plus a stop character make up the communication packet. The first two bytes contain the coordinates of the cursor, the other three bytes contain mouse button status.

As you can see in the demo after the break, the system is very responsive. The mouse can be moved quickly without latency issues, and if the cursor leaves the tracking window it gets picked up right away when it re-enters.

Read the rest of this entry »

Using an ATmega8 to program PIC24FJ chips

posted Dec 25th 2011 12:00pm by
filed under: Microcontrollers

[Fezoj] likes to play around with microcontrollers and decided that he wanted to try a Bus Pirate as a new tool in his adventures. Since it’s open hardware he had his own board made and populated it himself. The trouble is, he works only with AVR chips and doesn’t have a PIC programmer. No problem, he figured out how to flash the PIC24FJ using an ATmega8.

To get started, he grabbed a copy of the flash programming specifications from Microchip. Once he had implemented the protocol in the AVR code, it was just a matter of getting the downloaded PIC firmware to the AVR. An RS232 chip gives him the serial connection he needs, with the help of his own programming software written with Visual Studio.

It’s not a robust solution for prototyping on the PIC platform, but maybe it could be developed for that purpose. For now, all he needed was a bootloader so that he could flash the Bus Pirate via a USB connection.

[via Dangerous Prototypes]




Naughty Duck will be the end of Secret Santa at your place of work

posted Dec 13th 2011 5:01pm by
filed under: toy hacks

Aw, isn’t he cute? Looks are deceiving, because if you get him started, this duck says some vulgar things. [Gigavolt] found the little guy abandoned at the Goodwill store and decided it might have some hacking potential. Boy was he right. The stock toy can already sing a tune while flapping its beak and wings. After spending some time in [Gigavolt's] lair, this duck is going to be on the naughty list. The best part is that this is going to end up in the hands of someone else thanks to a Secret Santa exchange.

The build article linked above is safe for you to read at work, but the video embedded after the break most certainly is not. [Gigavolt] got to work replacing the integrated circuit inside with his own PIC 16F628 microcontroller. He uses a new audio track, which is played back by a SOMO-14D audio player board. The two use different input voltage levels which is something of a bother, but it’s a standby power drain that has been vexing [Gigavolt] he rolled his own board using the DorkbotPDX order and can’t figure out why the current consumption is so high. Take a look at the cursing duck, then see if you can’t troubleshoot his electrical issues.

Read the rest of this entry »

GE Color Effects hacking for the nautically inclined

posted Dec 12th 2011 10:01am by
filed under: Holiday Hacks, led hacks, news

ge-color-effects-controller

[Jim] wrote in to share some work he did with GE Color Effects LED lights in an effort to create a light display for his boat. He saw our coverage of the Color Effects G-35 hacking efforts by DeepDarc last year, and knew that they would be prefect for the boat. He did some careful scouring of eBay to score 8 strings of lights at bargain basement pricing, then he got down to the business of hacking them.

He originally built a control circuit using a single PIC18F, but just before he started to put everything together, he realized that wiring everything up would be a huge undertaking. Going back to the drawing board, he decided it would be best to replace the lights’ stock board with one of his own. Now, he uses a single master controller board to send messages to his slave “pods”, significantly cutting down the amount of wiring required for the project.

The display looks great as you can see in the video below, though as many do, [Jim] has plenty of improvements in mind for the future.

Read the rest of this entry »

Web-enabled coffee maker over-complicates your break time

posted Dec 5th 2011 1:13pm by
filed under: cooking hacks

Some think that grinding the beans and filling the coffee maker is part of the coffee-drinking ritual, but [Jamie] isn’t one of them. Instead, he’s been working to make this coffeemaker a web-enabled device. He built it as part of a class project, and has implemented most of what you need to make a cup of Joe automatically.

You can see a small pump attached to the back of the coffee maker. It sucks water from a pitcher (slightly visible to the left of the coffee maker) to fill the reservoir. He experimented with a couple of different water level sensing solutions. His most recent is a PCB with several traces of different length. As those traces are covered by water, a voltage can be read via ADC to establish water level.

He’s using an Arduino and Ethernet shield to add connectivity for the device. The problem is that there aren’t enough ADC pins left on the Arduino to read the water level sensor. Because of this, he added a self-build shield that uses a PIC to do the ADC measurements and push digital data across to the Arduino. A bit complicated, and it doesn’t load the grounds automatically (yet?). But that’s not to say we don’t appreciate complicated coffee hacks.




Hack a Day serves up fresh hacks each day, every day from around the web as well as hacking related news.

Send us your hacks










     




Hacks

Resources