This thread has been locked.

If you have a related question, please click the "Ask a related question" button in the top right corner. The newly created question will be automatically linked to this question.

ADS124S08: Linux driver & example code

Part Number: ADS124S08
Other Parts Discussed in Thread: ADS1261,

I am looking at the ADS124S08 or the ADS1261 as alternatives to an AD7124.

I would like to interface either ADC to a Raspberry PI (or similar) board.

Is there a guide and examples on using the Linux drivers to take measurements?

I see the driver takes care of the lower level reads and writes. I am comfortable building the register data to configure the ADC, which is highly dependent on the part number.

Thank you for your help.

Christian.

  • Hi Christian,

    The only example for Linux that I am aware of is for the ADS124S08:

    https://github.com/torvalds/linux/blob/master/drivers/iio/adc/ti-ads124s08.c

    There are a number of similarities between the ADS1261 and the ADS124S08, so it may be possible to modify the ADS124S08 code.  Unfortunately there is no specific guide on the usage as there are so many different types of sensor measurements that can be made using these ADCs.

    If you are attempting a temperature sensor measurement, we do have a temperature sensing C library that can help with configuration steps and processing of data.  We also have A Basic Guide to RTD Measurements and A Basic Guide to Thermocouple Measurements that may also be helpful.

    Best regards,

    Bob B

  • Bob, thank you for the prompt response.

    I should have explained it better. I was looking for a guide to use the driver, without the specifics of the ADC. I am not a programmer so I sometimes miss that little step that makes the whole chain work in Linux.

    In my particular case, do you have any suggestions on how to load the driver?

    Is there a module to load or do I have to compile the kernel?

    I am trying to avoid interfacing the ADC to an STM32 since I have the libraries to acquire and process acceleration available for Linux. I have an AD7124 prototype working with an STM32 for now (not ideal)  and I would also like to have a TI alternative before I test them in a real application. The RTDs are inside a motor and they pickup a lot of switching noise from the VFD.

    The C library and  the multitude of application notes from TI helped. That's why I feel comfortable programming the ADC registers but I am missing the link between my code and the driver in Linux.

    I apologize if I am using the wrong terminology.

    Bob, thanks again for all the info that you pour in this forum.

    Regards,

  • Hi Christian,

    Unfortunately I am not aware of a procedural guide when using Linux drivers in an application.  That question may be better asked within the Linux community.

    Best regards,

    Bob B

  • I will read more about the subject.

    Thank you for your help