VOXL 2 IO - 8 PWM channels & Futaba (SBUS) Rx
-
@Alex-Kushleyev Yes of course, I am trying to experiment with ground vehicles but in order for proper operation the motors need to reverse direction for forward and reverse driving. I dont have a modalai in my setup. I wanted to have 4 channels of dshot so my motors could allow for forward and reverse operation, and since the other 4 PWM are still available on the M0064, I could use them for other servo/actuators. I am trying to understand how others may have configured the UGV or rover options using voxl2/ESC combos but have had no luck in having a working setup.
-
@Alex-Kushleyev Im starting to think the problem may be my 4in1 ESC I have chosen to power the motors as its meant for drone motors not drive motors. Although I dont see why it wouldn't work since turtlemode allows you to reverse motor direction on demand. I guess I dont know what PX4 expects for an ESC of that vehicle type as there is no documentation I could find on what ESC to use.
-
Is your ground vehicle a direct drive BLDC (or do you have a gear box?). Direct drive motors usually require FOC control because wheels typically spin much slower than drone propellers and you need frequent start / stop and high torque / low speed operation.
Do you have an ESC that uses FOC control with dshot input?
Non-FOC control would work if you have a gearbox, but there may still be some jittering at very low RPM.
Alex
-
@Alex-Kushleyev Yes it does have a gearbox, and good to know I considered using FOC for avoiding it but I needed quite a bit of torque.
This is the ESC im currently using as it supports PWM/dshot/etc but its just a basic 4in1 meant for flight so I am not sure if I can confugure it to otput bidirectionally ex: 1500uS is zero 1050 is full reverse and 1950 is full forward.
-
@Gary-Holmgren, do you have any ModalAI ESCs? If so, which one? I can help you test it with a geared BLDC motor.
Alex
-
@Alex-Kushleyev Unfortunately I do not have one, but if that is the only solution here I would think about getting one.
-
@Gary-Holmgren , since you already have the IO board M0065 and the Tmotor ESC, you can try the M0065 approach. I will follow up in a few days.
Meanwhile please make sure that you can communicate to VOXL IO (M0065) board from your Linux PC or VOXL2 using
voxl-esc
tools. You should be able to runvoxl-esc-scan.py
and the board will be detected (if using VOXL2, you can plug M0065 into the 4-pin ESC port) J18 : https://docs.modalai.com/voxl2-connectors/#j18-uart-escvoxl-esc tools: https://gitlab.com/voxl-public/voxl-sdk/utilities/voxl-esc (they are also shipped with the SDK, you can find it in /usr/share/modalai/voxl-esc-tools/)
Alex
-
I was just thinking that another option for you is to get a standard reversible ESC that is designed for RC race cars - those ESCs support reversing. I am assuming 1500us pwm signal is neutral , 2000us full forward, 1000us full reverse.
You would need 4 of those and should be able to use PX4 standard PWM output.
It is probably best to use ESCs designed for RC cars, so they are tuned for robust start-up, etc. Those ESCs also often come with their own fans for cooling, since you don't have propellers blowing air over the ESC.
For example, you can even buy a motor with integrated ESC : https://www.losi.com/product/tazer-twin-2-in1-3000kv-brushless-motor-45a-esc-combo-2s-ec3/DYNS1450.html . I have not tried it, but i do have a race car with a Tazer ESC, which is reversible and is controlled by a standard Spektrum receiver.
Alex
-
@Alex-Kushleyev I was able to connect my 4in1 esc to blheli32 suite and change it to bidirectrional mode, so <1500uS is reverse 1500uS is neutral and >1500uS is forward it works perfectly fine with a PWM controller attached to the signal pins of the ESC. But when connected to a VOXL2 configured to be a rover in PX4 it will not output anything to the motors. I have even tried using the actuators test commands and nothing. The ESC is attached to to the VOXL 2 IO PWM out. It seems there may be soemthign wrong with trying to use a rover vehicle on VOXL 2. I changed the px4-config and disabled daemon mode to try and star and stop the px4 modules manually with qshell but no luck.
-
The esc driver in px4 receives data from a “mixer” module. There are different mixers for different vehicle types. It is possible that the mixer for your UGV vehicle type is not compiled for or not running on voxl2.
Px4 support of these vehicle types is supposedly experimental, so additional investigation may be required on your end :). We have not tried the ground vehicle mixer.
Alex