element14 Community
element14 Community
    Register Log In
  • Site
  • Search
  • Log In Register
  • Members
    Members
    • Benefits of Membership
    • Achievement Levels
    • Members Area
    • Personal Blogs
    • Feedback and Support
    • What's New on element14
  • Learn
    Learn
    • Learning Center
    • eBooks
    • STEM Academy
    • Webinars, Training and Events
    • More
  • Technologies
    Technologies
    • 3D Printing
    • FPGA
    • Industrial Automation
    • Internet of Things
    • Power & Energy
    • Sensors
    • More
  • Challenges & Projects
    Challenges & Projects
    • Design Challenges
    • element14 presents
    • Project14
    • Arduino Projects
    • Raspberry Pi Projects
    • More
  • Products
    Products
    • Arduino
    • Dev Tools
    • Manufacturers
    • Raspberry Pi
    • RoadTests & Reviews
    • Avnet Boards Community
    • More
  • Store
    Store
    • Visit Your Store
    • Choose Another Store
      • Europe
      •  Austria (German)
      •  Belgium (Dutch, French)
      •  Bulgaria (Bulgarian)
      •  Czech Republic (Czech)
      •  Denmark (Danish)
      •  Estonia (Estonian)
      •  Finland (Finnish)
      •  France (French)
      •  Germany (German)
      •  Hungary (Hungarian)
      •  Ireland
      •  Israel
      •  Italy (Italian)
      •  Latvia (Latvian)
      •  
      •  Lithuania (Lithuanian)
      •  Netherlands (Dutch)
      •  Norway (Norwegian)
      •  Poland (Polish)
      •  Portugal (Portuguese)
      •  Romania (Romanian)
      •  Russia (Russian)
      •  Slovakia (Slovak)
      •  Slovenia (Slovenian)
      •  Spain (Spanish)
      •  Sweden (Swedish)
      •  Switzerland(German, French)
      •  Turkey (Turkish)
      •  United Kingdom
      • Asia Pacific
      •  Australia
      •  China
      •  Hong Kong
      •  India
      •  Korea (Korean)
      •  Malaysia
      •  New Zealand
      •  Philippines
      •  Singapore
      •  Taiwan
      •  Thailand (Thai)
      • Americas
      •  Brazil (Portuguese)
      •  Canada
      •  Mexico (Spanish)
      •  United States
      Can't find the country/region you're looking for? Visit our export site or find a local distributor.
  • Translate
  • Profile
Attack of the Drones
  • Challenges & Projects
  • Project14
  • Attack of the Drones
  • More
  • Cancel
Attack of the Drones
Blog Predictive maintenance for drones
  • Blog
  • Forum
  • Documents
  • Events
  • Members
  • Mentions
  • Sub-Groups
  • Tags
  • More
  • Cancel
  • New
Attack of the Drones requires membership for participation - click to join
Blog Post Actions
  • Subscribe by email
  • More
  • Cancel
  • Share
  • Subscribe by email
  • More
  • Cancel
Group Actions
  • Group RSS
  • More
  • Cancel
Engagement
Author: vishwasn
Date Created: 4 May 2021 3:27 PM
Views: 236
Likes: 5
Comments: 0
  • attackofthedronesch
Related
Recommended

Predictive maintenance for drones

vishwasn
vishwasn
4 May 2021
The use of drones has increased over time due to leading technological advancements in the miniaturization of electronics, composite materials, machine learning, vision algorithms, and battery technology.

 

IMG_20190824_111049.jpg

                                                            Avnet Brainium Module mounted on the drone.

They are everywhere: Drones are now used in agricultural automation, surveillance, photography, logistics, organ delivery, operation and rescue missions, and a wide variety of researches.

Quadcopters and multirotor: Most of the drones are multi-rotors like quadcopters, hexacopters, etc. fixed wing drones are very few and are used mostly for military surveillance due to their long endurance. Conventional quadcopters are highly inefficient by design and need a lot of power to hover and travel because it will be pushing air against gravity. In order to fly against gravity, it should push a commensurate amount of air.

Quadcopters are special: But what makes quadcopters stand out is their agility to move and maneuver in tight spaces and capability of hovering at a point. This is quite difficult for the normally fixed-wing drones. Staying at a point in free space helps you to record wonderfully stable videos and take stunning photographs of building in aerial view and many more things.

But they are dangerous: In order to hover or fly against gravity brushless motors with very high RPM(revolutions per minute) are used in drones. These brushless motors are fitted with propellers that are razor sharp so that they can cut through the air experiencing very little air friction. This makes the whole system very dangerous as there are 4 very sharp blades spinning at 11000RPM with a Li-Po (Lithium polymer) battery which can overheat and explode in midway so this kind of system needs continuous care or health monitoring in order to work properly. Manual inspection of propellers are not enough as any break in the propeller can lead to fatal injury to drone pilot and people nearby.

So predictive maintenance of drones is an essential thing in this technology-driven world.

Another main thing is that this module can be directly used for the predictive maintenance of industrial machines also. Just the training data for vibration AI is different.

 

 

 

 

 

 

 

So Let's see how to build this.

Get the required things. Here we are using a Raspberry Pi, A drone with a flight controller and the most important thing is our avnet brainium module.

Let's connect the brainium module to the Raspberry Pi via Bluetooth.

 

 

 

sudo bluetoothctl scan on pair [MAC address]


 

Upon successful pairing connect the device by entering the following command.

 

connect [MAC Address]


 

This makes the connection to the Raspberry Pi and hence we can use Raspberry Pi as a Gateway device. It's better as we can easily mount a standard Pi or even Pi Zero in drones or industries instead of a smartphone. Through the gateway, it can send the data to the cloud to generate AI models.

Here I have chosen Raspberry Pi because we can make the gateway as mobile and it can fly with the drone.

 

 

Step 1: Connect the AI

I have connected my Raspberry Pi with the SmartEdge Agile device.

 

bluetooth connection.PNG
                                                        The terminal of Raspberry Pi

 

 

Step 2 : Train the model

 

Create a workspace on the website. There are many tutorials on this on the hackster.io website. You can find this easily.

 

You don't have permission to edit metadata of this video.
Edit media
x
Upload Preview

 

Workspace.PNG

 

                                                Brainium Module Configuring UI

 

 

 

I have trained the model for following situations:

1. Broken propeller

2. Broke connection

3. Damaged propeller, i.e dangerous to fly

4. Stationary drone

5. Drone running without propeller

6. Drone running with propeller

 

TRaining stationary.PNG

 

                                                              Training for different scenarios

 

 

 

 

 

 

 

Step 3: Testing the trained model

This is basically testing and fine-tuning the generated model. This helps to improve accuracy of the system

 

 

Drone Doctor.PNG
You don't have permission to edit metadata of this video.
Edit media
x
Upload Preview

 

 

 

Step 4: Notify using alerts

The results in the changes detected is set as alerts so that we can give notification through a buzzer. For this, we need an MQTT protocol for the real-time detection of alerts. I'm using Paho MQTT Library. and here is the code for the same.

Data recieved.PNG

                                                  Alerts for showing the detection of anomaly

 

Alerts.PNG

 

                                                                                Logged alerts

 

I have attached a buzzer to raspberry pi for the notification.

 

 

IMG_20190824_111724.jpg

 

                                      Raspberry Pi with Drone

You don't have permission to edit metadata of this video.
Edit media
x
Upload Preview

 

The predictive maintenance AI of this drone is so good that it was able to detect the modified propeller also.
Code repository: https://github.com/vishwasnavada/Vega
Future enhancements:
Instead of giving a buzzer indication, we can directly disarm the drone by sending the required PWM signal to the flight controller board.
Applications:
  • Drone health monitor for future cargo drones
  • Drone diagnostics tool for quickly detecting the fault

     

Anonymous
Element14

element14 is the first online community specifically for engineers. Connect with your peers and get expert answers to your questions.

  • Members
  • Learn
  • Technologies
  • Challenges & Projects
  • Products
  • Store
  • About Us
  • Feedback & Support
  • FAQs
  • Terms of Use
  • Privacy Policy
  • Legal and Copyright Notices
  • Sitemap
  • Cookies

An Avnet Company © 2022 Premier Farnell Limited. All Rights Reserved.

Premier Farnell Ltd, registered in England and Wales (no 00876412), registered office: Farnell House, Forge Lane, Leeds LS12 2NE.

ICP 备案号 10220084.

Follow element14

  • Facebook
  • Twitter
  • linkedin
  • YouTube