How to use AD7706 and/or AD7714 - Raspberry Pi Forums


dear all,

trying read analog signals adcs, namely ad7706 or ad7714 (preferably).

checked libraries have not achieved sensible output yet.

after googling, have come across code ad7705 (quite similar module ad7706), please see below link:

https://github.com/glasgow-bio/rpi_ad7705_test_software

using code, able communicate ad7706 through spi (i getting data , data no more if disconnect data line). however, responses kind of 'giberish'. having said although changing analog input signal 5v gnd output stucked around -32768 noisy behavior. expecting value -32768 gnd , 32767 5v (ref voltage of adc 5v).

there 2 differences between code's setup vs mine:

- code designed 5 mhz external clock while using 2.4mhz.
- code used rpi - 1 while using rpi - 3.

ideas on this? or have running version of ad7706 and/or ad7714.

edit: i see following statement link above code using rpi clock. question how can switch external clock or edit code such compatible rpi3?

statament above link:

"this program switches on clock rpi, triggers calibration of ad, reads data channel 1 , prints on screen."


update: see issue can related compile problem try compile code gcc function (i using 'make'), got following error:
"undefined reference `gz_clock_ena'"

thought if work compile gz.clk.c gcc. time got couple of "undefined reference bcm2835" errors. have bcm2835 library, however, there kind of linker problem. not sure how solve though.


thanks.



raspberrypi



Comments

Popular posts from this blog

Error: ‘for’ loop initial declarations are only allowed in C99 or C11 mode - Raspberry Pi Forums

class MPU6050 has no member named begin

missing filename after '-o'