
Microcontrollers2381 Articles
Burglar Alarm In A Zippo Lighter

[Madmanmoe64] has really done a fantastic job with this burglar alarm built into a zippo. He crammed a picaxe microcontroller, some IR LEDs, an IR sensor, a battery and various switches in there quite well. It almost closes perfectly, something we think he could remedy if it really bugged him that much.
It has several modes, all initiated by a different sequence of button presses. There is the proximity alarm, which sounds when something moves very close. The reverse proximity alarm which sounds when you remove something from its immediate vicinity. A doorbell mode, and a silent alarm mode. Check out the video after the break to see it in action.
ATtiny2313 Prime Number Generator

[Scott Harden’s] prime number generator exhibits a great way to use an LED matrix to present readable information. The project resides in a hinged wooden box with a grid of holes on the lid for the LEDs. [Scott] has overlaid the matrix with a printout showing powers of two that represent different prime numbers. Inside you’ll find an ATtiny2313 microcontroller that handles the column scanning and prime number testing. We’ve embedded a video the break where [Scott] explains the project in great detail, but you should also check out his prototyping and construction pages.
Lee Hart’s “Memebership Card”
[youtube=http://www.youtube.com/watch?v=hbsPddZsmVI]
In an act of retro revival, [Lee Hart] has created this “Membership Card“, an altoid tin sized tribute to the 1802 CMOS chip. Made popular in the late 70s in the RCA COSMAC ELF computer, the 1802 stole many a hackers heart. There’s tons of information available if you explore the site, from history to kit building experiences.
[via Retro Thing)
GameBoy Analog Meter

Here’s an interesting setup using a GameBoy Advance as an interface and power supply for a PIC microprocessor. He’s got the PIC connected to the serial port of the GameBoy Advance and is able to pass and retrieve data for display on the screen. You can see above that he is showing two analog values from the pic. You can download the schematic and source code and see a few more pictures, but that’s about it.
[via HackedGadgets]
Porting Code To MSP430

I took a little time to look into porting code written for AVR in order to run it on the MSP430 architecture. It’s easier than you think, being mostly small differences like an extra step to enable pull-up resistors. But there is a lot to be learned in order to transition away from using EEPROM.
Since the TI chips don’t have EEPROM you need to use the Info Flash, a topic which I detail in the article linked at the top. This flash memory must be erased before writing because a write operation can only change high bits to low, not the other way around. And an erase operation clears an entire 64 kB segment, not just the bytes you want to write to. It’s different but manageable.
Oh, and if you were wondering, I ported the code I wrote for the garage door coded entry project.
How-to: Launchpad Programming With Linux
When TI released their Launchpad development board at the end of June it generated a lot of Buzz. Here’s a package that delivered a programmer, debugger, two microcontrollers, and some accessories for less than five bucks (including shipping). They even provided a choice of two software suites but only for users running Windows who don’t mind proprietary software. If you’re looking to go another way you should consider trying out the open source alternative MSPGCC. After the break we’ll take a look at getting the tool-chain up and running in a Linux environment.
