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 ...
// Reads the sensor on digital pin D2 and prints "Obstacle detected!" or "Path clear" to the Serial monitor at 9600 baud. // Buy this module: https://shillehtek.com ...
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 ...