- Notifications
You must be signed in to change notification settings - Fork0
UiharuKazari2008/TENS4OSC
Folders and files
Name | Name | Last commit message | Last commit date | |
---|---|---|---|---|
Repository files navigation
DIY Controllable TENS Stimulator for VRChat Avatars via OSC

I am not responsible for if you suffer serious side effects or harm, Your an adult if you are even thinking about using TENS/EMS for activities please read the warnines with the device and do not put the electrides near your heart or sensitive skin. Do not keep the device attached to a PC when active and its suggested that you use a battery to prevent the possibliity of being connected to your AC ground. If you must use a USB isolator.
- ERP
- .... I don't know
- ESP32
- 2 Relays
- AVCOO TENS Stimulator kit from Amazon
- Not Shown, Relays break output + channels. If possible use 2 relays for both positive and nagative
#defineDEFAULT_OFF// Device is off by default// Remove unused buttons to remove the feature#definePOWER_BUTTON 19 // Power Button#defineUP_BUTTON 18 // Intensity Up (REQUIRED)#defineDOWN_BUTTON 5 // Intensity Down (REQUIRED)#defineTIME_BUTTON 14 // Time Setting#definePUP_BUTTON 12 // Preset Up#definePDOWN_BUTTON 27 // Preset Down#defineM_PRESS_TIME_FOR_C 8 // Number of presses to enter continuous timer#defineBUTTON_DEBOUNCE_PRESS 45 // Your devices button minimum to press buttonin ms for its debouncer#defineBUTTON_DEBOUNCE_DELAY 50 // Your devices button minimum wait time in ms for its debouncer// Stop / Disconnect Relays#defineCHANNEL_A_RELAY 16#defineCHANNEL_B_RELAY 17// Relays On Off State (some relays are active on low or high)#defineRELAY_ON_STATE HIGH#defineRELAY_OFF_STATE LOW// Max Intensivty Level supported by your device#defineMAX_INTENSITY 30// WiFi Connectionconstchar*ssid="Radio Noise AX";constchar*password="Radio Noise AX";
- If you swing your from values to quickly there is tendicy for it to get out of sync (Low then expected thankfully)
- Use VRCOSC to route the output from VRChat to your devices IP Address @ Port 9001
- Add the 4 Parameters
- TENSLevel (INT)
- TENSActive (BOOL)
- TENSESTOP (BOOL)
- KACommand (INT) (Not Required)
Animate the TENSLevel to set the intensity, Animate the TENSActive Bool to turn the output on or off (if your jumping to higher levels or need sudden output
Use TENSESTOP as a Menu Toggle to Toggle Master Output, Add KACommand Buttons to your meun to send commands like bellow
- 51: Preset Up
- 50: Preset Down
- 54: Resync Intensity
About
DIY OSC Controllable TENS Stimulator for VRChat Avatars
Topics
Resources
Uh oh!
There was an error while loading.Please reload this page.