Hi there I have a question related to the Pot command (I am using a 16F628 and PicBasic Pro). I am trying to compare the light intensities of four light sensors (4 infrared leds as sensors) . When these infrared leds are exposed directly to the sun light they put out about one volt dc. To be able to compare these voltages I am using the Pot cmd. I know that the Pot cmd is used to measure resistance not voltage but if the voltage applied to the R/C network varies the resistance will also varies accordingly to that voltage. I have read in a book that the voltage supplied by the Pot cmd. to the R/C network could be internal or external. The problem here is that if I feed an external voltage (one volt dc coming from the leds) to that circuit how can I make the Pot cmd send a 0 instead of a 1 before it reads the pin port again. In other words, the Pot cmd feeds it’s R/C network sending a 1 and then it reads the port to measure the time the cap took to fully charge. In my case I am sending the 1 from the leds. Do you know how make the Pot cmd send a 0 instead of a 1 or do you have a better idea? Thanks.
Bookmarks