Can I use my Spacemouse to control a drone?

If you have questions or comments concerning any non-support related 3Dconnexion topic, please use this forum.

Moderator: Moderators

Post Reply
skan
Posts: 34
Joined: Sun Oct 05, 2014 10:30 am

Can I use my Spacemouse to control a drone?

Post by skan » Thu Jun 21, 2018 9:38 am

Is it possible to use my Spacemouse Pro to control a drone?
I have a Mavic Pro drone, that can be controlled from a smartphone or from it's Remote Controller that it can be connected to other devices.
Image

It would be nice to use a single 5-axis joystick instead of two.

Hypersonic
Posts: 262
Joined: Mon Jul 12, 2010 5:58 pm

Re: Can I use my Spacemouse to control a drone?

Post by Hypersonic » Thu Jun 21, 2018 10:51 am

Drones move just like the 5DOF camera does in Google Earth. I've been using a GoPro drone and think it's rather silly to have one stick control horizontal movements, another stick control yaw and vertical movement, and yet another control for camera pitch control. Put all of that functionality on an intuitive 3DMouse, snap one of these on it on the controller and forget all of those other control sticks!
https://www.3dconnexion.com/company/industrial.html

vickyaheer
Posts: 2
Joined: Tue Apr 16, 2019 1:57 am
Location: India
Contact:

Re: Can I use my Spacemouse to control a drone?

Post by vickyaheer » Thu Aug 08, 2019 2:57 am

Every drone has its own functionality. I used one of the drones named Tactic Air drone.

ricard.enquist
Posts: 2
Joined: Tue Sep 01, 2020 12:52 am

Re: Can I use my Spacemouse to control a drone?

Post by ricard.enquist » Sun Oct 04, 2020 3:31 am

I am using the SpaceMouse to control my Mavic Mini, very smooth and easy to fly! It did however require some hardware modifications to the drone RC.

The SpaceMouse connects to a USB host shield on an Arduino Mini, running code which I in large borrowed from this thread (big thanks to users mlkoch and DRogers96): https://forum.3dconnexion.com/viewtopic.php?f=19&t=5642

The Mavic Mini RC has potentiometers on the joysticks and gimbal wheel so I used five DACs, controlled by the SpaceMouse via Arduino to mimic the viper voltages. This means I had to cut and solder some wires inside the RC. A part from the obvious up/down, right/left and rotation, tilting the mouse forwards and backwards moves the gimbal up and down. The left button on the SpaceMouse inverts left/right movement of the drone, which is very convenient when switching from flying with the camera facing towards or away from your position. Also I added a couple of potentiometers to control the sensitivity of the SpaceMouse, which I found important especially for the rotation of the drone, which in turn is important for making smooth video. I use relays to switch the joystick potentiometer vipers to the DAC's, so if the Arduino fails or power is lost, the relays will switch back to the RC joysticks (otherwise in case of lost power the drone would act as if both joysticks were pulled fully down/left = not good). The Arduino and SpaceMouse runs of power from the Mavic Mini flymore combo battery pack. I mounted everything in a hardcase which fits the Mavic Mini unfolded, for quick deployment. I also checked the RC of Mavic Pro 2 and it uses a different system for the joysticks, with SPI interface, so probably a bit trickier to crack.

As a beginner drone pilot it's incredibly easy to make smooth panning shots with the SpaceMouse! I made this video on a trip to Hokkaido, shot by me and my wife, each having maybe 30min of flight experience with drones: https://youtu.be/CNc-mQ-byyw
Attachments
Packed case.jpg
Packed case.jpg (138.9 KiB) Viewed 432 times
Open case.jpg
Open case.jpg (157.57 KiB) Viewed 432 times
DroneControl.zip
(2.58 KiB) Downloaded 9 times

jwick
Moderator
Moderator
Posts: 2716
Joined: Wed Dec 20, 2006 2:25 pm
Location: USA
Contact:

Re: Can I use my Spacemouse to control a drone?

Post by jwick » Mon Oct 05, 2020 12:32 am

Fantastic!

Post Reply