S25IR LED + phototransistor
Obstacle IR
Sees when something is close in front of it.
Loading 3D
Drag to orbit · scroll to zoom · double-click to reset
Scan the back of the board to open this page.builtbytyler.com/S25
Try it
Move your hand in front
AO=3600 DO=1 clearAO=900 DO=0 OBSTACLEAO=3550 DO=1 clearAO=850 DO=0 OBSTACLE
Detects objects 2-30 cm ahead (depends on colour). DO goes LOW when something is in front.
/*
BuiltByTyler Sensor Kit - S25 OBSTACLE IR (IR LED + phototransistor)
Board: ESP32-WROOM-32 DevKit V1 (30-pin), Arduino-ESP32 core 3.x, "ESP32 Dev Module"
Detects things 2-30 cm in front. DO goes LOW when something is there
(set the distance with the pot). AO gives a rough 'how close' reading.
Wiring (module pin -> ESP32 pin):
GND -> GND
VCC -> 3V3
AO -> GPIO 34
DO -> GPIO 4
Library: none needed
Serial Monitor: 115200 baud
*/
#define AO_PIN 34
#define DO_PIN 4
void setup() {
Serial.begin(115200);
pinMode(DO_PIN, INPUT);
}
void loop() {
int ao = analogRead(AO_PIN); // 0..4095, lower = more IR bouncing back
int dout = digitalRead(DO_PIN); // LOW = obstacle
Serial.printf("AO=%4d DO=%d %s\n", ao, dout, dout == LOW ? "OBSTACLE" : "clear");
delay(200);
}
Not for sale yet. Planned price $79, shipping included. Join the waitlist and we'll email you once when the kit is ready. Nothing else.