Parts Sensors and input

The Photoresistor (LDR) as drawn on the PinBench canvas.

Photoresistor (LDR)

A light-dependent resistor: its resistance falls as the light rises.

Category
Sensors and input
Size
8.9 × 8.3 mm

Pins

PinRole
ASignal
BSignal

Settings

Change these in the part's properties on the canvas.

Dark resistance
1 000 000 Ω
Resistance at full light
1 000 Ω
Light on the sensor
50 %

How PinBench simulates it

  • Its resistance moves between the dark and full-light values you set, following how much light you say falls on it.
  • Change the light level mid-run and analogRead() follows.