Synchronisation of the reading of 2 ADS1299 by the Raspberry PI4
Ask QuestionAsked todayActive todayViewed 7 times0
I am using a python code for SPI communocation between 1 ADS1299 and Raspberry PI4(https://github.com/wjcroft/RaspberryPiADS1299/blob/master/RaspberryPiADS1299/ADS1299_API.py) but I want to read data from 2 ADS1299 in cascade mode that’s mean using 2 ADS1299 and reading data simultaneously.Each ADS1299 has it’s own cheap select but sharing the same MOSI and MISO and SCLK.Can anyone help le reading data from 2 ADS1299 by making modification in the library or the python code?
from RaspberryPiADS1299
import ADS1299_API
from time import time, sleep
# init ads api
ads = ADS1299_API()
# init device
ads.openDevice()
# attach default callback
ads.registerClient(DefaultCallback)
# configure ads
ads.configure(sampling_rate=1000)
print ("ADS1299 API test stream starting")
# begin test streaming
ads.startTestStream()
# begin EEG streaming
# ads.startEegStream()
# wait
sleep(10)
print ("ADS1299 API test stream stopping")
# stop device
ads.stopStream()
# clean up
ads.closeDevice()
sleep(1)
print ("Test Over")
pythonpi-4spianalog-to-digitalsystem-clockshareedit follow close 1flag asked 1 hour agosarra marmouche122 bronze badges New contributor
- 1There is no relevance to the Raspberry Pi. You are asking us to read the documentation/code of the
ADS1299_API
module, understand it, and change it to suit your needs. These are all things you need to have tried yourself. – joan 1 hour ago - Hi @sarra marmouche, Welcome and nice to meet you. Ah, let me see. So you wish to use Rpi4B to interface 2 ADS1299. I skimmed your python program and immediately noticed the first two lines: “(1) from RaspberryPiADS1299, (2) import ADS1299_API. I didn’t bother to read on, and immediately call my friend Google. GG found me the link in 01. seconds. I followed the link and found one and only one setup code, using my stupid human eye, in another 5 seconds, / to continues, … – tlfong01 36 mins ago
- Now the interesting links are: (1) wjcroft/RaspberryPiADS1299 github.com/wjcroft/RaspberryPiADS1299 (2) RaspberryPiADS1299/RaspberryPiADS1299/ADS1299_API.py / github.com/wjcroft/RaspberryPiADS1299/blob/master/…, / to continue, … – tlfong01 35 mins ago
- Now I have copied the complete listing of the ADS1299_API module to my penzu programming log to get started for a quick program analysis: (3) “ADS1299 Programming Notes V0.1“: penzu.com/p/4bd6c019. Please confirm (a) I am following your link correctly, and (b) You can read my Win 10 Chinese character version generated text file penzu diary without seeing any funny characters, before I move on. – tlfong01 20 mins ago
- Never heard of ADS1299, googled to know more: (4) ADS1299 24-Bit, ADC for EEG ti.com/lit/ds/symlink/… (5) AliExpress ADS1299EEGFE-PDK Kit – US$450 fr.aliexpress.com/item/…. Please confirm if you are playing this US$450 toy. I am feeling jealous! 🙂 – tlfong01 7 mins ago
- I am a poor hobbyist, though I also play with cheapie ECG stuff. I need to read my old post to refresh my memory. This question is closed. Please confirm if you can still read it:How can Rpi read data of a heart rate sensor module, such as AD8232? [closed] – rpise 2019may11 raspberrypi.stackexchange.com/questions/98416/… – tlfong01 51 secs ago Edit
Categories: Uncategorized