Hi i have fabricated a six-axis force/torque sensor using strain gauges and for data acquisition process i used AD7794 ADC in order to read all six channel each related to a Wheatstone bridge of my strain gauges.
I have a BIG problem and i need to fix it. I have created a PCB already and installed it on my sensor i use STM32 as my microcontroller and i use Keil IDE for programing and changing the hardware is not an option for me.
I know that AD7794 does not have a auto switching mode for reading all channels. Therefore i try to switch channels in the STM32 programming code but the problem is that reading all channels takes so much time and i believe it is because of my programming. It takes approximately 1.2 seconds to read all channels and this is very slow for what i plan to do.
In the datasheet it says the maximum sampling speed is 470Hz but clearly i am reading all channels much slower. Can someone tell me how to fix my issue?
I need to read all channels as fast as possible and show them on the output (i use UART).
Can someone tell me how to fix my problem and what code should i write and how i configure it ?(changing the hardware and the circuits is not an option because the PCB is already fabricated and is not changeable)
Thanks.