|
|
|
|
|
by synx508
4875 days ago
|
|
The schematic may be incorrect, as it seems unlikely that the relay would energise in an emitter follower configuration, where it'd have approximately 2.6 volts across its coil in the "on" state. Perhaps the relay should be between 5v and the collector of the transistor. Some relays are sensitive enough, though, so I'm not sure. |
|
Relay connected to 5v with the diode across the coil. The base of the transistor goes to pin 18 via a resistor. The transistor is on the other side of the relay between it and ground.
That makes more sense to me because the diode is now actually protecting the Raspberry Pi 5V line.