Haptic Feedback Cycle
Takes in HandTracking data from Vision Pro
Processes distance between thumb and middle finger
Best representation of cupped hand shape
isPinched
Thumb and middle finger are both within a certain distance of center of object (considered as touching object)
Places object in center of thumb and middle finger (when pinching motion is identified)
Data is transmitted to Arduino via BluetoothÂ
Arduino receives data and processes signal needed to send to relay (1 or 0)
1 denotes active relay signal
0 denoted inactive relay signal
Signal passed to relay from Arduino activates or deactivates relay
Signal induces activation of second side of relay (connected to electrode pad and TENS unit)
Acts as switch for stimulation side of system
When relay is off, there is a break in the stimulation even when TENS sends pulses