OpenWrt Forum Archive

Topic: Analog to USB converter

The content of this topic has been archived on 21 Apr 2018. There are no obvious gaps in this topic, but there may still be some posts missing at the end.

Hello,

I'd like to log analog values (at least 4 channels) with my router. Do anybody know a hardware which can be connected to the USB port?

Thanks

What did you exactly mean by analog?

I'd like to measure every one minute four analog DC voltages in the range of 0V ... 3.3V (or 5V) with 10bit resolution.

Then, I believe you need an Analog-to-Digital (A/D) converter that can plug into a USB (or a serial port).

(Last edited by mazilo on 24 Sep 2011, 03:45)

Yes thats right. In the meantime I found the following Analog2USB converter: xxxxx-HID
Link: http://1010.co.uk/avrhid.html

That is exactly what I need. The problem is now that I need a program running on my openwrt router to catch the data. On the xxxxx-HID homepage is one program mentioned which reads the analog channels --> hidtool
But up to now I didn't get it cross-compiled. I get errors that e.g. lo/lo.h and usb.h is missing.

Compiling for Ubuntu works fine.

The discussion might have continued from here.