hi yall. Im new on electronics and i'm doing a project. About getting a signal through a potentiometer puting it through pic16f877 and then depending on what results i get from the adc display a number from 0-6 on the 7segment led display.
Now i have as much as the 6 diferent voltages that i will receive from the potentiometer which are:
no== voltage
--------------------------------
1 == 0.06v
2 == 0.08v
3 == 0.10v
4 == 0.13v
5 == 0.16v
6 == 0.17v
0 == 4.97v
I have general idea about what the circuit will look like. i will post it as soon as i have it finished
Now my big problem is about the adc i think that if i use 8 bit convertion i will get resolution 0-255
with that i will have problem on assigning the 5th and the 6th number because they both fall in number 8.
also if anyone knows of a similar project please give me some help.
i will use mplab ccs compiler for the programming.
thnx in advance for any help.
Now i have as much as the 6 diferent voltages that i will receive from the potentiometer which are:
no== voltage
--------------------------------
1 == 0.06v
2 == 0.08v
3 == 0.10v
4 == 0.13v
5 == 0.16v
6 == 0.17v
0 == 4.97v
I have general idea about what the circuit will look like. i will post it as soon as i have it finished
Now my big problem is about the adc i think that if i use 8 bit convertion i will get resolution 0-255
with that i will have problem on assigning the 5th and the 6th number because they both fall in number 8.
also if anyone knows of a similar project please give me some help.
i will use mplab ccs compiler for the programming.
thnx in advance for any help.