DIY RC Throw Meter using a M5Stick S3

Pierre Rondel
By -
0



We live in an amazing time ! 


Following my post on facebook about the RC Throw Meter, and the fact that WitMotion sensors have become difficult to source, as they are now obsolete, JB Deguelle suggested I look into the M5Stick for building this control-surface deflection measurement tool. Out of curiosity, I checked the product specifications, and recently decided to buy two units, figuring I’d eventually find the time to brush up on Python programming, though I expected that to be a long-term project.

I hadn't accounted for the UIFlow development environment and its "AIFlow" feature: once the M5Stick is flashed with the appropriate firmware, it can communicate via Wi-Fi with the AIFlow interface. This interface includes a prompt where you can chat, discussing the requirements for the application you want; a few minutes later, it writes the software, loads it onto the device (either for a test run or as a permanent installation), and launches the application. It only took me an hour to develop this fully functional application, comparable to the WitMotion-based version, save for the ability to set a specific target value. In fact, it took me longer to redesign the clip and 3D-print it! It works perfectly now, and this "standalone" version is quick to set up. Here are a few photos of the device.



The M5Stick costs around €29, cheaper than the WitMotion sensor, and the whole setup, including the clip, weighs about the same!



I prepared a version of the M5StickS3 RC Throw meter application that works both on the side or horizontally.

Therefore, I also made 2 mounting clips available with different orientations. STL files are here: https://www.thingiverse.com/thing:7431180

The firmware is awaiting review and approval before being made available to the public: https://burner.m5stack.com/

The firmware is also available directly on my dropbox:

https://www.dropbox.com/.../5u2.../ESP32-S3-flash-8MB.bin...

Once you have the .bin file, you can push it to the device easily using the following page https://esptool.spacehuhn.com/


For those using the RC Throw Meter with the M5Stick S3, I have also prepared 3D printing files to build an incidence meter (an inclinometer for measuring wing/tail angles) using two M5Stick S3 units. Feel free to use them and figure out the best way to measure the longitudinal V-angle. Personally, I don’t really have a use for it, but some people have asked me for it.

STL files are available on Thingiverse, link below.

https://www.thingiverse.com/thing:7437403




I am considering some upgrades for the RC Throw Meter—I have a few ideas—but for the time being, I don’t really have the time to start any new development work. Stay tuned!



Enjoy !


User manual




The RC Throw Meter is a MicroPython application for the M5StickS3 designed to measure control surface deflections on RC aircraft in either degrees (deg) or linear travel (mm).

Hardware Controls Overview

  • Button A (Front Button): Acts as the Confirm / Start / Re-Zero button. Emits a high-pitched confirmation tone (2000 Hz).
  • Button B (Side Button): Acts as the Select / Toggle / Step / Back button. Emits a lower-pitched selection tone (1200 Hz).

Screen 1: Splash Screen

When powered on, the M5StickS3 enters landscape mode (240×135) and displays the title "RC Throw Meter" alongside "by Planet-Soaring.com".

  • Behavior: A cyan progress bar at the bottom fills over 5 seconds, after which the device automatically advances to the Orientation Screen.
  • Button A & B: Disabled during this screen. Holding either button down as the splash finishes is safely ignored so you do not accidentally trigger inputs on the next screen.

Screen 2: Orientation Screen (ORIENTATION)

This screen configures which physical axis of the M5StickS3 will be measured based on how you mount the device to the aircraft's control surface.

Display Elements:
  • VERTICAL (PITCH): Measures rotation along the long axis (X) toward the USB-C port. Use this when mounting the StickS3 upright/vertically. The software automatically detects whether the stick is rocking fore/aft (Z-plane) or side-to-side (Y-plane) upon its first tilt so both directions read with opposite signs (+ and -).
  • HORIZONTAL (ROLL): Measures elevation along the short axis (Y). Use this when laying the StickS3 flat in landscape orientation across the control surface.
Button Controls:
  • Button B (Side): Toggles the active highlight between VERTICAL and HORIZONTAL.
  • Button A (Front): Confirms your chosen orientation and advances to the Setup Screen.


Screen 3: Setup Screen (SETUP)

This screen configures the measurement units and, if applicable, the control surface chord length. It always opens with the focus on the MODE row.

Display Elements:

  • MODE Row: Displays either ANGLE (degrees) or CHORD (millimeters).
  • CHORD Row: Displays -- mm when in Angle mode, or an active measurement between 20 mm and 999 mm when in Chord mode.

Button Controls (When MODE row is highlighted):

  • Button B (Side): Toggles between ANGLE and CHORD. Selecting CHORD automatically moves the highlight down to the CHORD row.
  • Button A (Front):
    • In ANGLE mode: Confirms and starts the Measurement Screen.
    • In CHORD mode: Moves the highlight down to the CHORD row.

Button Controls (When CHORD row is highlighted):
  • Button B (Side):
    • Short Press: Increases the chord length by +1 mm (range: 20 to 999 mm).
    • Press & Hold: Continuously steps the chord length upward after a 350 ms delay.
  • Button A (Front):
    • Short Press (< 0.6s): Confirms the chord value and starts the Measurement Screen.
    • Long Press (≥ 0.6s): Returns the highlight back up to the MODE row so you can switch back to ANGLE mode.


Screen 4: Measurement Screen

All measurements are relative to a captured zero (there is no absolute level mode). To eliminate hand shake and sensor vibration, readings are calculated from a continuous 1-second moving average of the accelerometer.

Display Elements:
    • Top-Left Unit: Shows deg (Angle mode) or mm (Chord mode, calculated as chord(angle)).
    • Center-Left Live Readout: Large numeric display showing live deflection. The text turns green when the surface is within ±1.0° of zero (level), and white outside that tolerance.
    • Bottom-Left Graphic Bar: A visual slider with a center zero tick mark and a moving dot (±45° full scale in Angle mode, or equivalent linear travel at 45° in Chord mode).
    • Right Column (MAX / MIN): Tracks and displays the highest positive deflection (MAX in green) and lowest negative deflection (MIN in amber) recorded since the last zeroing.
    • Bottom-Left Battery Status: Displays pack voltage and percentage (e.g., Batt: 3.85V 78%), updated every 2 seconds. Turns green while charging via USB, grey during normal use, and red at 20% or below.
    • Bottom-Right Status Hint: Displays "hold still - zeroing" during calibration, then switches to "A: zero B: mode" once ready.
Calibration Behavior:

    • Immediately upon entering this screen, the display shows --.- while capturing a full 1-second sample window to establish your zero reference. Keep the control surface still until live numbers appear.

Button Controls:

    • Button A (Front): Re-Zero & Reset Peaks. Captures a fresh 1-second zero reference at the current surface position and resets both MAX and MIN values to 0.0.
    • Button B (Side): Back to Setup. Exits measurement mode and returns to the SETUP screen (preserving your chosen orientation). (Note: To change Orientation, power-cycle/reset the M5StickS3.)

Quick Reference Button Summary

Screen

Button A (Front)

Button B (Side)

1. Splash

Ignored

Ignored

2. Orientation

Confirm & go to Setup

Toggle VERTICAL / HORIZONTAL

3. Setup (MODE row)

Start (Angle) / Next row (Chord)

Toggle ANGLE / CHORD

3. Setup (CHORD row)

Tap: Start Measurement


Hold (0.6s): Back to MODE row

Tap: +1 mm


Hold: Fast-scroll chord mm

4. Measurement

Re-zero & reset MAX/MIN peaks

Return to Setup screen





Tags:

Post a Comment

0 Comments

Post a Comment (0)
3/related/default