Module 2: Core UAV Technology


Time

  • All systems run within the physics of the Universe time included.
  • Any computer must be able to count, and each calculation takes time.
  • A sense of time is crucial for robotics - time until battery death, next goal, etc.
  • Many robots require RTOS (Real Time Operating Systems) vs. traditional OS’s

Los UAVs necesitan medidas muy precisas interna y posiblemente externamente para tener un vuelo estable.

Entre los requisitos fisicos que necesitan para hacer su trabajo, esta una medida del tiempo muy precisa, con esto se pueden realizar correcciones en el vuelo en milisegundos o microsegundos por lo que el tiempo es critico para tomar decisiones rápidas y correctas.

Balance using Gyroscopes

  • Gyroscopes measure the change in rotation
  • Spinning objects are resistant to rotation (early gyroscopes relied on this and so does every bicycle to date)
  • Gyroscopes have helped humans maintain a stable course in shipping for centuries
  • Early target & recon drones were only a timing apparatus and gyroscope
  • MEMS Gyroscopes developed to fit in smartphones and detect screen movement

Precession Maths

https://en.wikipedia.org/wiki/Precession

  • Precession is a change in the orientation of the rotational axis of a rotating body. In an appropriate reference frame it can be defined as a change in the first Euler angle, whereas the third Euler angle defines the rotation itself.
  • In other words, if the axis of rotation of a body is itself rotating about a second axis, that body is said to be precessing about the second axis.
  • A motion in which the second Euler angle changes is called nutation.
  • In physics, there are two types of precession: torque-free and torque-induced.

Orientation (Up & Down) Accelerometers

Accelerometers sense acceleration

  • gravity is 9.8m2 towards the earth An accelerometer allows for self-leveling with no understanding of yaw

Orientation (North & South) magnetometer

A magnetometer allows for stabilization of yaw - “stay pointed this way”

A magnetometer measures the location of the magnetic poles; a digital compass N

MEMS - Electromechanical

An MEMS (micro-electromechanical system) is a miniature machine that has both mechanical and electronic components.

The physical dimension of an MEMS can range from several millimeters to less than one micrometer, a dimension many times smaller than the width of a human hair.

Developed for smartphones, these devices are largely responsible for current consumer sUAS.

Research: Mems - Hacked by laser

Photoacoustic or Optoacoustic Effect https://lightcommands.com/20191104-Light-Commands.pdf

https://www.hackster.io/news/mems-microphones-react-to-lasers-as-researchers-send-silent-voice-commands-to-smart-home-devices-a62153ee7bc1

Using Sonar for Liveness Detection to Protect Smart Speakers against Remote Attackers https://dl.acm.org/doi/abs/10.1145/3380991

Alexa Laser Hack / MEMS Photo-acoustic Effect

https://www.youtube.com/watch?v=pf4lHgKgBqo

Learn Sensors with Sense HAT

Waveshare Sense HAT board layout https://www.waveshare.com/sense-hat-b.htm

Memory

  • Some systems store flight data for review (not standardized)
  • Most systems use microSD cards
  • Cameras may store different/separate information
  • .DAT,.CSV,.TXT are the file formats used
  • Data interpretation is manufacturer specific

Batteries

  • At home you may use alkaline (non-rechargeable) or Ni-Cad (rechargeable) batteries
  • Lithium based batteries offer high capacity with low weight (used in most current phones)
  • Lithium batteries physically swell when charged and soften under depletion
  • Modern RC batteries can discharge 100+ Amps, and can catch fire while charging
  • Lithium batteries are made of multiple cells with 3.4v nominal voltage A 1912 illustration of a Leclanché cell https://en.wikipedia.org/wiki/History_of_the_battery

Motors

  • Most commercial UASS use brushless motors (invented for the floppy drive!)
  • Brushless motors allow for fine-tuned rotational control with minimal parts
  • Require ESC (electronic speed controls) to process motor signals

Brushed DC (Direct Current) motors use small brushes to apply a voltage across a dormant electromagnet (a magnet produced with electricity, so it can be switched on or off).

The Brushless Motor uses three electromagnets instead of one, and requires precision timing of each electromagnet. The ESC (Electronic Speed Control) is an external device.

Tello - Brushed Motor

Ryze confirmed Tello’s motor lifespan it’s about 40 hours Brushless Diagram

Inside a Drone - Brushless Motors

https://www.dji.com/cz/newsroom/news/inside-a-drone-brushless-motors Brushless motors take the aircraft into the sky and keep cameras level, so it’s a central core for drones.

A brushless motor has in its center an assembly of silicon-steel sheets and windings, known as coils.

This core does not spin, so it is called a ‘Stator’.

Surrounding the stator is an assembly called a ‘Rotor’ which contains a magnet yoke and a circle of permanent magnets.

In a single-phase motor, when electricity is fed into the stator, a magnetic field that attracts and repels the magnets in the rotor causing it to spin through 180 degrees, is created.

To keep it spinning, the poles of the electromagnet are switched every 180 degrees.

This is how the force that powers the motor’s motion is created.

Typically, the motor found on a drone is triple-phase, but this basic principle remains the same.

What is PID in a Quadcopter?

https://oscarliang.com/quadcopter-pid-explained-tuning

PID stands for Proportional, Integral, Derivative, it’s part of a flight controller software that reads the data from sensors and calculates how fast the motors should spin in order to retain the desired rotation speed of the aircraft.

The goal of the PID controller is to correct the “error”, the difference between a measured value (gyro sensor measurement), and a desired set-point (the desired rotation speed). The “error” can be minimized by adjusting the control inputs in every loop, which is the speed of the motors.

What is PID in a Quadcopter? cont

https://oscarliang.com/quadcopter-pid-explained-tuning

There are 3 values in a PID controller, they are the P term, I term, and D term:

“P” looks at present error - the further it is from the set-point, the harder it pushes

“D” is a prediction of future errors - it looks at how fast you are approaching a set-point and counteracts P when it is getting close to minimize overshoot

“I” is the accumulation of past errors, it looks at forces that happen over time; for example if a quad constantly drifts away from a set-point due to wind, it will spool up motors to counteract it

FLIGHT CONTROLLERS

https://en.wikipedia.org/wiki/Unmanned_aerial_vehicle http://www.proficnc.com/content/13-pixhawk2

  • Most flight controllers use a chip from the ST Microelectronics STM32 family
  • Responsible for collecting all the data and issuing fine motor controls to ESCs
  • PID control algorithms work to reduce the difference between an actual and requested position.
  • Looptimes are the enemy of smooth flight.

Flight Controllers

Explained

  • The flight controller is essentially the main CPU of your robots, the brain of the aircraft.

  • It’s a circuit board with a range of sensors that detect movement of the drone, as well as user commands. Using this data, it then controls the speed of the motors to make the craft move as instructed.

  • Nearly all flight controllers have basic sensors such a the brain of the aircraft.

  • It’s a circuit board with a range of sensors that detect movement of the drone, as well as user commands. Using this data, it then controls the speed of the motors to make the craft move as instructed

  • Nearly all flight controllers have basic sensors such as Gyro (Gyroscopes) and Acc (Accelerometer). Some FC include more advanced sensors such as Barometer (barometric pressure sensors) and magnetometer (compass).

  • The FC is also a hub for other peripherals, such as GPS, LED, Sonar sensor etc.

Deep Dive - CC3D Flight Controller

Very popular and cheap Connection diagram detailed:

Battery Elimination Circuit A voltage regulator, coverts Lipos to a lower voltage, like adding a Raspberry Pi would need 5V, using a 2S needs to bring the 7.4V down to 5V.

http://tricopter.hu/docs/cc3d_manual.pdf

CC3D Technical description

CPU is the STM32F405RGT6 chip, with ARM Cortex-M4 core at 210MIPS, FPU, and saturation arithmetic’s DSP functions.

The chip features a range of built-in hardware modules that can be programmed once and function independently, requiring little to no CPU overhead.

These include 14x multichannel timers, 3x synchronous-sampling ADC serving up to 24 channels, 2x DAC, matrix memory controller with 16-stream DMA, and other.

Communication modules include USB2.0, 3x I2C, 3x SPI, 4x USART, 2x CAN and SIDO. All these modules can be configured for accessing the chip pins using a flexible switch matrix, or disabled to save power.

Modem The board features built-in 433MHz OPLink Modem.

MPU

  • Sensor suite
  • 3 Axis Gyro
  • 3 Axis Accelerometer
  • 3 Axis Magnetometer
  • Barometric pressure sensor

The MPU-6000 combines a 3-axis gyroscope and a 3-axis accelerometer on the same silicon die. This sensor can also be found on the CC3D and already has a proven track record of great flight performance.

The MS5611 is not just any barometric pressure sensor, it is purpose-built, and has a very high resolution. As a result, it is ideal for use as a UAV altitude sensor. The sensor is so sensitive that it can sense a vertical shift of only 10 cm.

Magnetometer Whether you are in ‘Position Hold’ while taking aerial photographs, The Honeywell HMC5883L is a three-axis digital compass module which provides rapid updates to changes in orientation which are accurate to a tolerance of 1° to 2°.

Inertial Measurement Unit (IMU) for UAV

www.unmannedsystemstechnology.com Inertial Measurement Units are essential for UAV control and navigation. An Inertial Measurement Unit (IMU) is an electronic device that uses accelerometers and gyroscopes to measure acceleration and rotation, which can be used to provide position data.

Exotic sensors

RTK-GPS

  • “Real Time Kinematic - Global Positioning System”
  • Multiple GPS units (and ground station) compare datasets to produce <1CM hover variation

RADAR

  • “Radio Detection And Ranging
  • Some agriculture systems use radar to maintain spray height across plants

LIDAR

  • “Light Detection And Ranging”
  • LIDAR uses lasers to “see” and requires processing ability