Society of Robots - Robot Forum
General Misc => Misc => Topic started by: mickey2203 on February 23, 2010, 08:47:43 AM
-
it will use internal ADC chip of an Atmega8L
micro-controller. A PC would be interfaced via USB for controlling the ADC
card (At-mega + ADC chip) as well as collecting the data. i need a c code for controlling parameters of ADC chip
if anybody could help, plz
i need an urgent help
thanks in advance
-
Mickey, you didn't say what ADC resolution you need?
One easy option could be to use an Arduino (which has an integrated 10-bit ADC) to take the analog measurements. You can then write some code (Arduino code and PC code) to get the PC to communicate with Arduino over it's USB port to start measurements and return results.
The Arduinos programming application has a built in "serial monitor" to get you started but you can write the PCs code in any language you're comfortable with - just treat the USB link to Arduino as a standard serial port.
For more information check out: http://www.arduino.cc/en/Guide/Environment#serialmonitor (http://www.arduino.cc/en/Guide/Environment#serialmonitor)
-
Perhaps you can use the SoR scope with the ATmega8. Read this: http://www.societyofrobots.com/robotforum/index.php?topic=10218.0 (http://www.societyofrobots.com/robotforum/index.php?topic=10218.0)
-
Even better - I didn't know that existed!
-
To prove you really do "learn something new every day" - I've just discovered that there is also an Arduino scope as well.
In case it's useful, here's the link: http://accrochages.drone.ws/en/node/90 (http://accrochages.drone.ws/en/node/90)