HI all
I wanna to measure an input voltage from -5V to +5V via ATmega8
how can I use USB connection for that?
the output goes to PC via USB connector
and what is the circuit for this project?
the first thing is that to measure +/-5V you need a +/-5V supply, so you will need some chip to make the negative rail. Then you need to feed your measured voltage into opamp to translate it into the 0-5V range that the micro can measure.
For that solution I would take a FT232 Chip. That's a USB to serial bridge.
PC drivers are availible at the FTDI Homepage ( VCP Driver ).
At Controller side You can use the Integrated USART. That will make the programming and communication easy.