USB Keyboard Becomes An AVR Programmer

[Steve] created an AVR programmer using an old USB keyboard. We feature a bunch of AVR programmers, but this one is made from parts that many people will have lying around. There are two components: the controller PCB from a USB keyboard, and an optocoupler for emulating key presses.

In order to send data to the AVR, [Steve] used the LED outputs on the keyboard. These LEDs can easily be toggled according to the HID device specification. They provide a 5 volt output with current limiting resistors, which means they can be connected directly to the target AVR.

Reading data is a bit more complex. The optocoupler tricks the keyboard into believing that a single key has been pressed, firing off a data transfer. The MISO pin on the AVR is connected to the row and column of the shift key, which is read by the driver.

On the software side [Steve] created an avrdude interface driver. This allows the programmer to be used with avrdude, just like any other programmer. [Steve] does point out that it isn’t the fastest programmer since the keyboard tries to debounce the MISO input, greatly limiting the speed. However, since it’s made from stuff you might have in your junk bin, it’s a neat hack.

MSP430 Launchpad Game Of Life Shield

[100uf] built an LED matrix shield for the MSP430 launchpad. His goal with this design was to have it play Conway’s Game of Life. It does just that, as you can see in the clip after the break. But it’s just waiting to learn some more tricks. After he tires of watching the cellular automaton he can try his hand at making some LED pendant animations.

As you can tell, the board was made in his home workshop. It’s not etched, but milled using the CNC machine shown in this image gallery. This is a single-sided PCB, which works well enough for the surface mount components and the downward facing pin sockets. But we wonder how difficult it was to solder the legs of that 8×8 LED matrix. It does have plastic feet at each corner that serve as standoffs to separate the body from the copper layer. But it still looks like a tight space into which he needed to get his iron and some solder.

Continue reading “MSP430 Launchpad Game Of Life Shield” →

AVR Minecraft Server Lets You Toggle Pins From The Virtual World

Wanting to test his skills by building a webserver [Cnlohr] decided to also code a Minecraft server which allows him to toggle pins from inside the game. The rows of switches seen above give him direct access to the direction register and I/O pins of one port of the ATmega328.

The server hardware is shown in the image above. It’s hard to tell just from that image, but it’s actually a glass substrate which is [Cnlohr’s] specialty. He uses an ENC424J600 to handle the networking side of things. This chip costs almost twice as much as the microcontroller next to it. But even in single quantities the BOM came in at under $20 for the entire build.

In the video after the break [Cnlohr] and a friend demonstrate the ability for multiple users to log into the Minecraft world. The simulation is fairly bare-bones, but the ability to affect hardware from the game world is more exciting than just pushing 1s and 0s through some twisted pairs.

Continue reading “AVR Minecraft Server Lets You Toggle Pins From The Virtual World” →

In-depth Comparison At STM32 F3 And F4 Discovery Boards

The STM32 F3 and F4 Discovery boards have been around for a while now. We’ve looked at both separately and they’re impressive dev boards for the price. Now can get a closer look at each from this in-depth comparison of the two Cortex-M4 development tools.

To start off, both of the boards have the same size and footprint (there are two dual-row pin headers which break out the connections to the ARM chip). Fundamentally the F3 and F4 chips have a different level of features, but the boards themselves are aimed at different applications as well. The F3 series of microcontrollers looks to be more affordable than the F4, containing less program memory, no Ethernet capability, and only one USB port. But both have hardware floating-point abilities and they’re blazing fast. The boards offer a MEMS accelerometer for prototyping. But the Discovery-F3 also contains a gyroscope while the Discovery-F4 provides audio hardware like a microphone, and DAC.

If you want to use a Linux box to develop with these tools you might find this guide helpful.

Variometer Build For Gliding Aircraft

If you’re flying through the air in a non-powered vehicle your rate of descent is something that you want to keep any eye one. With that in mind, [Adrian] decided to design his own Variometer (translated) what will have a place in the cockpit next to the other instrumentation. It emits a pitch whose frequency is dictated by the rate at which altitude is being lost or gained.

He went with a PIC 24FJ64 microcontroller to drive the device. It’s reading data from an MS5611 barometric pressure sensor. This measures changes in air pressure associated with a change in altitude. As a user interface he chose one of SparkFun’s Nokia 5110 LCD screen breakout boards. He also went with one of their boost converts which lets him power the device from just one battery cell. The case itself is cut from several layers of plastic using a CNC mill.

In the video after the break you can see how sensitive the device is. Moving it just a few feet up or down has an immediate effect on the sound and the displayed data.

Continue reading “Variometer Build For Gliding Aircraft” →

SquareWear Sewable Microcontroller Board

If you’re into adding electronics to your wearable items this little board will be of interest. The 1.6″x1.6″ board is called SquareWear and comes in several different flavors.

It may be a bit of a surprise that this is not an Arduino compatible board. [Ray] tried a few projects with PIC microcontrollers and ended up really liking them. He chose to go with the PIC 18F14K50 for this project. The chip has USB functionality and is running a bootloader. He thinks this makes it easier to work with over a wide range of computers than the Lilypad (a sewable Arduino compatible board which sometimes runs into FTDI driver issues the first time you try to program it).

We like the fact that it is open source. As we mentioned earlier, it comes in a few different flavors. There is a red or white version that uses a LiPo battery, and one that is driven from a CR2032 coin cell. If you’re working on a small project to which you would like to add a rechargeable battery this will serve as a cheap and easy reference design.

[via Adafruit]

Put Your Dev Board To Work As A Demoscene Display

If you’re looking for a way to push your comfort zone with that slick new microcontroller you’ve been working with we think [Morgan Gangwere] has the answer. He took his chipKit development board and used it as a demoscene platform.

Demoscene refers to audio and visual demos written to squeeze as much entertainment out of a given platform as possible. We’ve seen demos for a lot of different platforms; for instance, here’s a Propeller chip demo. But this use of the onboard OLED screen brings a smile to our faces. With well under 100 lines of code [Morgan] implemented several different video effects (the music heard in the clip after the break is not being produced by the board). There is a star field which serves as the background. Over the top of it a scrolling message is displayed following a sine wave shape. The speed at which it scrolls is set by the trimpot, which you can see adjusted about 50 seconds into the clip.

Continue reading “Put Your Dev Board To Work As A Demoscene Display” →