scherbakov.al
Time has shown that the ability to calibrate sensors is an important and necessary function. It turned out that there are digital resistors. (Mcp4351). I learned about them recently. I decided to try to add them to the existing circuit. I assume that adding these digital resistors would add 3 more (maybe 4) communication lines from the central controller to the boards with sensors. They are controlled via SPI. There are options for i2c control, there is an option with memory and without. I learned to control resistors, it is not difficult. I sketched out a circuit and sat down to redo the board layout.
But it turned out that some stm32 can contain a comparator. For some reason, I did not pay attention to this before. I searched and found stm32g473, which have 7 comparators and 7 DACs on board. It seems that the DACs can be used to set the comparator response point programmatically. Now I'm waiting for several stm32g473 for training and testing. I'm also interested in the analog multiplexer. But not ch238(It turned out that it connects one channel into many, but SN74LV4051). I tested its operation at a speed of 1 MHz. (Switching channels with a frequency of 8 MHz and running the entire circle for ~ 1us) and the result does not satisfy me yet.
At such a speed, the channels influence each other too much. I will come up with some other connection scheme and test. This is exactly the scanning speed I would like to achieve (it would be 3 times faster than the option with shift registers). If it worked out, it would be nice.
@DavisB - what if you switch to USB 3? It supports power supply up to 3 amperes.











