-
Notifications
You must be signed in to change notification settings - Fork 4
Setup
As the name suggests, pygloves consists entirely of Python scripts, which means you have to download and install Python on your computer if you haven't already.
- Make sure you have the
pip
andadd Python to environment/PATH
checkboxes ticked.
pygloves depends on several packages to work. The easiest way of installing them is via pip:
- Open Command prompt, and execute the following commands:
pip install numpy
pip install matplotlib
- For usage with LucidGloves, you also need the following:
pip install pyserial
- For usage with the Myo armband, you also need the following:
pip install pyomyo
-
Open
lerp_finger_from_serial.py
with your preferred text editor, such as Notepad++. -
Change
COM_PORT
to match the COM port your gloves are on. This is the same value you would use on your Arduino IDE and Opengloves, which you can find using devices manager. -
Make sure
MAX_SERIAL_VALUE
is correct. It should be4095
for gloves using the ESP32 or1023
for gloves running older AVR chips (such as the arduino Nano). -
If your gloves are running an old version of the firmware with legacy encoding (output separated by
&
s instead ofA<value>B<value>C<value>(...)
), setLEGACY_DECODE
toTrue
.
Save the changes and run lerp_finger_from_serial.py
. You should now see a visualization of your fingers that responds to the finger movement of the gloves.
(TODO)