Page 1 of 1

read position of a potentiometer via USB

Posted: Sun Jul 28, 2013 1:17 pm
by cpc737
Hi,
I want to use an Atmega to read the position of a potentiometer via USB.

What is the smallest Atmega I can use for this task?

Annotation: I know it is possible using one atmega8(with integrated rs232) in conjunction with
one FTDI(usb2serialConverter) but because there are 2 chips instead of one
the current consumption is double. So I want to use ONE chip only if it's possible.

Re: read position of a potentiometer via USB

Posted: Sun Jul 28, 2013 2:00 pm
by vouvoume
Hi
I recommend ATmega8 - it is very cheap, easy to get, hast enough resources and will do the job fine. (Of course without FTDI).

Perhaps you may want to take a look into http://matrixstorm.com/avr/tinyusbboard/

You can directly utilize V-USB to transmit your poti-data to your host computer.
(There is also an example "VUSB skeleton/example ..." for such porposes:
http://matrixstorm.com/avr/tinyusbboard/#examples )

Do not use the VUSB CDC implementation since it will not work relieable.

Best regards,