My group has decided to use the above mentioned sensor for a path following vehicle.
I am having difficulty trying to figure out how to use the sensors as an input by charging all of them up and discharging them using the same 8 pins from the micro controller I am using.
From what I’ve read is that I would need to charge the capacitors up and then calculate the time they take to discharge and accordingly i’ll know whether the sensors are detecting a white line or the black road.
I wanted to know:
-
How do I charge the capacitors for let’s say 10ms without using extra pins from the micro controller?
-
What should be my sampling time?
-
How long is the discharge time if the sensor is sensing white line and how long is it when the sensor is sensing the black road?
I am using ATMEL AT89C55WD chip which is compatible with 8051 micro processor.
A quick reply would be highly appreciated. Thanks in advance.