Can you power VOXL2 from the ModalAI 6s ESC?
-
@Alex-Kushleyev - Hi Alex! I'm just checking in to see how you made out with the new ESC boards.
I had another quick question. I went to upgrade the firmware on the ESC I have and I am getting an "unknown board detected" error when I run voxl-esc. Any thoughts?
Thanks again for the help!
Matt -
You have an old version of
voxl-esc
tools (probably old SDK which includes the tools).Board ID 41 is M0134-6, which should be the ESC board that you have.
Are you able to update the VOXL SDK to 1.1.1 or 1.1.2, so that you have the latest
voxl-esc
tools and the latest firmware.Alternatively, you can manually get
voxl-esc
tools from gitlab (dev branch has latest): https://gitlab.com/voxl-public/voxl-sdk/utilities/voxl-esc . You could put that on VOXL2 and run the scripts from that location. the following script should auto detect your esc board and update the firmware automatically : https://gitlab.com/voxl-public/voxl-sdk/utilities/voxl-esc/-/blob/dev/voxl-esc-tools/voxl-esc-upload-firmware-all.sh . However if your VOXL2 system image is too old, the latestvoxl-esc
tools will be incompatible with that (due to old version of UART bridge that is used to communicate to the ESC)..Regarding the new 6S ESC, our tests have been going really well and we should have boards available to purchase for beta testing starting possibly some time next week. I am going to get the board specs ready within a few days. Would you be potentially interested in beta testing? if so, I can share the link once it's available.
I'll try to share some more details on the new ESC shortly.
-
@Alex-Kushleyev - We'd love to beta test! Just let me know.
I updated the SDK to v1.1.2, but for some reason I don't see the ESC channels in the QGC params anymore. What sku should I set for myself if I am running a custom quadcoptor frame? I am currently setup as a test bench and I'm wondering if that's why I don't see the motor/actuator params.
Thanks!
Matt -
Sorry to bother you again - I tried to do an update / upgrade from the command line using the voxl-esc in the new SDK and I get an error. There really isn't any info as to why, but I was hoping you can help me figure it out.
I also am unable to set the ESC and battery monitor to anything. I am using the 4 in 1 ESC and the current sensor that came with the VOXL2.
Thanks!
Matt -
I am not sure about the px4 params. Need to ask someone else (will check).
-
@Matthew-Wellner
Voxl-esc script errors out because the board is not recognized. Strange, i thought sdk 1.1.2 had the m0134-6 board supported. I will need to check or you can get latest voxl-esc from the repo like i mentioned (dev branch). Make sure to stop px4 before you use the esc tools directly (not using voxl-esc wrapper). To stop px4, run systemctl stop voxl-px4 -
Here is a preview of our new 6S ESC. Some preliminary Specs. Please treat them as unofficial specs and results, we will be publishing official specs in our document very soon.
- Power input : 3S-6S
- Power Output
- 5V @6A for VOXL2 (or 3.8V @6A for VOXL2 mini, as a variant)
- 16.8V regulated @500mA (targetted for optional VTX or other accessories)
- AUX 3.3V / 5.0V @ 500mA
- always ON payload power connector (4A rated connector, battery voltage)
- Current measurement : Total up to 200A
- Maximum sustained current per channel: TBD, around 40-50A, dependent on air flow cooling
- dedicated onboard temperature sensors (top and bottom)
Some preview of test results:
- using Xing2 2207 1855kV motors with 5.1x4.1x3 blades
- 6S 1350mAh Lumenier Extreme battery
- step all 4 motors from 20% power to 100% power and hold for 2 seconds
- Transient current spike saturates 200A sensor, estimated 300A+
- steady state current 140-110A (gets lower as battery votlage drops)
- this is a very extreme use case which even the battery could not sustain very long. A 1350mAh battery will completely discharge in about 50 seconds at 100A constant load (in theory). In practice much sooner
Some RPM step tests using the same set up, single motor:
- step test between 12k and 25k rpm
- 20 runs plotted on top of each other to check for consistent performance
- RPM tracking works well under dropping voltage conditions
-
@Matthew-Wellner , i figured out why your voxl-esc script was not working. The wrapper script was missing support for M0134-6, so even though the underlying python scripts were able to recognize the board, the wrapper script did not. I made a fix here:
You could just make that change manually in your
/usr/bin/voxl-esc
wrapper and get the firmware upgraded.In order to get battery voltage and current, you need to enable the voxl power monitor driver (voxlpm), it should be present in all the voxl-based px4 configs except for the one that is using the mini ESC (which has the VOXL power regulator built into the ESC)
-
-
This looks great! Our flights will be much longer at a much lower current draw with larger props.
-
I think I got it working. One other question - Do I need to set anything in the params if I am using a TBS crossfire nano receiver? The docs seem to suggest that I just need to hook it up and put it in Mavlink mode for it to work, but I don't see any activity through px4-listener.
Thanks again!
-
Just to double check... I wired the connector: Rx (VOXL)<->Tx (XFire) and Tx (VOXL) <->Rx (XFire) like you'd normally hookup a UART. This is expected, right?
-
@Matthew-Wellner , does this help regarding hooking up the receiver? https://docs.modalai.com/voxl2-rc-configs/ (voxl2) and https://docs.modalai.com/voxl2-mini-rc-configs/#crsf (voxl2 mini)
Regarding PX4 config, if you look at voxl-px4.conf, it should have something like this:
# RC: # Tell PX4 which RC transmitter to use. # Use EXTERNAL when getting RC control from external Mavlink messages (e.g Via QGC) # Options include: [SPEKTRUM, CRSF_MAV, CRSF_RAW, M0065_SBUS, EXTERNAL, FAKE_RC_INPUT] RC=CRSF_RAW
-
I seem to have everything configured correctly at this point. Is there anything special that I need to configure the ESC? The ESC spin check works from the command line, but when I try and arm from QGC I get an error that says "ESC failure detected".
Thanks again for the help!
Matt -
Double check baud rate in esc params and px4 param for modalai esc baud rate - they have to match
-
-
Yeah hmm.
Please double check voxl-px4.conf should have:
ESC=VOXL_ESC POWER_MANAGER=VOXLPM
also check output of:
px4-listener esc_status
Is the ESC blinking blue LEDs while PX4 is running? it should.
You can try stop / start voxl-esc driver:
px4-qshell voxl_esc stop px4-qshell voxl_esc start
P.S. the baud rate is 250000 (250K)
-
I got it working!
Two quick additional questions:
- I'm not getting RC RSSI data in QGC even though I am getting it via px4-listener input_rc. Do I need to configure any parameters in QGC to enable this?
- I tried to do an ESC calibration via the scripts in /usr/share/modalai/voxl-esc-tools/ and I just get a bunch of errors. I disabled the bridge via voxl-esc disable_bridge, but I still get errors running the python scripts directly.
- I'm not getting RC RSSI data in QGC even though I am getting it via px4-listener input_rc. Do I need to configure any parameters in QGC to enable this?
-
It probably due to voxl-px4, if you just run the voxl-esc, it will stop voxl-px4 however if you are running python scripts directly it does not.
I would try stopping voxl-px4 as below, check and then run voxl-esc scripts and see if I still get the same issueYou can check if px4 is running:
systemctl is-active voxl-px4
stop px4:
systemctl stop voxl-px4
Just in case if this is of any help as I had similar issue and above resolved it.
-
@Vin , you are correct.
"enabling" the bridge via
voxl-esc
wrapper script simply stops px4, effectively doingsystemctl stop voxl-px4
and "disabling" the bridge will re-enable px4. So @Matthew-Wellner got it backwards.However, it is sufficient to just use
systemctl stop voxl-px4
before usingvoxl-esc python scripts
directly. then re-start px4 withsystemctl start voxl-px4
. Note that there is a difference betweensystemctl disable
andsystemctl stop
- thedisable
option disables auto start on boot, but does not stop it right away.stop
will actually stop it right now but will not affect autostart.I am not sure about RC RSSI data, it's beyond my area of expertise. Perhaps open another question on the forum regarding RC, so other devs can pick it up.
-
@Matthew-Wellner , just for a quick sanity check, can you share what motor / props you are using with M0134-6? i just want to confirm that the ESC will be able to support the motor/prop combination.