2022-01-17 11:47 PM
Hello everyone!
Do you guys know how one can establish a connection b/w STM32H7A3ZIQ and a potentiometer X9C103s?
Do I need to include a new library for that in the main body of the program? if so, how?
Are there any resources I may utilize to establish such a connection?
BR,
2022-01-18 01:02 AM
The X9C103S is a simple digital potentiometer that requires no special connection. Only a few GPIOs are needed, which you "press" instead of a button and thus:
Yes, you can even find Arduino libraries for this, but it's so simple that you can write it yourself with just a few lines.
<edit>I forgot to point out that the digital potentiometer is operated with 5V. So you have to take 5V-tolerant pins on the STM32H7A3 and operate them with open-drain and external pull-up.</edit>
Good luck!
Regards
/Peter
2022-01-18 03:02 AM
Hello Peter!
Many thanks for your reply.
Let me see how to translate this into logic. (I'm still a rookie in programming and in using STM32)
What is meant by saying, 5V tolerant pins?
BR,
2022-01-18 04:14 AM
> What is meant by saying, 5V tolerant pins?
Those, which are marked as FT (FT_***) in the pin definition table in datasheet.
But the input levels of X9C103S are TTL-compatible (2.0V/0.8V), they will work with the TC pins of STM32, too, as long as VDD of STM32 is 2.7V and higher.
JW