SakeTami
tempestvr
tempestvr

patreon


T-code serial controller plugin & demo VaM scene

This 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:

  1. VaM plugin (.cs)
  2. Arduino sketch (.ino)
  3. 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:

The Arduino sketch features:

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.

T-code serial controller plugin & demo VaM scene

Comments

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?

Ubamajuba

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?

Peter Acworth

You should get the latest version of the E-Motion plugin, they’re included in that.

TempestVR

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.

Peter Acworth

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.

TempestVR

Thanks. Will try that.

geo_gan

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.

TempestVR

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?

geo_gan

No worries. Thanks for your support!

TempestVR

it works thanks for the work.

Clayfacer

A label on the Sphere in the demo scene would be helpful.

Clayfacer


More Creators