Quantcast
Channel: Raspberry Pi Forums
Viewing all articles
Browse latest Browse all 4906

Beginners • Re: Need Help Connecting Light Sensor

$
0
0
Terminal 4 is the common terminal of the relay, and terminal 5 is the normally closed (NC) terminal. Since you want to detect when the light level changes, you'll connect terminal 4 to one of the GPIO pins on your Raspberry Pi and terminal 5 to another GPIO pin.
At least you're consistent.

It would be better to connect terminal 4 to Pi GND, and terminal 3 to a GPIO. Configure the GPIO as an input with pull-up.

Statistics: Posted by ame — Tue Mar 05, 2024 4:32 pm



Viewing all articles
Browse latest Browse all 4906

Trending Articles