Posts

Showing posts from January, 2020

Data collection from ADS1298

To collect data from ADS1298 the previous setup will be used. Data will be formatted. What is received from ADS1298: 3 bytes status + 8 groups of 3 bytes (for each channel). Because value of each channel is 24-bit it will be manipulated to fit into 32-bit integer value. Again, you need CLK and SCLK clock (both) to establish communication between RPi and ADS1298. For plotting purposes first column of data will contain time stamps. /* * Code to perform communication with ADS1298 * * ads1_1 - basic communication established. ADS gives an answer to Raspberry Pi B through SPI bus. * ads1.3 - read device signature, reset introduced, basic initial settings, generating test signal and printf of one channel and one value * ads1.4 - preparation for pipeing to continously give one channel value out * * ads2.0 - seperated files, 'manual' control for /CS chip * ads2.1 - output now: saving to file (to allow use with kst2 - fast plotting program) * ads2.2 - time stamps *