Installing VOXL IO on Sentinel Drone – QUP2 and QUP7 Conflicts
-
@tonygurney Did you want to control the gripper using an application on Linux? Or as a driver in PX4?
-
@Eric-Katzfey I’m trying to control the gripper using a Python script running in a Docker container on Linux. My plan is to use pymavlink to listen for remote controller commands, like a specific channel input, and then trigger the gripper based on that input. So I think it's not integrated directly as a PX4 driver; it’s more of a companion application running alongside PX4 that reacts to MAVLink messages in real time.
-
@tonygurney One option is to use the ESC board. It has PWM outputs. There is a
voxl-send-esc-pwm-cmd
utility on your VOXL 2 that can be used to send PWM commands to the ESC. However, with this option you would need to solder the PWM connections directly to the ESC board and not everyone is comfortable with that. -
@Eric-Katzfey Correct me if I am wrong, but doesn't the ESC only have enough motor outputs for each of the propellers? So to add another PWM signal I need to either use a GPIO pin or the expansion voxl2 IO board
-
@tonygurney The ESC doesn't use PWM to control the motors. So it has the PWM channels free for other uses. The ESC used in the Sentinel actually has the PWM IO on a connector (J3) so no need to solder: https://docs.modalai.com/modal-esc-datasheet/
-
@Eric-Katzfey How can I control those PWM signals? Since at the moment I am not reading anything from any of the pins.
-
@tonygurney Try the test application
voxl-send-esc-pwm-cmd
. Source code is here: https://gitlab.com/voxl-public/voxl-sdk/services/voxl-io-server/-/blob/dev/tools/voxl-send-esc-pwm-cmd.c?ref_type=heads -
@Eric-Katzfey Thank you I got this helped a lot! I was able to get it working with root access!
-
@Eric-Katzfey when using the voxl-send-esc-pwm-cmd do you know how I would be able to trigger the VREF Pin on the ESC 4-in-1?
I have tried running:
sudo voxl-send-esc-pwm-cmd -p 12 -w 2201
sudo voxl-send-esc-pwm-cmd -p 11 -w 2000and when I measure the voltage from that wire I get ~0.01V which I presume to be noise.
Is there something that I am missing?
I am looking to produce a 5V Rail.
-
@tonygurney , I am assuming that you are using the ESC hardware version M0134 (you can confirm using
voxl-esc scan
tool.Here is the datasheet for M0134.
https://docs.modalai.com/modal-esc-datasheet/This ESC has an option (via installing a 0 ohm resistor) to provide 3.3V to pin 1 of J3. This is the same voltage that is used for the MCUs that run on the ESC and should be used with caution (if this voltage rail is brought down by overloading, the ESC will shut down). Please see image below that shows where 0 ohm resistor should be (carefully) installed to enable 3.3V on pin1 of J3 (marked in red)
If you actually wanted 5V (VAUX), that is available on the other side of the board via two test points at the edge of the board. This voltage rail is provided by a separate switching regulator. See the following section : https://docs.modalai.com/modal-esc-datasheet/#neopixel-led-support
If you REALLY need 5V to be present on pin1 of J3, then you can add a small wire jumper from the VAUX test point directly to the pin1 of J3 (which is marked with a white dot). This pin 1 of J3 is normally disconnected. Please only do this if you are comfortable performing this type of soldering and we cannot guarantee the results :).
Alex