spade22
Newbie level 3
hey guys am using a PIC18f242 for my design,am having some difficulty in analog to digital conversion amd configuring the port itself
here is what is really want to achieve
am using an FSR sensor which will varry the voltage from 0-5v with respect to the varrying force imposed on the sensor,so i will be using a single analog input to the PIC,i want to condition the varrying voltage(which is the input to the pic) produced by the sensor such that e.g from 0v-2v a green led wil be switched on then 2.1v-3v a blue led and 3.1v-5v a yellow led should be on,am new to programming pics,and would like t\your help in C language because thats what i understand better
any kind of help will be appreciated>>>thanx
here is what is really want to achieve
am using an FSR sensor which will varry the voltage from 0-5v with respect to the varrying force imposed on the sensor,so i will be using a single analog input to the PIC,i want to condition the varrying voltage(which is the input to the pic) produced by the sensor such that e.g from 0v-2v a green led wil be switched on then 2.1v-3v a blue led and 3.1v-5v a yellow led should be on,am new to programming pics,and would like t\your help in C language because thats what i understand better
any kind of help will be appreciated>>>thanx