SparkFun Forums 

Where electronics enthusiasts find answers.

Your source for all things Atmel.
#95764
I'm trying to perform acquisition of very small analog signals. I have been using an instrumentation amplifier with a gain of ~500, but I would like to try using the differential gain on the ATmega1280's analog inputs. The user manual has a table (Table 26-4, to be precise) with details on how to set the register ADCSRB for a particular choice of single-ended input or pairs of differential inputs, optionally with gain.

Normally, to perform ADC on the Arduino, I write:
Code: Select all
reading = analogRead(analogPin);
but this is for a single-ended input.

My question is: how do I perform differential amplification and conversion within the Arduino language?
#98648
Hmm, I'm surprised there isn't already a library for using the 1280's serial ports - I didn't realize they had an opamp built in! I'd grab the analogRead code from the Arduino source, and just set custom values for ADMUX and ADCSRB.
long long title how many chars? lets see 123 ok more? yes 60

We have created lots of YouTube videos just so you can achieve [...]

Another post test yes yes yes or no, maybe ni? :-/

The best flat phpBB theme around. Period. Fine craftmanship and [...]

Do you need a super MOD? Well here it is. chew on this

All you need is right here. Content tag, SEO, listing, Pizza and spaghetti [...]

Lasagna on me this time ok? I got plenty of cash

this should be fantastic. but what about links,images, bbcodes etc etc? [...]