From 70e110a0fcc16859e20a8d942711890262e4ee2c Mon Sep 17 00:00:00 2001
From: iszczot_liu <ilona.szczot@liu.se>
Date: Wed, 23 Feb 2022 12:10:53 +0100
Subject: [PATCH] Modified communication from PC. We dont need vacuum anymore

---
 send2arduino.py | 14 +++++++-------
 1 file changed, 7 insertions(+), 7 deletions(-)

diff --git a/send2arduino.py b/send2arduino.py
index f413e1c..fd67d18 100644
--- a/send2arduino.py
+++ b/send2arduino.py
@@ -2,7 +2,7 @@ import serial
 import time
 
 # max 1024
-TEST_VALUE = 100
+TEST_VALUE = 1000
 # a very low value to pull in an unnoticable way
 REST_VALUE = 1
 SLEEP_SEC = 5
@@ -21,12 +21,12 @@ try:
     my_serial.write(arg)
     # hold that value for SLEEP_SEC
     time.sleep(SLEEP_SEC) 
-    # release by sending negative value
-    arg = bytes(str(int(-TEST_VALUE)), 'utf8','ignore') + b'\r'
-    # send to arduino serial
-    my_serial.write(arg)
-    # hold that value for SLEEP_SEC
-    time.sleep(SLEEP_SEC) 
+    # # release by sending negative value
+    # arg = bytes(str(int(-TEST_VALUE)), 'utf8','ignore') + b'\r'
+    # # send to arduino serial
+    # my_serial.write(arg)
+    # # hold that value for SLEEP_SEC
+    # time.sleep(2) 
     # negative creates constant vacuum and that overheats one part
     # therefore, send very low value to pull in an unnoticable way
     arg = bytes(str(int(REST_VALUE)), 'utf8','ignore') + b'\r'
-- 
GitLab