pinMode(IR_Pin, INPUT); // make the IR pin an INPUT: pinMode(GLED_Pin, OUTPUT); // make the LED pin an OUTPUT: pinMode(RLED_Pin, OUTPUT); // make the LED pin an input: ...
This project utilizes a Sharp infrared (IR) sensor to measure distance. The sensor works based on the principle of triangulation, where it emits an infrared beam and calculates the distance by ...