Wiring info

This commit is contained in:
redfast00 2022-03-11 11:36:24 +01:00
parent a7a1e64b9d
commit aca0f9dbbb
No known key found for this signature in database
GPG key ID: 5946E0E34FD0553C
2 changed files with 11 additions and 2 deletions

View file

@ -37,3 +37,11 @@ There are two roles:
These two roles can communicate with each other. To successfully defuse the bomb, they must These two roles can communicate with each other. To successfully defuse the bomb, they must
communicate efficiently and clearly. If a mistake is made, the team gets a strike. communicate efficiently and clearly. If a mistake is made, the team gets a strike.
If they get too many strikes or the timer runs out, the bomb explodes. If they get too many strikes or the timer runs out, the bomb explodes.
## Common wiring between all modules
- CAN-H: red on JST 3 pin connectors, purple on CAN wire
- CAN-L: white on JST 3 pin connectors, brown on CAN wire
- +12V: red on 2 pin JST connector and power wire
- ground: black on 2 pin JST connector, no color on power wire

View file

@ -7,14 +7,14 @@ message:
X X
-> binary value -> binary value
There are 4 bits in the value that indicate There are 4 bits in the value that indicate if a port is visible or not:
VGA: 8-bit VGA: 8-bit
Serial: 4-bit Serial: 4-bit
MIDI: 2-bit MIDI: 2-bit
Parallel: 1-bit Parallel: 1-bit
If a bit is 0, this means the port is shown, if it is 1, the port is hidden. If a bit is 0, this means the port is **shown**, if it is 1, the port is **hidden**.
For example, if the value is 7 (in binary: 0111), that means that only the VGA port is visible. For example, if the value is 7 (in binary: 0111), that means that only the VGA port is visible.
*/ */
@ -25,6 +25,7 @@ For example, if the value is 7 (in binary: 0111), that means that only the VGA p
const int stepsPerRevolution = 2038; const int stepsPerRevolution = 2038;
// Connected to motor driver
#define IN_ONE 2 #define IN_ONE 2
#define IN_TWO 3 #define IN_TWO 3
#define IN_THREE 5 #define IN_THREE 5