I am currently working on sensors and I'd like to read the sensor data into my Raspberry Pi.
However, I have some difficulties with the Waveshare High-Precision-Board which
I'm using. I just don't know how to import data and use it in Python. Do I have to work with SPI? My goal is to get the differential voltage between A0 and A1.
Here are some Information about the product...
SCHEMATIC: https://www.waveshare.com/w/upload/2/29/High-Precision-AD-DA-board.pdf
PRODUCT PAGE: https://www.waveshare.com/wiki/High-Precision_AD/DA_Board
USER MANUAL: https://www.waveshare.com/w/upload/b/b7/High-Precision-AD-DA-User-Manual.pdf
What i did:
First i had a programm from waveshare that enabled me to measure the volts from the ports A0-A7. The first programm didn't work quite right so i figured out that it might be measuring something else (maybe changing signals, mine was relatively steady). The second programm which waveshare provided was exactly what i wanted. It was essentially a Voltmeter between wire 1 and wire 2. The problem: it was written in C. I needed Python.
The sensor has 3 wires. 1 ground wire and 2 signal wires (1 positive, 1 negative voltage). I need a programm that shows me the potential between the 2 signal wires just like a voltmeter.
So to get this straight. I have to use spi.open(0,0), right?
Then i surely need a sample rate and something to define the bits (the board has 24 bits). To get access to A0 and A1 (Analog Input zero and one) is additional software required? Or is it something simple like the have a GPIO-number? I don't guess so but what do i know.