Pages: [1]   Go Down
Author Topic: Differential Sensing with Arduino  (Read 1224 times)
0 Members and 1 Guest are viewing this topic.
Yogyakarta, Indonesia
Offline Offline
Newbie
*
Karma: 0
Posts: 7
View Profile
WWW
 Bigger Bigger  Smaller Smaller  Reset Reset

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


* AnalogDiff.tar.gz (2.44 KB - downloaded 21 times.)

* adctable.png (19.52 KB, 811x529 - viewed 16 times.)

* sinewavesample.png (26.46 KB, 845x337 - viewed 30 times.)
« Last Edit: February 09, 2013, 12:01:35 am by afanasyevich » Logged

SE USA
Offline Offline
Faraday Member
**
Karma: 40
Posts: 3783
@ssh0le
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

that could come in handy
Logged


Global Moderator
Netherlands
Offline Offline
Shannon Member
*****
Karma: 170
Posts: 12483
In theory there is no difference between theory and practice, however in practice there are many...
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

Thanks for sharing!
Logged

Rob Tillaart

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

Offline Offline
Newbie
*
Karma: 0
Posts: 3
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

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

Offline Offline
Jr. Member
**
Karma: 0
Posts: 52
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

Seems not to work on the ATTiny84..?
Logged

Offline Offline
Newbie
*
Karma: 0
Posts: 4
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

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?
Logged

Offline Offline
Jr. Member
**
Karma: 0
Posts: 52
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

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.
Logged

Pages: [1]   Go Up
Jump to: