thomasdanz
Posts: 2
Joined: Sat Jun 16, 2018 10:38 pm

High-Precision AD/DA Board + Raspberry PI3

Sat Jun 16, 2018 11:06 pm

Hello guys, i want to use this analog-digital board to convert analog signals from soil moisture sensor to digital and
concume it in my nodejs script.
  1. Sensor: https://www.dfrobot.com/product-1385.html
  2. ADC board: https://www.waveshare.com/w/upload/b/b7 ... Manual.pdf
  3. Raspberry Pi3
So my problem is next: i inserted extension board on top of Raspberry and installed library as
explained in user manual but executing test code
returns next:

Code: Select all

ADS1256_WaitDRDY() Time Out ...
ID=
Error, ASD1256 Chip ID = 0x0
ADS1256_WaitDRDY() Time Out ...
I think Chip ID must be assigned to some address, so having that in 0x0 makes test fail.
Also i have a little experience with sensor ( before i've used digital only) so in general don't understand where from i should read
converted signal, given that i connect sensor to VCC, GND and AD0 on left side of extension board.
Can someone help me out please?

Idahowalker
Posts: 239
Joined: Wed Jan 03, 2018 5:43 pm

Re: High-Precision AD/DA Board + Raspberry PI3

Sun Jun 17, 2018 4:42 pm

Is the chip an I2C or a SPI bus chip?

Have you did a google search on enabling the I2C or SPI bus on a Raspberry Pi and followed the instructions to enable I2C or SPI?

Have you set the address, if needed, of the Analog to Digital converter module?

It might behoove you to write down, say the I2C, address in use before plugging the A to D converter into the RPi. That way you can note the address in use and note the new address that shows up with the addition of the A to D or, if no new address shows up, know there might be a conflicting device on the bus.
Being a programmer: She says go to the store get 1 bottle of milk, if they have eggs bring back 6. She gets mad cause I brought back 6 bottles of milk.

thomasdanz
Posts: 2
Joined: Sat Jun 16, 2018 10:38 pm

Re: High-Precision AD/DA Board + Raspberry PI3

Sun Jun 17, 2018 6:40 pm

1) In Features section of manual it says that chip is ADS1256
which googles to this from here i can say that chip is SPI.
2) To enable SPI interface, as i'm using dietpi distro i edited a

Code: Select all

/DietPi/config.txt
with this and rebooted.

Code: Select all

#-------spi-------------
dtparam=spi=on
3) Executed lsmod

Code: Select all

lsmod | grep spi
spidev                 16384  0
spi_bcm2835            16384  0
4) executed test from as i've mentioned in first post but still no avail

Return to “Automation, sensing and robotics”

Who is online

Users browsing this forum: No registered users and 14 guests