I would like to use the AD5940 chip with a custom design in order to provide pH measures on water. To achieve this, I ported the ad5940lib to our MCU to communicate with the chip through SPI and I successfully run the examples on the ad5940-examples repository.
To evaluate the capability of the AD5940 chip to perform pH measures, I previously tested the EVAL-CN0428-EBZ board with the "Water Quality" example and I obtained satisfactory results.
Now, I would like to port this example to our platform with the AD5940 chip (preferably using the ad5940lib) but I found some difficulties in this process, in particular:
Is there any possibility to get the pH measure example ported to the ad5940lib? If not, do you suggest to implement the application using the ad5940lib anyway or do you think there is a simpler approach to get the example work?
I might be able to give you a partial answer here and someone else might be able to add if they have additional experience. I was a designer on the CN0428. I haven't ported the CN0428 to AD5940, but if all you need is the pH measurement piece of it, I think it should translate pretty easily just by matching the ADC configuration. I think the best starting point is probably ad5940_ADCMeanFIFO.
To break the CN0428 measurement routine down into steps:
Sorry if this isn't the ideal answer. But I hope it helps.
Thank you very much for the quick feedback.
I will give a try following your hits!