TINKER PIEDESIGN IN INDIA

Light sensor module (LDR) with TinkerPie

A light-dependent resistor: street lights, sunrise alarms.

TypeAnalog sensors
Connect toP10-P13
Gives0-100 % (bright = high)
SimulatorYes: a control appears under the simulated board

How to wire it

Plug the module's A0 / OUT into P10 (or P11-P13 when Wi-Fi is off), VCC to 3.3 V, GND to GND.

Code

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

// JavaScript
sensors.lightSensor(Pin.P10)

// Arduino C++
sensors::lightSensor(Pin::P10)

Projects with the Light sensor module (LDR)

Smart street lightA light sensor and a relay: when it gets dark, the lamp turns on by itself.Sensor projects

Similar modules