AVR HVSP On A Tiny Breadboard

AVR chips are convenient because you can program them in circuit at their operating voltage. That is, unless you screw up the fuse settings and they’ll no longer listen to an In System Programmer. If you find yourself facing this problem, just build this circuit on a breadboard and ‘unbrick’ by holding down the button.

The circuit seen above is a High Voltage Serial Programmer. This is one of two high voltage protocols used by AVR chips; HVSP is for chips that don’t have enough pins to use High Voltage Parallel Programming. This rendition uses a 12V power source, which is the level necessary for the high voltage method. A 7805 linear regulator joins the mix to provide operational voltage, along with one transistor, an ATtiny2313 to control the circuit, a four-digit 7-segment display for feedback, and one button for control.

Watch the video after the break to see an ATtiny13 programmed to disable the reset pin using a breadboarded programmer. That chip is then easily rescued, having been automatically recognized by using its device signature.

Continue reading “AVR HVSP On A Tiny Breadboard” →

Keep Fun In Check With A Parental Count Down Timer

Gaming industry software engineer [Pedantite] writes in to let us know about his latest endeavor, an AVR based parental assistant timer: Good Times.   Looking for a new project that would be both useful and interesting, his wife suggested a “time out/ time’s up timer”. Like most of us [Pedantite]’s children are well studied in the arts of procrastination and mischief.  In the kids’ case this leads to time outs and break time running amok. The solution, in this case, is pretty much an advanced DIY egg timer with fun sounds.

The timer sports all of your basic countdown-timer functions including a 4 digit 7-segment LED output display, stop light style LED indicators, and controls to start/pause and stop the count down. The count down time can be input via the +5 minute, +1 minute, and +15 second buttons. There is even a happy/sad button to toggle between “time out” and “break time” modes. Two Atmel micros power the device, an AT Tiny 2313V for the capacitive touch keypad and an AT Mega 644P for the display, audio, and time measurement.  There are a lot of excellent techniques used in the build, some which we have covered here:  Four 595 Shift registers for the display; A 4 bit r2r DAC for audio output.

[Pedantite] is still in the process of writing up the project in multiple posts, and would love to know what you all want to hear about. Check out his blog for details and a quick video of the timer in action! Also, if you are interested in capacitive buttons, check out part 2 of the writeup.

Power-sipping MSP430 Mini Alarm Clock

msp430_alarmclock

[Markus] had a TI MSP430 sitting around from the LaunchPad kit he bought a while back. He didn’t know what to do with it, but eventually decided that it would make a great miniature alarm clock.

He added a shift register to the mix in order to drive his 7-segment LCD display, using two of the MSP430’s output pins in the process. Four more pins were tied to the display’s cathodes, while the remaining two pins are connected to push buttons which register user input.

He crammed the clock’s logic as well as an alarm tune into the chip’s scant 2KB of memory space, literally occupying everything up to the last available byte. The clock is quite a power-miser, using just 2 µA in standby mode. According to [Markus’] calculations, that should enable the clock to use one set of batteries for 10+ years.

While this isn’t the first MSP430 clock we have seen, it certainly is the smallest and most simple.  Stick around to see a quick video of his clock in action.

Continue reading “Power-sipping MSP430 Mini Alarm Clock” →

Propeller-Android Communications Using Debug Mode

Here’s a new way to connect an Android phone and a Propeller microcontroller. It’s called the PropBridge and uses a very simple circuit with a voltage regulator, a couple of transistors, and a few resistors. The trick to this method lies in creative use of software features that already exist on Android hardware, the Android Debug Bridge (ADB). The ADB was added with development in mind, but since it provides low-level control of certain parts of these devices it was just waiting to be incorporated into a hack.

The Propeller itself uses firmware to make Android think it is one of two different externally connected hardware devices. It can act like a PC running the ADB client or it can mimic a TCP connection. There’s still plenty of room on the uC to add your own firmware, and the majority of the I/O pins are unneeded for the basic connection. Check out the video after the break for a quick overview of the system.

If you need a little help with Android programming before you’re able to use this in your own projects, check out our Android development series.

Continue reading “Propeller-Android Communications Using Debug Mode” →

Learn The Geometry To Draw An Analog Clock On A Graphic LCD Screen

Does the image of the clock above make you shutter with fear because of the math you’d need to use to recreate your own version of the project? We certainly understand that High School geometry is becoming a very distant memory, but it’s really not as hard as you think. [Janw] built this analog clock using a graphic LCD and he’s done a great job of explaining the concepts behind it.

The hardware he’s using is pretty standard for an electronic hobby clock; an ATmega16, graphic LCD, DS1307 real-time clock, and supporting hardware like a potentiometer, resistors, and buttons. The code is written in Bascom, but like we said, [Janw] explains the concepts behind drawing the hands on the clock so you can recreate this with any microcontroller or software language you prefer. We  recommend grabbing a calculator and some blank paper. It took us a few tries to brush the cobwebs out and really grasp what he’s doing with each equation.

RC Override For Autonomous Hardware

[Simon Inns] developed this board to act as a radio controlled override for autonomous hardware. It sits between some servo motors and two different sets of controllers for those motors. One set of hardware that can control the motors is a microcontroller programmed for autonomous tasks. In [Simon’s] case this enables a sailboat to navigate open water with out human intervention. But if that board fails, or if you just need to call the boat back to port, this module allows for a traditional RF vehicle controller to take command.

The board seen above, dubbed the Servo Switcher, uses a PIC 12F683 to monitor the incoming signal from the RF receiver. If that signal is not present it switches control of the motors over to a separate microcontroller board. This means that the override control is established simply by turning the handheld controller on. This will save you a swim to retrieve your boat, which is a nice convenience. But if you modify this for a plane or helicopter, it can save your aircraft from certain destruction. Check out the video walk through after the break.

Continue reading “RC Override For Autonomous Hardware” →

Birthday Gift Is A Constant Reminder Of Impending AARP Membership

birthday_countdown_timer

Sometimes milestone birthdays can be a bit depressing. 30 is rough, and 40 tougher – but 50…that’s a big one!

[Ryan’s] uncle is going to be turning 50 shortly, and in the interest of good-natured fun, he has constructed a handy birthday countdown timer for his uncle, lest he forget (or tries to avoid) the big day.

The device displays the amount of time left before his uncle’s birthday, playing an audio clip of “Don’t fear the Reaper” when the clock strikes 00:00. This is accomplished by using the MSP430’s internal clock to keep time, while also interfacing with a Nokia 3310 LCD panel to display the countdown timer. The music is provided by the circuit board from a greeting card he gutted for the project, which was wired to the LaunchPad in order to be triggered at the right moment. Everything was crammed inside an Altoids tin, as you can see in the picture above.

Though not overly complicated, it’s a fun little project, and we’re hoping his uncle gets a big kick out of it. Once his birthday has come and gone, [Ryan] plans on converting the piece into a permanent desktop clock for his uncle.