Diagrams of connections to Raspberry Pi

Home Diagrams of connections to Raspberry Pi
1. Connect LED
schem201
2. Connect temperature sensors DS18B20 (1-Wire)
schem202
3. Connect switch buttons Pull_Up
schem203
4. Connect switch buttons Pull_Dn
schem204
5. Connect load (lights, receptacles, fans, etc.) via a relay module
schem205
6. Example of connection to Raspberry Pi

Connect sensors (detectors, switch buttons …)  to Raspberry Pi  inputs via PC817 optic couplers.

Connect actuators (lights, fans, valves…) to Raspberry Pi  outputs via ULN2003A array and a relay.

schem206