In this publication we will see another example of the 12-bit ADC, we will use the potentiometer of this board , on the screen we will show the ADC bits and the corresponding voltage.



Firmware:

The first task was to get a function to move from floating to array, i used the InDevice version, I have added those functions to a couple of files, called special.h and special.c, that will be where you have some common functions for MSPs and it is easier to add them to our projects.

The code that makes this possible:



Here is a photo showing the voltage measured with a multimeter:

Video:

Here a small video of the working temperature sensor.

Download:

GitHub, if you do not know how to download it you can check Here the direct link to DOWNLOAD the available files, you can also check or download the information from my repository on, if you do not know how to download it you can check here , well for now it's all, if you have doubts, comments, suggestions, concerns, etc. leave them and I will try to answer as soon as possible.

Bibliography: