measuring voltage across potentiometer

Tip / Sign in to post questions, reply, level up, and achieve exciting badges. Know more

cross mob
Anonymous
Not applicable

hello I am trying to meassure voltage across potentiometer how ever i get the wrong voltage (and get even negetiv Voltage ) that displayes on the LCD , here is the code and top design :

top_desigb_ADC.pngmain_code_ADC.png

any ideas why am i getting the wrong voltage ?

0 Likes
1 Solution

Find on the forum about sprintf and heap size for it

#include <stdlib.h>

float result;

char string[16];

..........

sprintf(string, "%f\r\n", result);

View solution in original post

0 Likes
23 Replies