From 962d0495ffa8f6585efb4c2ba0abbbb150c90940 Mon Sep 17 00:00:00 2001 From: Pierre Hubert Date: Sat, 22 Feb 2020 18:30:59 +0000 Subject: [PATCH] Update README --- README.md | 12 +++++++++++- 1 file changed, 11 insertions(+), 1 deletion(-) diff --git a/README.md b/README.md index 9655323..802b13d 100644 --- a/README.md +++ b/README.md @@ -1,3 +1,13 @@ # TrainCircuit -Codes for my father train circuit \ No newline at end of file +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. +