Skip to content
Snippets Groups Projects
Commit 70e110a0 authored by Ilona Szczot's avatar Ilona Szczot
Browse files

Modified communication from PC. We dont need vacuum anymore

parent 5b607086
No related branches found
No related tags found
No related merge requests found
......@@ -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'
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment