Simple PWM-USB adapter

Discussion in 'The Projects Forum' started by pcfist, Oct 2, 2013.

  1. pcfist

    Thread Starter New Member

    Oct 2, 2013
    2
    0
    Hi guys!
    I'm looking for simple solution for a PWM to USB converter, going to use it to get readings from some sensors with PWM interface. I have experience in low-level USB driver programming, so I'm ready to write a driver/firmware for the adapter if needed.
    Can you recommend any hardware I can use for this?
     
  2. ErnieM

    AAC Fanatic!

    Apr 24, 2011
    7,386
    1,605
    If this was my problem I'd toss a Microchip PIC at it, programmed as a serial port device (CDC class). MC has free code examples that can be simple adapted to read the pulse info and then send it back out the USB.

    Lots of other processors could do this too, I'm just familiar with these.

    I don't know of anything else off the shelf.
     
  3. GopherT

    AAC Fanatic!

    Nov 23, 2012
    6,010
    3,785
    What is the frequency of the PWM signal?
    At what resolution of duty cycle to you want (need) to measure?
     
  4. pcfist

    Thread Starter New Member

    Oct 2, 2013
    2
    0
    Thanks for your suggestion, heard a lot about PIC but have no experience with it. Looks like a good option to me.

    Honestly I don't know because the datasheet does not say anything about frequency (directly at least). There is a sample of how to use this sensor with Arduino and Grove Base Shield, but it doesn't mention frequency too.
     
Loading...