Go to file
2020-04-04 11:27:09 +01:00
Relays Control all relays 2020-02-22 18:27:27 +00:00
Raspberry-GPIO-Pins_B_plus-1.jpg Upload files to '' 2020-04-04 11:27:09 +01:00
README.md Update README 2020-02-22 18:30:59 +00:00
Rpi2Pins.png Add pins 2020-02-22 18:10:51 +00:00

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.