The objective of this project is to build an autonomous drone able to follow a path, detect and pass thru gates and complete course.
Corresponding challenge : https://www.roboracingleague.com/
Meetup : https://www.meetup.com/fr-FR/DIY-Robocars-France/
Youtube channel : Link
Slack team : Link
This github repo is divided into 2 parts :
- Drone build : how to mount the drone, see below
- Brain setup : the software part including the Jetson Nano setup. See in brain directory
Frame : Realacc Martian IV 7 Inch 300mm Wheelbase 4mm Arm Carbon Fiber FPV Racing Frame Kit
Frsky XM+ (SBUS) EU LBT receiver : Link
4 x Motors XNova FS Line 2207 - 1700 KV : Link
4 x three-bladed propelers DALprop TJ6045 Red : Link
4 x ESC AIKON AK 32 35A 6S BLHeli32 : Link
UBEC : Matek Systems UBEC DUO 4A/5~12V et 4A/5V
4S LIPO :
Radio Controler - Taranis X9D plus
But other RC cheaper alternatives are ok. Adapt your RC receiver according to your radio
Intel realsense T265 & D435
and their cables at the right size :
NVIDIA Jetson nano
Wifi card : Link
better with these 2 x molex antena for wifi : Link
Jetson alimentation : Link
and to connect the UBEC to the Jetson you will need this kind of connector : Link
3D prints :
- core :
- prop guard x4 :
- STL : ref
Mount motors and ESC on each arm and solder the wires. Beware to invert wiring of motor 1 and 2 (they spin counterclockwise).
Mount powerboard delivered with Pixhawk 4 mini. Solder the wires
Connect powerboard to Pixhawk with connectors provided with Pixhawk
Connect Frsky XM+ to Pixhawk (use connector provided with Pixhawk and solder to Frsky XM+)
Connect your computer to Pixhawk (via micro usb)
Download, install then open QGround Control on your computer
You should have now QGC connected to your Pixhawk
PX4 Firmware version used and tested : 1.10.0
Airframe : select 3DR DIY QUad
Sensor setup : follow instructions
Radio setup : after having connected your RC (see below), check channel 1 to 12 are active and that Roll, Pitch, Yaw and Throttle are correct
Parameters :
- EKF2 :
- EKF2_AID_MASK : 24
- EKF2_EVP_NOISE : 0.10 m
- EKF2_HGT_MODE : vision
- GPS : disabled
- MAVLINK :
- SERIAL : SER_TEL1_BAUD : 921600 8N1
- SYSTEM :
- Developer :
Start and set your taranis so that it connects to your Frsky XM+. Tutorial : https://www.youtube.com/watch?v=ZOBwwNpjNrY
Set your 12 first channel (first 4 for attitude control). See at end of Readme.md in brain directory for some details
Without your propelers mounted, connect your 4S battery to your drone and turn on your Taranis.
Arm your drone (from taranis) and check that motors spin in the right way :
You can then test your drone with propelers but outdoor in safety environnement (with no obstacle 10m around and above) and in stabilized mode. Objective is to check that drone can takeoff (no more than 50cm !), yaw, pitch and roll.
Be ready anytime to disarm if something goes wrong !
If it's ok, you can move on to the next step : go to Assembly autonomous parts.
inject with your soldering iron the 4x in the hole of 3Dprint Camera_support
Add Support silentbloc M3 2x4 and fix the Support_frame with Camera_support with M3 screws
If you want to mount D435 camera :
- use screw and put through 3D print 435_screw_support
- put it through the 3D Print camera_support
Be aware that you won't be able to mount this after having screwed the Support_frame on the quad
Then Mount the 3D print Support_frame and Camera_support on the quad frame.
Be careful to pass the UBEC and XT60 wires throuh the middle of the frame
Be careful also to put the battery strap on the Support_frame
Screw the Support_frame on your quad only after the UBEC is soldered (se below)
Solder your UBEC input voltage wires to Battery Pins of the Powerboard.
Be careful to pass the wires though the middle of the frame
Screw (3M) the Support_frame on your quad
inject with your soldering iron the 4x in the hole of 3Dprint Support_frame
Add Support silentbloc M3 2x4 and fix the Support_frame with Jetson_box with M3 screws
Connect TELEM1 port of Pixhawk to GND/RX/TX pins of the Jetson (pins 8, 10 and 12)
Insert your T265 realsense camera to the Camera_support and connect it to one of the Jetson USB port