Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

DIY OSC Controllable TENS Stimulator for VRChat Avatars

NotificationsYou must be signed in to change notification settings

UiharuKazari2008/TENS4OSC

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

10 Commits
 
 
 
 

Repository files navigation

DIY Controllable TENS Stimulator for VRChat Avatars via OSC

CAUTION

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.

Use Case

  • ERP
  • .... I don't know

Hardware

  • ESP32
  • 2 Relays
  • AVCOO TENS Stimulator kit from Amazon

IMG_0172IMG_0171

  • 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";

Known Issues

  • If you swing your from values to quickly there is tendicy for it to get out of sync (Low then expected thankfully)

Implimentation

  • 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

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages


[8]ページ先頭

©2009-2025 Movatter.jp