Connect A PS/2 Keyboard To A Microcontroller

[youtube=http://www.youtube.com/watch?v=vfIiLE0BhE8]

The guys at Nerdkits have put together this tutorial on connecting a PS/2 keyboard to a microcontroller. Though this tutorial is written for one of the kits they sell, you should be able to apply this to pretty much any microcontroller. It is also a lesson in using interrupts instead of polling. They have several pre built examples ready to download as well as source code for the basic setup.

[via HackedGadgets]

Tool Tip: Microcontroller Timer Calculator

uC_timer_calculator

In life and embedded systems timing is everything. Give [Frank’s] web-based timer calculator a try. Set your system clock resolution (in hertz making sure you account for any system clock divider), select your timer resolution and prescaler, then calculate based on desired ticks, overflows, or real time. He’s built this with the AVR chips in mind but it should be handy for any family of microcontrollers.

Of course none of this is rocket science, but if you’re trying to use one timer for two differently synchronized events this can save you a lot of trial and error time.

AVR Dragon Wiring Alternative

dragon_jumper_board

We love our AVR Dragon programmer. It is a small board with a lot of functionality: in-circuit serial programming, JTAG, debug wire, and high voltage serial programming. Unfortunately, out of the box it is not quite ready for action. The Dragon ships with an unpopulated prototyping area and missing a pin header for the HVSP. For most people this means soldering on pin headers and a ZIF socket then jumpering between the various programming headers and the header for the socket. Tired of working with jumper wires, [Jussi] designed a small PCB to make the connections (original link in Finnish). Continue reading “AVR Dragon Wiring Alternative”

RCDC: DC Motor Control Via Servo Signals

[youtube=http://www.youtube.com/watch?v=x2Hn8No5oFQ]

[Spikenzie]  has put together this nice kit for controlling a DC motor with RC servo signals. He’s using a PIC12F629 to convert the signal to PWM. As you can see in the video above, it seems to work quite well. It is in a neat and tidy package and available as a kit. We have to admit though, what caught our eye was the prototype. Even though it is a kit for sale, it looks as though they plan on releasing the PCB files and code.

Hacking USB Serial Port Adapters

keyspan_all (Custom)

The folks at Openschemes.com have written up an article on how to convert a USB serial port adapter to a low voltage serial interface for interfacing with microcontrollers. Though you can always just buy one, this is a fairly quick and cheap solution, especially if you are in a pinch or don’t have access to a retailer. The specific models you should watch for, are the ones with two chips, a microcontroller and a line translater.They go through the process of finding exactly where to patch in to add an extra interface. It only takes a couple wires and you are ready to go.

Not only can you use this as your serial connection to another microcontroller, but you can actually take control of the one on the board itself. If you load it with the drivers from TI, you gain access to the flash memory and can do whatever you want. They don’t go into much detail here though, stating that they’ll write another article on that.

We thought this little bugger looked familiar so we went digging through our archives.  Sure enough, we found this system in action back in January of 2008.

[via Hacked Gadgets]

USB Isolation

[Oleg] over at Circuits@Home has made a USB isolator for his hacking needs. This isolator separates the signal, ground, and power lines of a USB host device, such as a PC, from a USB device like a USB oscilloscope or logic analyzer. This might be useful for Keyboard sniffing, ECG, EEG or diagnosing the control system on the positive ground of your autonomous Ford 8N. What other applications can you come up with for this tool?

DIY Lincoln Welder Conversion

[youtube=http://www.youtube.com/watch?v=yabesdeGKJo]

[Fritz] built this 600 joule capacitive discharge spot welder in a case scavenged from a Lincoln plasma cutter. All of the circuitry was designed by [Fritz] and the schematics are available on his website. He has a few other welding related project also documented on his site that are worth checking out. While this isn’t the first homemade spot welder we have seen, it is definitely the first one with a case mod. If you are not up to the challenge of building one quite as complex as [Fritz]’s example, a microwave can be used as the donor appliance in simpler designs.