Simple PWM-USB adapter

Thread Starter

pcfist

Joined Oct 2, 2013
2
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?
 

ErnieM

Joined Apr 24, 2011
8,415
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.
 

Thread Starter

pcfist

Joined Oct 2, 2013
2
If this was my problem I'd toss a Microchip PIC at it, programmed as a serial port device (CDC class).
Thanks for your suggestion, heard a lot about PIC but have no experience with it. Looks like a good option to me.

What is the frequency of the PWM signal?
At what resolution of duty cycle to you want (need) to measure?
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.
 
Top