niranjan_187
Newbie level 1
I am using a sonar sensor with three pins.Two for power supply(5V dc) and one for signal(SIG).
I need to trigger the sensor first and then monitor the sensor for obstacle detection using SIG pin.How to make a port pin of my controller as input after triggering the sensor.If i write logic 1 on that pin,it shows as output is high.What shall I do.
I need to trigger the sensor first and then monitor the sensor for obstacle detection using SIG pin.How to make a port pin of my controller as input after triggering the sensor.If i write logic 1 on that pin,it shows as output is high.What shall I do.