about Blue ASCII Servo

signal processing, XR, sims, microscopes, STM32, ESP32


about Blue ASCII Servo

23 Feb 2023:  #define UNO added to Blue_ASCII_Servo.ino

Stuyo’s sim belt servo tensioner is based on this Arduino sketch.

It requires a compatible SimHub Custom Serial profile (see Update below),
or e.g. from SimHub Custom serial profile atlas,
as discussed in SimHub Custom serial device for Blue Pill.

The name comes from:

  • Blue for Blue Pill, a cheap STM32 module, sadly now seldom available.
    Many still advertised are near clones and may not work with the original Arduino Blue Pill board profile.
  • ASCII for 7-bit characters, which is a SimHub Custom Serial limitation.
  • Servo for the Arduino servo library

With few modifications, this sketch reportedly works for real Arduino modules.
The sketch is intentionally simple, to run quickly.  Most code controls the LED, used for protocol diagnostics.
The Blue_ASCII_Servo protocol is completely incompatible with any used by SimHub Arduinos.
It is deliberately minimilist, using short messages to reduce latency and overhead.
The protocol attempts to be tolerant of electrical interference.
Properly implemented USB could be robust against noise,
but most adapters (e.g. Blue Pill) do NOT fully isolate their USB transceiver,
sharing a ground connection with noisy power to motors, etc.

Here is description for Blue Pill, troubleshooting and protocol evolution.
Servo tensioner from @RacingMat, as documented here.
Some ongoing servo harness tensioning discussions occur in SimHub Discord.

Update

One drawback of directly using SimHub telemetry properties in a Custom Serial profile is that
those telemetry values vary a lot, depending on game, car, track and driving style.
SimHub ShakeIt has an option to automatically recalibrate values
and also provides a user interface for tweaking them.

Opinion:  sim racing harness

Cheap 4 point belts can work great.
Those who claim otherwise probably have lap belts too loose;  lap belts should be as tight as possible.
For those with deep bucket seats, lap belt tightening straps should pull towards the buckle, not away.
Harnesses with smooth webbing are liable to loosen too easily.

Tighter shoulder straps increase servo current, leading to overheating and failures.
Wide bed casters work fine as pulleys for 2-inch shoulder straps:
racedepartment

Other alternatives:  SimHub Custom serial profile atlas