Infrared proximity sensor with BBC Micro:bit (Obstacle Avoidance Sensor)

5,821
0
Published 2021-04-13
Detect an object or movement in front of you using this sensor.

All Comments (4)
  • @HomeCode
    Can't tell you how long I struggled to get this to work! Using that resistor between Pin and 3V was the missing piece. Thanks so much!
  • Thanks Danny! Is it also possible to use ‘read analog pin P1 > 500’?
  • Hey it's me from the future, you can skip the resistor if on makecode.org/ you go into ADVANCED>PINS>..,(more), and [Set Pull P1 to down]