This code is to use E18-D80NK Infrared Sensor to detect obstacle and trigger an event like starting or stopping motor or servo or relay or anything else. // Writeen by Ahmad S. for Robojax.com on // ...
A minimal example that reads a digital IR (obstacle/proximity) sensor on pin D2 and lights the onboard LED (pin 13) when an object is detected. The project is configured to build with PlatformIO for ...
Some readers may recall building a line-following robot during their school days. Involving some IR LEDs, perhaps a bit of LEGO, and plenty of trial-and-error, it was fun on a tiny scale. Now imagine ...