Skip to content

Updated the code from the original project repository to work with remapped pins from a drone flight controller, further solved the drone disarming issue.

Notifications You must be signed in to change notification settings

hans-owen/biologically-inspired-perching-drone

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

49 Commits
 
 
 
 
 
 
 
 

Repository files navigation

Biologically Inspired Perching Drone

This project aims to develop an effective attachable modular device for enabling drones to perch on cyclindrical objects, while maintaining the ability to land on flat surfaces. It was originally inspired by the claws of birds of prey and their unique biological ratcheting mechanism that allows them to tightly and securely grip with their talons without relying entirely on muscular strength.

By using 3D printing manufacturing and easy to find off-the-shelf parts we hope to provide a design that is accessible and easily implemented into different drones. Additionally, we hope to make it easy for others to contribute their ideas, modifications, and remixes of original designs.

Currently, only a single preliminary version has been released, which offers effective perching for 5-inch drones that can be manually triggered by a pilot via BetaFlight firmware. Although this is a good first-step/proof-of-concept, the idea has far more potential. Further iterations could offer support to more drones of different sizes and software that functions together with autopilot firmware (e.g., Ardupilot) would allow for full automation.

PerchedImage

Table of Contents

  1. Directory Structure
  2. Getting Started
    1. 3D Printing
    2. Hardware Assembly
    3. Electronics Assembly
    4. Software
  3. How to Use
    1. Setting Up FC firmware
    2. Connect ELRS controller
    3. Actuate Switch
  4. Credits
  5. Licences

The files within the project contain both the hardware and software required to build a claw attachment for a drone.

Directory Structure

Getting Started

To get started with constructing the modular perching attachment for drones ensure you have the following components, links (UK purchasers) have been provided to the exact components used in our version of the build:

Claw

Drone

Here is a list of the components we used in the construction of test drone in case you would like directly replicate the build, however this project can be easily adapted to any drone flight controller:

3D Printing

To 3D print the mechanicals parts for the perching claw, you need to download the relevant STL files from the link below:

When printing components with gears ensure that the layers of the print are parallel to the direction of force transmission from the gear to reduce the risk of gears shearing (see below). The design is fully finctional with 100% in-fill PLA, however, can be made more robust using PETG or ABS filaments.

If you wish to remix the hardware designs, the SolidPart files can also be found from the link above and consider submitting the modified design as a remix so that others can easily find custom designs that may be useful for them.

Hardware Assembly

  1. After printing cut out and attach sandpaper to the inside of the claw with superglue to provide a high friction surface for the gripper.
  2. Attach the metal-geared DC motor to the side mount of your choice and screw in place with the 1.5mm self tapping screws.
  3. After the motor is attached, press-fit the bearings into each of the cut-outs in the side mounts.
  4. Press fit the claw onto the motor and bearings, ensure that when the two claw part gears mesh that the claws themselves are parallel with each other.
  5. Press fit M3 nuts into the cut-outs on the top mount.
  6. Attach and super-glue the top mount to the side mounts with claws attached by inserting the side mount tabs into the top mount.
  7. Attach the gripper to the drone by threading the 25mm M3 screws through the flight controller mount and the drone frame, screw them into the nuts of 3D-printed top mount until the FC and the gripper are firmly attached to the drone frame. (Do not overtighten as this can cause damage to your FC!)

This concludes the hardware assembly of this project, next we move onto the electronics and finally conclude with the software.

Electronics Assembly

We recommend to first layout the circuit on a breadboard (see picture below) and perform a test to ensure all your components are functional before soldering them to a prototyping board. Breadboard/

The simple circuit uses a Raspberry Pi Pico to take a 3.3V GPIO output from the drone FC and use it to actuate the claw mechanism via an H-bridge. This FC GPIO pin can be mapped to the RF transmitter to manually actuate the claw or be addressed directly in the FC firmware. A shunt resistor is used to measure the current used by the motor and turn off the motor when the claw is fully opened to prevent the mechanism from damaging itself and wasting power. Once the circuit is functional on a breadboard it can easily be soldered together using strip-board for a permanent solution capable of being mounted on the drone. ElectronicsMount/

Software

The software was developed using VS Code and platform.io to compile the code for the Raspberry Pi Pico using the Arduino framework. To compile the firmware for yourself, download the control_code directory and open in VS Code with the platform.io plug-in, once the project is recognised simply compile the code using platform.io and upload the firmware.uf2 file to the RPi Pico via the boot button. To set up the drone FC firmware see how to use section below.

How to Use

Once the hardware and electronics have been assembled and the mechanism software has been uploaded, to function the mechanism expects a GPIO output from the FC to actuate the claw. This tutorial focuses on manual actuation of the claw via an RF transmitter used to fly the drone manually, specifically using BetaFlight firmware.

Setting Up FC Firmware

BetaFlight is the most common drone FC firmware for FPV drones and offers a stable platform for quickly enabling the manual flight of a custom built drone.

  1. First set up BetaFlight according to the specifications of your FC of choice and drone set up (link to General BetaFlight Tutorial).
  2. To enable a GPIO pin on the FC for the claw mechanism GPIO resource remapping is required, here we have embedded a good YT tutorial with resources that show how to easily implement this with your drone set up. BetaFlight Resource Remapping Tutorial.
  3. Ensure that the GPIO pad you select on the FC has a wire connecting it to the correct pin on the RPi Pico, along with VCC and GND for powering the Pico.

Another common FC firmware is iNav, which offers some automation advantages over BetaFlight by including automated drone pathing, auto-hover, return-home, etc.

  1. Set up iNav according to the specification on your FC and drone set up (link to General iNav Tutorial).
  2. To perform resource remapping on iNav is more difficult than in BetaFlight, to do this you have to download the iNav source code (relevant version!!), modify the resources in the code and then recompile the firmware and manually upload the firmware to the FC (link to tutorial).

Connecting ELRS Controller

Once the GPIO resource has been effectively remapped according to the firmware type and tutorials above, the controller can be bound to actuate this GPIO pad in the firmware configuration (both BetaFlight and iNav). To do this most often the GPIO resource is mapped to USER1, a custom user selectable mode, when setting up RF transmitter. By setting a switch (AUX1,2,3,4 etc.) on the controller to trigger USER1, it triggers the mechanical claw activation. Reflash firmware after ensuring the controller activates USER1.

Actuate Switch

Finally, when ready to test, unplug the drone from the firmware configurator and ensure LiPo is plugged in and controller is connected. The claw acutation should now be possible when you activate the switch (AUX1,2,3,4 etc.) on your controller that you mapped to your custom user mode (USER1), which pulls the remapped GPIO pin high for the RPi Pico.

Credits

MGCorbin christiankuhlmann T-Omole hans-owen

Licenses

Hardware (all files stored under the hardware folder) are under the Creative Commons Attribution-ShareAlike 4.0 International license.

Firmware (all files stored under the claw_control folder) are under the MIT license.

See each folders LICENSE.txt file for details.

Hardware

In this folder you can find STL files that can be downloaded for 3D printing and the original parameterised SolidWorks CAD files and assemblies that can be modified to customise/remix the design to suit different drone and hardware configurations.

  • Bivalve_7_talon/ - folder containing the Solidworks part files and STL files for a version of the bivalve claw mechanism with additional claws (3-4 config).
  • Bivalve_Claw_Mechanism/ - folder containing the SolidWorks part files, STL files, and assembly for the bivalve claw mechanism design.
  • Tendon_Arm/ - folder contianing the STL files used during the testing and development of the tendon claw design.

About

Updated the code from the original project repository to work with remapped pins from a drone flight controller, further solved the drone disarming issue.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • C++ 100.0%