TINKER PIEDESIGN IN INDIA

IR obstacle sensor with TinkerPie

An infrared light and receiver: robot bumpers, object counters.

TypeDigital sensors
Connect toany accessory pin
Givestrue when something is close
SimulatorYes: a control appears under the simulated board

How to wire it

Signal (DO / OUT / S) to any accessory pin: S1-S4, P10-P13, P43 or P44. Power from 3.3 V where the module allows it.

Code

In blocks: Accessories category in TinkerPie Studio. As code:

// JavaScript
sensors.irObstacle(Pin.S1)

// Arduino C++
sensors::irObstacle(Pin::S1)

Projects with the IR obstacle sensor

Obstacle-avoiding robotAn IR sensor at the front: the robot backs up and turns when something is in the way.Sensor projects

Similar modules