T-code serial controller plugin & demo VaM scene
🕑 Added 2019-12-04 23:21:10 +0000 UTCThis is the v1.1 release of my serial controller that allows direct control of an Arduino controlled robot sex toy via a USB serial connection. The Robot Sex Machine (RSM) is also supported.
There are three main parts:
- VaM plugin (.cs)
- Arduino sketch (.ino)
- VaM demo scene (.json)
The plugin communicates with the Arduino using a simple alphanumeric protocol called T-code, which is generic and intended for Arduino toy innovation. The plugin also supports the RSM, ie direct control of two servos via a Pololu Maestro servo controller.
The VaM plugin features:
- Serial port & Baud rate selection
- T-code/RSM mode selector
- 3 Axis output (up-down, forward-backward, roll left-right)
- Axis limit controls
- Axis trim
- Axis inverters
- Axis overrides
- Reference atom (Male) selection
- Target atom (Female) selection
- Target point (hip, head, hands) selection
- Automatic motion range tracking
- Range limit controls
- Lag inducer control
The Arduino sketch features:
- Self-contained T-code decoder
- Support for long and short form T-code commands
- 3 linear channels (L0,L1,L2)
- 2 vibration channels (V0,V1)
- Servo mixing setup for Open Stroker Robot 3-Axis (OSR3)
- Comments making it easy to use this sketch as a template for other applications.
Put simply, the above is everything you need to link your own Arduino controlled device to VaM.
The demo scene showcases serial output controlled by a hand animation.
The serial controller plugin is installed in the black sphere on the bed. You’ll have to open it to activate the serial connection. Also check that the target point is set to the right hand.
The scene uses VRAdultFun's incredible E-motion plugin, though this is just to enhance the experience and isn’t strictly needed for the scene to work.
Comments
Ubamajuba
Got it to work with the new .cs =) When its going all out the servoes start to stutter, is that too little power needing more amps?
Ubamajuba
Not sure if this is the right place, but i made a OSR2, IDE commands works great, but i cant get the wam plugin to work. Is it the same wam-plugin for OSR2 and 3? I can see the T-code moves in the plugin but there is nothing happening to servoes. It just sit there, doing nothing. Com port selected, baud 115000, log say start serial ok. only tested in Desktop mode of wam, do i need to be in VR-mode?
Peter Acworth
Dear Tempest, the only link I have been able to find for the E-motion plugin is here: https://www.reddit.com/r/VAMscenes/comments/bfopnm/plugin_emotion_for_vam/ (the google docs link to a zip file). It appears to be 8 months or so old (v.1.16) . There are no .wav files included. If you have a more recent version, please could you post where you got it from?
TempestVR
You should get the latest version of the E-Motion plugin, they’re included in that.
Peter Acworth
I had the same issue. I am wondering if the audio files actually exist somewhere and can be downloaded? it would be great to have audio as part of the experience assuming that was part of the intention originally.
TempestVR
This is a backwards compatibility error caused by your version of VaM being newer than the version the scene was created in. You also don’t have the E-motion plugin installed. None of that matters though. The T-Code Controller is a plugin attached to the sphere on the bed in that scene (though you can add it as a plugin to anything in any scene if you like). You need to select the sphere in edit mode and select the plugins tab to get access to it. If you are new to VaM it can be a bit confusing at first, so try looking up some general tutorials. I hope this helps.
geo_gan
Thanks. Will try that.
TempestVR
Took me a while to figure this one out. It’s because the scene was created pre-1.18. All you need to do is go into the scene audio and delete all the audio files. Then re-load the plugin. It should work. Then re-save the scene.
geo_gan
When I load the T-Code hand demo scene, I get a load of errors where it can't find all the sound files needed for E-Motion plugin. I think in latest VAM versions, the scripts folder was moved from "Saves/Scripts" to "Custom/Scripts". Have you used this scene in latest versions of VAM? Is there a newer version of scene with no load errors?
TempestVR
No worries. Thanks for your support!
Clayfacer
it works thanks for the work.
Clayfacer
A label on the Sphere in the demo scene would be helpful.