a9caeeeb1f
From https://osoyoo.com/wp-content/uploads/2017/06/Raspberry-GPIO-Pins_B_plus-1.jpg |
||
---|---|---|
Relays | ||
README.md | ||
Raspberry-GPIO-Pins_B_plus-1.jpg | ||
Rpi2Pins.png |
README.md
TrainCircuit
Codes for my father train circuit
Relays control
The relays boards must first have the following connections:
- GND (relays board) => GND (raspberry PI card)
- VCC (relays board) => 5V (raspberry PI card)
- Each INx on the relays board must be mapped to a GPIO pin of the Raspberry Pi
Use GPIO.output(num, True)
to stop a relay and GPIO.output(num, False)
to start it again.