Hein (fub) wrote,

  • Mood:

'Native' USB

As I reported earlier, I have been working with the FT232-chips from FTDI. (As an aside, I wish I had thought of the name 'Future Technology Devices' as the name of my company!)

There are drivers for these chips to create a virtual COM port: your software talks to the newly appeared COM port, the driver translates this into USB-data and the chip translates this back to TTL-level RS232.
However, it is not as elegant, and the user can always select a different COM port in your software's settings -- one that might not be the right one. Wouldn't it be much cooler if you simply could plug in your USB-enabled device, the 'found new hardware'-dialog told you that it is a 'CreaCon Widget', no extra COM port, and the software automatically picks up on it?

This is possible with the D2XX direct drivers -- with a few simple API calls, you can send bytes to the chip (via USB, obviously) which then translates this into TTL-level RS232. Which means no more virtual COM ports, auto-detect of the device, and all sorts of neat tricks.
I found some good sample code, and I will develop this further for use in my MaxPWM kit, which will allow you to program the color cycles and/or command the module directly through USB.
Tags: electronics

  • Friday Five & GenX

    What toys were popular when you were a kid? This was the height of the 80’s, the time of cartoons on TV pushing toys. They were expensive…

  • Small update

    Wow, I haven’t posted in over a month here. And yet I still don’t feel like I have much to say. Let’s see… – The…

  • Mock Chicken

    The Judge Dredd comics are an interesting artefact of the 1980s: it’s what British comic writers thought how the US urban landscape would…

  • Post a new comment


    Anonymous comments are disabled in this journal

    default userpic

    Your reply will be screened

    Your IP address will be recorded 

  • 1 comment