Update README
This commit is contained in:
parent
6b3c69f3de
commit
962d0495ff
12
README.md
12
README.md
@ -1,3 +1,13 @@
|
|||||||
# TrainCircuit
|
# TrainCircuit
|
||||||
|
|
||||||
Codes for my father train circuit
|
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.
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user