Spam (madbodger) wrote,

  • Mood:
  • Music:
I now have two-way communication with my USB widget!

The good folks at FTDI make a handy single-chip USB interface, and offer royalty-free drivers for a bunch of different systems. But it’s tricky playing with surface mount parts without custom boards, so the guys at DLP Design offer the FTDI chip on a little DIP pattern carrier board along with its support logic. That means I can stick a USB interface onto something I slapped together on a protoboard! So I bought one from Mouser and tried hooking it to an AVR microcontroller. It turns out that it was basically working from the get-go, except for two problems. One was that I wasn’t using the supplied driver, and for some reason, libusb can write and send control messages, but for some reason can’t read data back. The other problem is that the AVR gcc port has some sort of problem iterating through string pointers. But I tweaked the code and used the driver, and I now have two-way communication with my microcontroller! Now to reflash the EEPROM, so the USB device identifies itself as mine!

The ribbon cable lets me reprogram the AVR without unplugging it — fizzygeek thought it was a good idea. She was right.


  • Turntable reminiscences

    My first record player was a cheap red and white plastic affair with which I could play my stack of bright yellow 78s. It was the kind that had a…

  • Fixing a Kodak Carousel slide projector

    I was going through old family slides with the old family slide projector and noticed the focus motor was running continuously. I did some quick…

  • Old-style Polaroid photography

    One day, fizzgig and I were shopping at a knickknack store and found chromed resin casts of old cameræ. We remarked how they would fit our…

  • Post a new comment


    Anonymous comments are disabled in this journal

    default userpic

    Your reply will be screened