read position of a potentiometer via USB

General discussions about V-USB, our firmware-only implementation of a low speed USB device on Atmel's AVR microcontrollers
Post Reply
cpc737
Posts: 3
Joined: Sun Jul 28, 2013 1:12 pm

read position of a potentiometer via USB

Post by cpc737 » Sun Jul 28, 2013 1:17 pm

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.

vouvoume

Re: read position of a potentiometer via USB

Post by vouvoume » Sun Jul 28, 2013 2:00 pm

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,

Post Reply