Skip to the content.

M5ChainOSC User Guide

日本語版

This guide explains initial setup after installing M5ChainOSC on an AtomS3R and how to use the Web UI.

[!IMPORTANT] M5ChainOSC is an unofficial, independently developed project. It is not an official product of M5Stack Technology Co., Ltd. and is not affiliated with or endorsed by that company.

1. Initial Wi-Fi setup

When no Wi-Fi settings are stored, the AtomS3R starts in access point mode.

[!IMPORTANT] The AtomS3R supports 2.4 GHz Wi-Fi only. It cannot connect to a 5 GHz-only SSID.

  1. Open Wi-Fi settings on a phone or computer.
  2. Connect to the SSID AtomS3R-OSC.
  3. Enter the password 12345678.
  4. If the setup page does not open automatically, visit http://192.168.4.1/.
  5. Enter the SSID and password of the Wi-Fi network the AtomS3R should use, then save.
  6. The AtomS3R restarts. After a successful connection, its display shows WiFi OK and its IP address.

If connection fails, the device returns to access point mode. Check the SSID, password, and whether the selected network supports 2.4 GHz.

2. Open the settings page

From a device on the same network as the AtomS3R, open either:

Some environments do not support mDNS .local addresses. Use the displayed IP address in that case.

[!IMPORTANT] The Web UI does not require authentication. Use M5ChainOSC only on a trusted local network, such as your home LAN. Use on shared networks at event venues, hotels, or public Wi-Fi hotspots is not recommended.

3. Common settings

Language

Select English or 日本語. The page reloads immediately and stores the selection on the AtomS3R. Before a language has been saved, the Web UI uses Japanese when it is the browser’s preferred language and English otherwise.

WiFi

This section shows the current IP address. Delete WiFi Settings removes the saved Wi-Fi configuration; the device starts in access point mode on its next boot.

Settings Backup / Restore Settings

Import replaces settings for matching device UIDs while retaining saved devices not present in the file. OSC destination, display rotation, and Web UI language are restored immediately. Wi-Fi credentials are never included.

Display Rotation

Select 0°, 90°, 180°, or 270°. The AtomS3R display changes immediately.

OSC Destination

VRChat normally receives OSC on port 9000. Use the settings required by your receiving application.

Enable OSC in VRChat

To send OSC from M5ChainOSC to VRChat, enable OSC from the VRChat Action Menu:

Action Menu → Options → OSC → Enabled

4. Common device operations

Each connected Chain device appears as a card.

Recognized devices normally show a blue LED. Open … on a device and select Identify Device (Orange LED for 10s) to turn only that device orange for ten seconds. It then returns to blue. Identification is not stored as a setting.

Always press Save All Settings after editing. Saved settings are restored when the same UID reconnects, even after removal or reboot.

Saved Device Settings

Lists devices that have been saved, whether currently connected or not. Delete Settings removes the settings for that UID. If the device is connected, its configuration returns to defaults.

5. OSC message input rules

OSC Address

Example:

/avatar/parameters/Flying

Type and Value

Value is limited to 128 bytes. The byte count and validation message appear below each field.

6. Key

A Key sends OSC messages when pressed or released.

Parameter Meaning
Device Name Optional name used to identify the device.
Key Mode Selects Press / Release or Sequence.

Press / Release mode

Messages are sent from top to bottom for each event.

Sequence mode

Each press sends the next value to the same OSC Address.

Parameter Meaning
OSC Address Destination of the sequence value.
Start Value sent on the first press and after wrapping.
End End of the sequence.
Step Amount added on each press. A zero step is corrected to 1; direction is corrected when Start is greater than End.
Type Use Float or Int. Int values are sent as integers.

After sending Start, each press advances by Step. When the next value would pass End, the sequence returns to Start. Release sends nothing. Saving resets the next value to Start.

7. Encoder

Encoder Rotation

Parameter Meaning
Rotation Address OSC destination for rotation values.
Mode Absolute uses the current counter position; Increment uses the change since the previous reading.
Abs In Min Input position mapped to Out Min in Absolute mode. Hidden in Increment mode.
Abs In Max End of the repeating Absolute input range. Hidden in Increment mode.
Inc Scale Multiplier applied to each Increment delta. A delta of 1 with 0.05 sends 0.05; reverse rotation produces a negative value.
Out Min Lower output limit.
Out Max Upper output limit.
Out Type Float, rounded Int, or numeric String.

Absolute input range

Unlike a potentiometer, an encoder has no physical minimum or maximum and can rotate continuously. Absolute mode treats a fixed number of internal encoder counts as one cycle and maps the current position to the output range.

Example:

Abs In Min: 0
Abs In Max: 20
Out Min: 0
Out Max: 1
Encoder count OSC output
0 0.00
5 0.25
10 0.50
15 0.75
19 0.95
20 wraps to 0.00

This configuration completes one output cycle every 20 counts. Reverse rotation wraps from count 0 to the end of the range.

It is usually easiest to keep Abs In Min at 0 and treat Abs In Max as the number of counts per cycle:

The current implementation wraps when it reaches Abs In Max. With integer encoder counts, it therefore approaches Out Max and then returns to Out Min without sending Out Max itself. In the example above, the highest value is 0.95.

The first reading initializes the position. OSC is sent when the encoder value changes.

Click

The green-accented section configures the encoder button and works like Key.

Rotation and click settings are independent.

8. Joystick

Joystick XY

Parameter Meaning
X Address OSC destination for the horizontal axis.
Invert X (+/-) Reverses the sign of the X axis.
Y Address OSC destination for the vertical axis.
Invert Y (+/-) Reverses the sign of the Y axis.
Deadband Sends an axis only after its raw value differs from the last sent value by at least this amount. The raw range is approximately -127 to 127; minimum is 1.
Out Min Output mapped from raw input -127.
Out Max Output mapped from raw input 127.
Out Type Float, Int, or String.

For example, Out Min -1 and Out Max 1 produce approximately 0 at center and -1/1 at the ends. X and Y use separate OSC addresses and are sent independently when their deadband is exceeded.

Click

The green-accented section uses the same multi-message and Sequence controls as Key and Encoder Click.

9. Angle

Parameter Meaning
Address OSC destination for the angle value.
Resolution 8-bit uses 0–255; 12-bit uses 0–4095.
Deadband Minimum raw-count change required before sending. Minimum is 1.
Out Min Output corresponding to sensor input 0.
Out Max Output corresponding to 255 in 8-bit mode or 4095 in 12-bit mode.
Out Type Float, Int, or String.

With 12-bit resolution and an output range of 0 to 1, a midpoint reading sends approximately 0.5. The first reading initializes the state; later values are sent after the deadband is exceeded.

10. ToF

Chain ToF converts measured distance into an OSC value.

Parameter Meaning
Address OSC destination for the mapped value; this is not necessarily the raw distance in millimeters.
Deadband (mm) Minimum change from the last valid distance before sending. Range: 1–2000 mm.
Maximum Distance (mm) Exclusive upper limit of the active measurement range. Range: 31–2000 mm.
Output Direction Select Near → Out Min / Far → Out Max or Near → Out Max / Far → Out Min.
Out Min One end of the output range.
Out Max The other end of the output range.
Out Type Float or rounded Int.

[!NOTE] The active range is 30 mm or greater and below Maximum Distance. When the target leaves this range, OSC transmission stops instead of sending a maximum-distance value. Transmission resumes with the first valid reading.

For example, with Maximum Distance 500, output 0–1, and Near → Out Max / Far → Out Min, a reading near 30 mm sends approximately 1 and approaches 0 near 500 mm. At 500 mm or beyond, transmission stops.

11. Device Presets

Open … on a Chain device to export or import its device-only settings as JSON. Presets do not contain a UID or Device Name, so settings can be shared between devices of the same type. Review the imported values and select Save All Settings.

M5ChainOSC uses Device Preset v1 as the canonical format for Key and Device Preset v2 as the current normative target for Encoder, while also supporting compatible v1 Encoder imports. Key v1 is shared with M5ChainOSC, ChainOSCmini, ChainOSCnano, ChainOSCPad, and ChainOSC for Windows. Encoder v1 is shared with M5ChainOSC, ChainOSCmini, ChainOSCnano, and ChainOSCPad; Encoder v2 with M5ChainOSC and ChainOSCPad. Angle v1, ToF v1, and Joystick v1 are shared with M5ChainOSC, ChainOSCmini, and ChainOSCnano. schemaVersion is a format contract for each Device Type; see the ChainOSC common specification for the detailed compatibility range. Intermediate draft v2 formats are not compatibility targets.

ChainOSC Device Presets provides examples for VRChat and other uses. Download a JSON file and import it from … on the target device card.

12. Backup and restore

Export JSON before major changes, firmware updates, or erasing all settings. The backup includes:

Wi-Fi SSID and password are not included. The current JSON file limit is 48 KiB.

12. Erase all settings

Press and hold the AtomS3R screen for ten seconds. Progress appears on the display. This permanently erases:

Export any required settings first.

13. Troubleshooting

The settings page does not open

A Chain device does not appear

OSC is not received

JSON cannot be imported

Settings revert after saving