Go Down

Topic: Differential Sensing with Arduino (Read 2070 times) previous topic - next topic

Feb 09, 2013, 05:56 am Last Edit: Feb 09, 2013, 06:01 am by afanasyevich Reason: 1
I've been making enable differential input (and also gain enable) on Arduino ADC by add wiring_differential.c into arduino library. I try to recording sinewave with 2 V amplitude (generate from signal generator) without DC offset. It looks like this while i graph it on spreadshet,


Download library and sample from here: http://sekarlangit.com/wp-content/uploads/2013/02/AnalogDiff.tar.gz. Else, download from attachment.

I wrote complete post about this differential input but may it goes wrong for the table (please correct me). Here: http://sekarlangit.com/arduino-differential-gain.php


Osgeld

http://arduino.cc/forum/index.php?action=unread;boards=2,3,4,5,67,6,7,8,9,10,11,66,12,13,15,14,16,17,18,19,20,21,22,23,24,25,26,27,28,29,30,86,87,89,1;ALL

robtillaart

Rob Tillaart

Nederlandse sectie - http://arduino.cc/forum/index.php/board,77.0.html -
(Please do not PM for private consultancy)

DaveX

Do analogReadDiff(1,9) and analogReadGain(0,4,8,10,12,14) all measure zero since their V+ and V- are identical?

Elijahg

Seems not to work on the ATTiny84..?

rtyson

For some reason the page's information for those library links are not working. Is there any possibility that I could get that library another way?

Elijahg


For some reason the page's information for those library links are not working. Is there any possibility that I could get that library another way?


I ended up manipulating the ADC register manually as this library didn't work for the Tiny 84, though you have to ensure you do everything in the right order, including waiting a while after enabling the ADC/changing some bits for it to stabilise. It's not too difficult though.

Go Up
 


Please enter a valid email to subscribe

Confirm your email address

We need to confirm your email address.
To complete the subscription, please click the link in the email we just sent you.

Thank you for subscribing!

Arduino
via Egeo 16
Torino, 10131
Italy