SmartLCD Makes Video For Microcontrollers Easy

[Rossum] developed a host board that makes it easy to drive a TFT screen using an inexpensive microcontroller. He’s looked around at a bunch of LCD’s that are easy to get your hands on and decided that the iPod Nano 2G screens are the right balance of performance (176×132 TFT) and low cost ($1-$5). They’re not particularly difficult to talk to, but with 22 pins they’re a bit hardware hungry.

He takes us through the signal sniffing he used to figure out the communications process. From there he harness the power of an ARM Cortex M0 processor, which he’s worked with in the past, to drive the screen. His implementation results in a driver board called the SmartLCD that takes care of the screen’s parallel protocol, power, and backlight. From there it’s just four connections and you can use a small microcontroller like the Arduino seen above with ease. See what it can do after the break.

Continue reading “SmartLCD Makes Video For Microcontrollers Easy” →

AVR Programming 04: Writing Code, Etc.

Welcome back to this fourth and final installment of the series. The first three parts should have been enough to get you off the ground, but a few more learning examples wouldn’t hurt. It’s also a good time to discuss some of the other things these little chips can do. Join me after the break to:

  • Expand the sample code, adding features to our simple program while I challenge you to write the code yourself.
  • Discuss AVR fuse bits, how to use them, and what to watch out for
  • Touch on some of the peripherals you’ll come across in these chips

As a grand flourish to the series, I’ve used the example hardware from this final part to build a bicycle tail light. Hopefully this will inspire you to create something much more clever.

Series roadmap:

Continue reading “AVR Programming 04: Writing Code, Etc.” →

Build Your Own SOIC Progamming Clip

[Pyra] was looking for a way to reprogram some ATtiny13 microcontrollers in a SOIC package. He’s re-engineering some consumer electronics so adding an ISP header to the design isn’t an option. He had been soldering wires to the legs of every chip but this is quite tedious. What he needs is an adapter that can make physical contact with the legs just long enough to program new firmware. After looking around he discovered that a PCI socket can be used as a progamming clip (translated). It shares the same pitch as a standard SOIC package but is not wide enough for the chip. He cut out 4 rows of the socket and the section of motherboard it was soldered to. Then he made a cut down the middle of the plastic and bent the two sections apart. The image above illustrates this, but not shown are the eight wires that he later added to connect to the device.

We wonder if this can be adapted to program SOIC parts without removing them from a circuit board. That would be a handy tool for finishing up the LED lightbulb hack.

Dungeon Crawler Game For IM-ME (and Linux)

[Joby Taffey] takes the prize for the first completed homebrew game for the IM-ME. Over the last few weeks we’ve seen [Travis Goodspeed] working with sprite graphics, and [Emmanuel Roussel] developing game music for the pink pager. But [Joby] didn’t really use either of those.

[Travis’] sprites were using a framebuffer that fills up a lot of valuable RAM. [Joby] decided to draw the room screens (all of them have been stitched together for the image above) as a one-time background image to keep the memory free. From there, the screen is updated in 8×8 blocks based on cursor movement. He also decided not to add music as he feels the high-pitched piezo is not capable making sound without driving everyone crazy.

Source code is available and for those of you who don’t own this pretty handheld, the game can also be compiled in Linux.

Moving A Resistor For EvalBot Power When Programming

[Riley Porter] posted a picture of his EvalBot USB power hack. In the photo above we’ve put a box around D6 and D7. The development board ships with a 0 Ohm resistor in the D7 location, patching in power from the USB-B connector labeled USB DEVICE. He found that by moving that resistor to D6 he can power the board from the USB-B connector labeled ICDI.

That connector is the In-Circuit Debug Interface. TI sent us an EvalBot bundle so we pulled it out and tried it ourselves. If you plug in the ICDI it doesn’t power the board, and no USB devices register. Shorting the D6 pads changes this and the following USB device registers:

Bus 002 Device 062: ID 0403:bcd9 Future Technology Devices International, Ltd Stellaris Evaluation Board

So it looks like you need to have two USB connections or be using batteries in order to program the board via USB. The uC/OS-III hardcover book that ships with the EvalBot bundle includes board schematics. We took a look and were surprised to see that they show diodes installed on both pads. Rev A of the online schematics have been corrected, showing an omitted diode on D6 and the 0 Ohm resistor on D7. Images of both schematics are included after the break.

It would have been nice to see a selector switch installed here to give you a little more flexibility when prototyping.

Continue reading “Moving A Resistor For EvalBot Power When Programming” →

Propeller And Machine Gun Timing

[Matt] was looking for a challenge. Inspired by the machine gun setups on World War I planes he wanted to make a gun that can shoot between the blades of a spinning propeller. The original guns used an interrupter gear that synchronized machine gun firing with the engine mechanically. [Matt] set out to do this using a microcontroller.

To make this work there are two important pieces of information; how fast is the propeller spinning right now, and how long does it take for the pellet to pass the blade? [Matt] used an oscilloscope and some infrared sensors to establish the firing delay at about 20-22ms. Another sensor shows the propeller is spinning at 500 RPMs, with some simple calculations showing that there is indeed a big enough window of time to fire between the blades. After testing with a visible LED and then building out the rest of the circuitry he accomplished his goal. He even added a test function that purposely hits the blades just to see how accurate the system was. We hope this shows up in a Red Baron RC replica, or other flying arsenal.

[via Hacked Gadgets]

Debounce Code – One Post To Rule Them All

Last month we asked you to send in your debounce code. You didn’t disappoint and it’s time to share the code received. There were some guideline for sending in code so if you don’t see yours here, it probably didn’t follow the rules, sorry. We also tried to weed out code that using delay loops for debounce. These tend to be a poor way to handle inputs because they monopolize the processor.

We wanted to add upvote/downvote buttons to each set of code to give some idea of a group consensus on code quality but there’s no good system available for multiple up/down vote widgets on one wordpress page. This results in a huge code dump for any one person to go through. If you’ve got any ideas on how to better organize this let us know: debounce@hackaday.com.

We make no guarantees that this code is safe to use, or that it even works. Test it carefully before using for important tasks.

Join us after the break for a whirlwind of code examples.

Continue reading “Debounce Code – One Post To Rule Them All” →