Run Readme

This document assumes you got latest version of Pd-extended, Wekinator, Processing and Arduino software's installed on your MacOS system (other system are not covered herein but might work). The corresponding patches and software's needed are attached either in the wiki (under files at the bottom) or Github.

0- Depending on the version you might need to either just switch it on or plugging the usb both ends and confirm leds are lighting. If using external battery, plug it in with its corresponding cable. (note the small connector is different for other Arduino versions).
1. Activate Bluetooth in host computer. Confirm is set to Pairing. For doing so, under Config, select device HC-06 and introduce 1234 code.
2. Load Arduino code (latest AID_serialProtocol). SKIP this if already loaded onto the device.
3. Open processing patch for protocol located in Glovaid_Project_Stuff: AID_serial_receiver3.pde
**check host computer IP and change program accordingly if sent to another computer. If local needs be set to localhost (i.e., 127.0.0.1)
4. Run processing patch. Confirm console shows no errors and found and connects the device (bluetooth red led should have stopped blinking), showing the values from the sensors (~10secs booting time), and also that bluetooth icon change to paired.
5. Open Wekinator with 8 inputs and 3 output. Under Options you can choose either Neural Network (NN) or Linear Regression (LN). LN is faster. NN tends to discriminate values better.

Hopefully is ok.OSC in LED should be green. If not check CONSOLE debugging and INPUTS monitor under view menu.

Puredata (set under preferences the delay/retardo to 5ms and confirm is not dropping/clicking, if it does, choose a higher value):
6- Open Puredata patch “testing glove”. Set DSP on. Patch should be initialized awaiting from OSC input messages from Wekinator.
7- Move one slide in Wekinator to confirm is working.
8- Train the system with wekinator (minimum 2 takes), RUN and…
Enjoy!

Troubleshooting:
is Wekinator receiving osc? And Processing? Check IP config (See p.3). Is Wekinator in "run" mode? Is bluetooth paired? Are Leds lighting on the glove? Is bluetooth shield blinking?
Check INPUTs monitor under view menu (TIP: Use it for REAL TIME MONITORING of the inputs/sensors)).
Is DSP on in Pd? Check waveform monitor.

Unless otherwise stated, the content of this page is licensed under Creative Commons Attribution-ShareAlike 3.0 License