Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
Collapse
Brand Logo

ModalAI Forum

ModalAI Team

Private

Posts


  • Continuous bench supply with VOXL FPV Racing 4-in-1 ESC (M0138) — braking disable + TVS protection guidance
    Alex KushleyevA Alex Kushleyev

    Hello @austin.c ,

    disable_active_freewheeling does parameter does not work, it was a compile-time option. However, let me revisit it and see if we can make it work with the param.

    protection_voltage_limit_v parameter is a place-holder and is not yet implemented. We did experiment with backing off motor braking to prevent overvoltage, but that has not been enabled in the firmware. limiting the motor's response like that is also risky because the drone could crash because the motor response would not be following the commands.

    On M0138 ESC, the IDs 1 and 2 report the temperature measured in the MCU itself (die temperature) and IDs 0 and 3 report temperature from the top and bottom of the ESC board, with discrete temperature sensors located near mosfets (you can see it in the diagrams here : https://docs.modalai.com/voxl-fpv-esc-datasheet/)

    Disabling regenerative braking, also automatically disables active freewheeling (which is pretty much exactly the same thing). The primary benefit of active freewheeling (a.k.a. synchronous rectification) in drone ESC is actually not regenerating energy (which is negligible amount), but allowing the low-side Mosfet to conduct when the particular half bridge is off. If the active freewheeling is disabled, the re-circulating current flows through the diode, which has a much larger forward voltage drop than a conducting Mosfet. The re-circulating current flowing through the diode is a major contributor of heating of the ESC and that is one of the reasons that active freewheeling is important and is always enabled on our ESC. The temperature measurement results that you received are reasonable.

    See the diagram explaining the current flow in PWM-off phase for both cases
    e6f3cc14-92ce-45bd-939f-fa386a80fae2-image.jpeg

    By the way, something to think about - the voltage rise due to regenerative braking is not instant because all the capacitors in the system need to be charged up. The ESC reports the measured voltage and current (and even though they are low-pass filtered). you should be able to construct a model in the flight controller code and predict / prevent the voltage spikes. Normally, PX4 communicates with the ESC at 800hz which means you are getting 200hz feedback from each ESC (800hz voltage feedback and 200hz total current feedback). You can see if the current decreases and goes negative, it means the current is flowing out of the ESC into the rest of the system (being re-generated).

    The filter time constants for the voltage and current in the ESC firwmware are as follows:

    • voltage: 7.5ms (16.5ms rise time 10-90%)
    • current: 1.87ms (4.1ms rise time 10-90%)

    The plots in the following document are showing the filtered voltage / current : https://gitlab.com/voxl-public/voxl-sdk/utilities/voxl-esc/-/blob/master/voxl-esc-tools/doc/regenerative_braking.md

    Let me know if you want to play around with the over-voltage protection on the flight controller side and if you need any other details.

    Alex

    ESCs, Sensors and Accessories esc

  • VOXL 2 on SDK 1.8: Spektrum satellite - input_rc never published
    Eric KatzfeyE Eric Katzfey

    If you don't need NDAA compliance then a RadioMaster GX12 would be the best bet. Make sure to match the frequency of the M0184.

    ESCs, Sensors and Accessories

  • VOXL 2 on SDK 1.8: Spektrum satellite - input_rc never published
    Eric KatzfeyE Eric Katzfey

    If you want to move to a supported receiver you can get this: https://www.modalai.com/products/m0184?variant=50771746029872

    ESCs, Sensors and Accessories

  • Traditional Helicopter Support on VOXL 2 Mini with ArduPilot
    Eric KatzfeyE Eric Katzfey
    3. What limitations matter?
       Servo update rates are the main issue. QURT’s set_freq() does nothing, and get_freq() returns a dummy 490 Hz. Consequently, setting RC_SPEED does not configure the physical output rate. Frequency implementation
    
       ModalAI documents that the newer IO firmware generates one pulse per received command. Combined with QURT sending all eight channels together on each output push, this implies their pulse rate follows the output loop—normally around 400 Hz for heli—rather than the requested heli servo rate. That needs measurement on hardware. Servos or governors requiring lower or independently configured rates would need driver work. IO firmware timing
    
       Rotor RPM feedback is another limitation. QURT uses Empty::GPIO, so a conventional GPIO-connected Hall/optical RPM sensor lacks the interrupt support it needs. ArduPilot’s internal governor would require another supported RPM source or additional implementation. An external governor receiving a PWM command has different requirements. GPIO selection
    
       The current output driver also selects either an IO board or a ModalAI UART ESC on its single output UART; it does not implement simultaneous operation of both.
    
    VOXL 2 and VOXL 2 Mini

  • Traditional Helicopter Support on VOXL 2 Mini with ArduPilot
    Eric KatzfeyE Eric Katzfey

    Some analysis from Codex:

    2. Are swashplate, tail and throttle/governor outputs available through VOXL 2 IO?
       Yes, at the PWM transport level. QURT sends eight independent pulse-width values to the IO board, enough for a conventional three-servo swashplate, tail servo and throttle/external-governor input. ModalAI also documents successful ArduPilot flights using IO-board PWM servos on a fixed wing. That establishes basic servo support, but does not establish helicopter compatibility.
    
    VOXL 2 and VOXL 2 Mini

  • Traditional Helicopter Support on VOXL 2 Mini with ArduPilot
    Eric KatzfeyE Eric Katzfey

    I was able to successfully build the heli formware with:

    ./waf configure --board=ModalAI-VOXL2
    ./waf heli
    
    VOXL 2 and VOXL 2 Mini

  • VOXL 2 on SDK 1.8: Spektrum satellite - input_rc never published
    Eric KatzfeyE Eric Katzfey

    There is some related information in this post: https://forum.modalai.com/topic/4749/gpio-on-dsp

    ESCs, Sensors and Accessories

  • CP_GUIDE_ANG
    Eric KatzfeyE Eric Katzfey

    Testing back in 2023 showed some unpredictable behavior when enabling that. But we have not revisited this since then. The PX4 code base is now based on v1.18.0 so it's possible that parameter (feature) may work better now.

    General Questions

  • M0117-1 ESC Reports too high voltage
    Alex KushleyevA Alex Kushleyev

    Hello @k.stute ,

    This is odd, however this suggests a HW issue either in

    • the resistor divider used to scale the battery voltage to measurable range
    • or the 3.3V regulator used to feed the MCUs
    • ground decoupling path

    Was the ESC always reading incorrect voltage or something changed? This should not have been caused by a firmware update.

    The way the Voltage measurement works on our 4-in-1 ESCs, there is a single resistor divider and the resulting voltage is fed to all 4 MCUs. So the fact that all 4 channels are reporting higher voltage means it's not a single MCU issue, but it does not pin-point the actual problem.

    Regarding your question related to which voltage is used for control.. The measured voltage is, in fact, used for control, but it is capped for safety, in order to avoid really large deviations due to incorrect voltage (or incorrect battery plugged in). The esc parameters specify the nominal voltage, which, in your case is probably 15.5V or so and there is a safety cap around the nominal voltage (about +/- 15% around nominal votlage) that caps the measured voltage, so that the capped voltage is used for any voltage-based compensation in the RPM controller.

    There is a VDD test point (labeled) in the bottom left corner of the ESC, right next to the mounting hole, you can check to make sure that voltage is close to 3.3V (within a few %). Also, the resistor divider location is marked below, you can visually check to make sure it's ok (15K and 3K).

    If you are able, please double check both. Also, one more check, please make sure the voltage between GND (at the battery input pad) and the GND_FILT pad is minimal (otherwise this could mean the ground de-coupling resistor is bad).

    eda2f2cb-b1ac-4f24-a8af-3f9ce9f0a85a-image.jpeg

    20033e92-cca2-4fb4-856f-5a17c7dd6afc-image.jpeg

    Alex

    ESCs, Sensors and Accessories

  • Traditional Helicopter Support on VOXL 2 Mini with ArduPilot
    Eric KatzfeyE Eric Katzfey

    We have not tested traditional helicopters with any of our products. And I'm not aware of any of our customers doing so either. I'll take a look and see if I can come up with some answers to your other questions. It certainly would be neat to see someone use the VOXL 2 mini with a traditional helicopter.

    VOXL 2 and VOXL 2 Mini

Member List

adminA admin
modaltbM modaltb
Chad SweetC Chad Sweet
tomT tom
James StrawsonJ James Strawson
Hector NevarezH Hector Nevarez
Paul NusserP Paul Nusser
Matthew BorowskiM Matthew Borowski
zauberflote1Z zauberflote1
Jaroslav RichtersJ Jaroslav Richters
Maxwell SchaeferM Maxwell Schaefer
JacobJ Jacob
wilkinsafW wilkinsaf
N Nathan Raras
Zachary Lowell 0Z Zachary Lowell 0
Zachary LowellZ Zachary Lowell
J Jacob Camarillo
Dobry KolaczD Dobry Kolacz
Cliff WongC Cliff Wong
Jeremy SchmidtJ Jeremy Schmidt
  • Login

  • Don't have an account? Register

  • Login or register to search.
  • First post
    Last post
0
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups