From 4953064d8e59f1d87cf9af4806451e9c9a67a76b Mon Sep 17 00:00:00 2001
From: Vrishak Vemuri <53585843+FluffyCube9343@users.noreply.github.com>
Date: Sun, 7 Aug 2022 14:47:34 -0400
Subject: [PATCH 1/4] Update README.md
---
comms/README.md | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/comms/README.md b/comms/README.md
index 3ebb2aa..45e56de 100644
--- a/comms/README.md
+++ b/comms/README.md
@@ -2,7 +2,7 @@
Code for **wired** communication from Slave Arduinos to Master Arduino, and then Master Arduino to Raspberry Pi.
-###Code Description
+### Code Description
- `RPi/` is working code for the Raspberry Pi
- `RPICOM.py` is the main python file that should be run on the Raspberry Pi.
@@ -16,7 +16,7 @@ Code for **wired** communication from Slave Arduinos to Master Arduino, and then
- `Prev/` is previous code used for testing systems and debugging errors (not final code, and may be unstable)
-###Setup and Run
+### Setup and Run
**Make sure you install python beforehand**
From b87e3f6be07f26b245c94d3d77676e0327e42468 Mon Sep 17 00:00:00 2001
From: Vrishak Vemuri <53585843+FluffyCube9343@users.noreply.github.com>
Date: Mon, 8 Aug 2022 08:35:51 -0400
Subject: [PATCH 2/4] Update MasterCode.ino
---
comms/Arduino/MasterCode/MasterCode.ino | 1 +
1 file changed, 1 insertion(+)
diff --git a/comms/Arduino/MasterCode/MasterCode.ino b/comms/Arduino/MasterCode/MasterCode.ino
index 6591e74..b49078a 100644
--- a/comms/Arduino/MasterCode/MasterCode.ino
+++ b/comms/Arduino/MasterCode/MasterCode.ino
@@ -11,6 +11,7 @@ String incomingBytes2 = "";
int readPls = 0;
void setup() {
Serial3.begin(115200);Serial2.begin(115200);Serial.begin(115200); // opens serial port, sets data rate to 9600 bps
+ delay(8000); //8 second delay to wait for RPi to run, avoids port busy error on RPi.
}
void loop() {
From 2dfd29761b294662b26a0cf38d43ac0aefca38bd Mon Sep 17 00:00:00 2001
From: Vrishak Vemuri <53585843+FluffyCube9343@users.noreply.github.com>
Date: Mon, 8 Aug 2022 08:37:43 -0400
Subject: [PATCH 3/4] Update README.md to avoid Port busy error on RPi.
---
comms/README.md | 8 ++++----
1 file changed, 4 insertions(+), 4 deletions(-)
diff --git a/comms/README.md b/comms/README.md
index 45e56de..c285492 100644
--- a/comms/README.md
+++ b/comms/README.md
@@ -49,20 +49,20 @@ chmod 777 /dev/ttyACM*
6. Upload `SlaveCode/SlaveCode.ino` or `SlaveFakeCode/SlaveFakeCode.ino` to the Slave Arduinos in Arduino IDE
-7. Upload `MasterCode/MasterCode.ino` to the Master Arduino in Arduino IDE
-
-8. `Cd` into `RPi/`
+7. `Cd` into `RPi/`
```
cd RPi/
```
-9. Install pyserial
+8. Install pyserial
```
pip3 install pyserial
```
+9. Upload `MasterCode/MasterCode.ino` to the Master Arduino in Arduino IDE
+
10. Run the python code.
```
From 49c42c5b611d0b3990903e43738efdbb15689243 Mon Sep 17 00:00:00 2001
From: Vrishak Vemuri <53585843+FluffyCube9343@users.noreply.github.com>
Date: Mon, 8 Aug 2022 08:39:06 -0400
Subject: [PATCH 4/4] minor fix
---
comms/README.md | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/comms/README.md b/comms/README.md
index c285492..f9d3654 100644
--- a/comms/README.md
+++ b/comms/README.md
@@ -44,7 +44,7 @@ chmod 777 /dev/ttyACM*
5. Open Arduino IDE and upload `blank/blank.ino` to all Arduinos.
-**Do not open serial monitor until steps 6-8 are done**
+**Do not open serial monitor on any Arduino**
6. Upload `SlaveCode/SlaveCode.ino` or `SlaveFakeCode/SlaveFakeCode.ino` to the Slave Arduinos in Arduino IDE