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

Поділитися
Вставка
  • Опубліковано 12 кві 2021
  • Detect an object or movement in front of you using this sensor.

КОМЕНТАРІ • 5

  • @HomeCode
    @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!

    • @DanielMurrayMakes
      @DanielMurrayMakes  Рік тому

      You're very welcome! I did find though later that you can do it without the resistor as there's a software implemented pull up pin block in makecode.org :D Think it's under "Pins".

  • @sandrajanssen4062
    @sandrajanssen4062 3 роки тому

    Thanks Danny! Is it also possible to use ‘read analog pin P1 > 500’?

  • @DanielMurrayMakes
    @DanielMurrayMakes  2 роки тому +3

    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]

    • @jksoldier79
      @jksoldier79 10 місяців тому

      Hi, thank you very much for the good advice. May I ask if there is any other scenario in microbit usage that we will need to use this "advanced --> pins --> set pull p1 to down"