Society of Robots - Robot Forum

General Misc => Misc => Topic started by: mickey2203 on February 23, 2010, 08:47:43 AM

Title: a/d card interfaced to pc
Post 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
Title: Re: a/d card interfaced to pc
Post by: RobotBits on February 23, 2010, 09:48:06 AM
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)


Title: Re: a/d card interfaced to pc
Post by: Ro-Bot-X on February 23, 2010, 03:52:47 PM
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)
Title: Re: a/d card interfaced to pc
Post by: RobotBits on February 24, 2010, 02:58:34 AM
Even better - I didn't know that existed!
Title: Re: a/d card interfaced to pc
Post by: RobotBits on February 24, 2010, 03:03:39 AM
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)