What mode should we put the Arduino pin to, for object detection to work with the IR Sensor?

Trần Vũ

New member
What mode should we put the Arduino pin to, for object detection to work with the IR Sensor?
A. Analog
B. Digital
C. PCM
D. TDM
 
Answer: B
Explanation: Having the input pin to digital on the Arduino, will give us a HIGH signal from the sensor whenever an object is detected to be in range of the sensor thus fulfilling its need. So, for object detection we can attain the required data simply by a digital HIGH or LOW signal.
 

Tìm kiếm

Back
Top