Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revisionPrevious revision
Next revision
Previous revision
en:drones:autonomous [2021/03/24 20:39] pczekalskien:drones:autonomous [Unknown date] (current) – external edit (Unknown date) 127.0.0.1
Line 1: Line 1:
 ===== Communication, Remote Control and Autonomous Flights ===== ===== Communication, Remote Control and Autonomous Flights =====
 A general idea of a UAV is to move in 3D airspace. It can be manually controlled via remote, usually a human operator, or an autonomous flight with various autonomy levels.\\ A general idea of a UAV is to move in 3D airspace. It can be manually controlled via remote, usually a human operator, or an autonomous flight with various autonomy levels.\\
-According to the Drone Industry Insights (2019. [[https://dronelife.com/2019/03/11/droneii-tech-talk-unraveling-5-levels-of-drone-autonomy/]]) there are 6 levels of drone operations autonomy, as we presented in the introductory chapters on autonomous flying and ground vehicles. Regardless of the autonomy level, communication between UGV and UAV ecosystems are crucial for the reliability, durability and safety of the operations. For the performance, in case of the cutting edge cases like drone racing or collision avoidance. In the following chapters, we present various aspects and communication protocols used in drones.+According to the Drone Industry Insights (2019. [[https://dronelife.com/2019/03/11/droneii-tech-talk-unraveling-5-levels-of-drone-autonomy/]])there are 6 levels of drone operations autonomy, as we presented in the introductory chapters on autonomous flying and ground vehicles. Regardless of the autonomy level, communication between UGV and UAV ecosystems are crucial for the reliability, durability and safety of the operations. For the performance, in case of the cutting edge cases like drone racing or collision avoidance. In the following chapters, we present various aspects and communication protocols used in drones.
  
  
Line 21: Line 21:
   * CAN (not so common),   * CAN (not so common),
   * One-wire (rare).   * One-wire (rare).
-The exact protocol use is usually driven by the set of sensors and components present onboard the UAV. Flight controller sometimes exposes set of dedicated ports (connectors), sometimes they are universal plugs that can be used as configured in the FC configuration.\\ In many cases, an elementary set of sensors is integrated with the FC,  +The exact protocol use is usually driven by the set of sensors and components present onboard the UAV. Flight controller sometimes exposes set of dedicated ports (connectors), sometimes they are universal plugs that can be used as configured in the FC configuration.\\ In many cases, an elementary set of sensors is integrated with the FC,  
-Additionally, for GPS positioning, NMEA protocol is frequently used.+Additionally, for GPS positioning, the NMEA protocol is frequently used.
  
 === Remote Control and Actuators Communication Protocols === === Remote Control and Actuators Communication Protocols ===
-Remote Control is an essential part of drones. While there do are fully automatic systems that take-off, implement the mission and then land 100% automatically, in any case, there is a backup solution using manual operation such as RC control. Additionally, following mission progress and current system conditions is essential; thus, telemetry is a natural part for all flying objects, whether they perform autonomous or remote-controlled flight at the moment.+Remote Control is an essential part of drones. While there do are fully automatic systems that take off, implement the mission and then land 100% automatically, in any case, there is a backup solution using manual operation such as RC control. Additionally, following mission progress and current system conditions is essential; thus, telemetry is a natural part for all flying objects, whether they perform autonomous or remote-controlled flight at the moment.
  
-As from the beginning, RC was used to control actuators directly (usually control surfaces), so actuators communication protocols were and still are an essential part of the on-board communication. In Figure {{ref>rccommunication}} we present a list of protocols and their assignment to the sections of the control sequence.+As from the beginning, RC was used to control actuators directly (usually control surfaces), so actuators communication protocols were and still are an essential part of the onboard communication. In Figure {{ref>rccommunication}} we present a list of protocols and their assignment to the sections of the control sequence.
  
 <figure rccommunication> <figure rccommunication>
Line 91: Line 91:
     * PWM - as mentioned above, historical, still operating. Many ESCs can use it as a fallback if there is an advanced protocol's incompatibility between ESC and FC. It is worth mentioning that there are actually two PWM ESC protocols:     * PWM - as mentioned above, historical, still operating. Many ESCs can use it as a fallback if there is an advanced protocol's incompatibility between ESC and FC. It is worth mentioning that there are actually two PWM ESC protocols:
       * Analogue PWM, where 0% duty cycle is equivalent to motor stop, and 100% is equivalent to full throttle;       * Analogue PWM, where 0% duty cycle is equivalent to motor stop, and 100% is equivalent to full throttle;
-      * Standard PWM (as in servos), where 1ms duty cycle is motor stop and 2ms if full throttle. However, differently as in servos, the motor requires faster updates, so the PWM frequency is usually much higher than the servo's 50Hz standard. As 2ms it "full throttle", the maximum possible PWM frequency is 500Hz.+      * Standard PWM (as in servos), where 1ms duty cycle is motor stop and 2ms if full throttle. However, differently as in servos, the motor requires faster updates, so the PWM frequency is usually much higher than the servo's 50Hz standard. As 2ms is "full throttle", the maximum possible PWM frequency is 500Hz.
     * OneShot family: OneShot125 and OneShot42 - for OneShot125, the pulse length is between 125 and 250 microseconds; thus, the maximum frequency is 4KHz; for OneShot42, the pulse is 42 microseconds, so it is 12KHz maximum frequency     * OneShot family: OneShot125 and OneShot42 - for OneShot125, the pulse length is between 125 and 250 microseconds; thus, the maximum frequency is 4KHz; for OneShot42, the pulse is 42 microseconds, so it is 12KHz maximum frequency
     * MultiShot - it is 32kHz operating one, 10x faster than OneShot125. It is the fastest one in the family, but there are not so many ESC capable of handling it.     * MultiShot - it is 32kHz operating one, 10x faster than OneShot125. It is the fastest one in the family, but there are not so many ESC capable of handling it.
   * Digital, binary protocols:   * Digital, binary protocols:
     * DShot family: DShot150/300/600/1200 - a family of digital protocols with 150Kbps (DShot150) to 1200Kbps (DShot1200) transmission speeds, respectively to the protocol variant. They use 4bit CRC to check communication for any errors that may appear, i.e. due to electromagnetic interference.     * DShot family: DShot150/300/600/1200 - a family of digital protocols with 150Kbps (DShot150) to 1200Kbps (DShot1200) transmission speeds, respectively to the protocol variant. They use 4bit CRC to check communication for any errors that may appear, i.e. due to electromagnetic interference.
-    * ProtoShot - an approach to integrate both digital (asi.e. in DShot150) and analogue (OneShot) protocols, all in one.+    * ProtoShot - an approach to integrate both digital (as i.e. in DShot150) and analogue (OneShot) protocols, all in one.
  
 <note tip>Use of analogue protocols requires throttle calibration (setting motors not to spin at all and spin with their maximum RPM). Digital protocols do not require throttle calibration.</note> <note tip>Use of analogue protocols requires throttle calibration (setting motors not to spin at all and spin with their maximum RPM). Digital protocols do not require throttle calibration.</note>
Line 102: Line 102:
 == Servos == == Servos ==
 Servos are connected with 3 cables, power (+/-) and control. PWM frequency is constant, but it is the duty cycle that controls the servo rotation.  Servos are connected with 3 cables, power (+/-) and control. PWM frequency is constant, but it is the duty cycle that controls the servo rotation. 
-Analogue (classical) servos use 50Hz PWM frequency. Modern, digital servos use 300Hz and up.\\ +Analogue (classical) servos use 50Hz PWM frequency. Modern, digital servos use 300Hz and up.\\ 
-As digital servos are still not very popular, here we describe analogue servos' control principals. Analogue servo uses PWM standard frequency that is 50Hz, so the period is 20ms.+As digital servos are still not very popular, here we describe analogue servos' control principles. Analogue servo uses PWM standard frequency that is 50Hz, so the period is 20ms.
 A 0-degree rotation angle is equivalent to the 1ms high/19ms low digital control signal duty cycle, while 180 degrees is for a 2ms duty cycle. Naturally, this scale tends to be linear, so 90 degree is equivalent to 1.5ms: see figure {{ref>servodutycycle}} for graphical representation of the control signal. A 0-degree rotation angle is equivalent to the 1ms high/19ms low digital control signal duty cycle, while 180 degrees is for a 2ms duty cycle. Naturally, this scale tends to be linear, so 90 degree is equivalent to 1.5ms: see figure {{ref>servodutycycle}} for graphical representation of the control signal.
  
Line 111: Line 111:
 </figure> </figure>
  
-As one can see from the above, the most common case is a servo operating on the 0..180 degrees range. Servos with other rotation range may use different duty cycles.+As one can see from the above, the most common case is a servo operating in the 0..180 degrees range. Servos with other rotation range may use different duty cycles.
  
  
Line 133: Line 133:
 While it is possible to receive raw satellite signals over the radio and use it to decode the signal and obtain a lon/lat position using the triangulation method (see the chapter on navigation for more details), it is common to rather use ready GNSS (also referenced as GPS) receiver module, that communicates to the flight controller or other device, providing 2D/3D position (3D includes altitude), positioning accuracy, number of satellites in view (it directly impacts positioning quality) and so on. Manual decoding requires a huge amount of resources, thus is implemented with integrated circuits. Here we focus on communication between an FC and GNSS receiver rather than between satellites and receiver.\\ While it is possible to receive raw satellite signals over the radio and use it to decode the signal and obtain a lon/lat position using the triangulation method (see the chapter on navigation for more details), it is common to rather use ready GNSS (also referenced as GPS) receiver module, that communicates to the flight controller or other device, providing 2D/3D position (3D includes altitude), positioning accuracy, number of satellites in view (it directly impacts positioning quality) and so on. Manual decoding requires a huge amount of resources, thus is implemented with integrated circuits. Here we focus on communication between an FC and GNSS receiver rather than between satellites and receiver.\\
 GNSS modules use textual and binary communication, depending on the particular receiver chip and PCB board design. GNSS modules use textual and binary communication, depending on the particular receiver chip and PCB board design.
-In particular, most GNSS receivers can deliver information using NMEA protocol that is a standard communication protocol at the moment, usually in a textual form over the serial connection (the most common is 9600 bps). At the moment, a binary communication protocol is being introduced as more efficient and simply delivering position data much faster, yet it is still a niche solution.\\+In particular, most GNSS receivers can deliver information using the NMEA protocol that is a standard communication protocol at the moment, usually in a textual form over the serial connection (the most common is 9600 bps). At the moment, a binary communication protocol is being introduced as more efficient and simply delivering position data much faster, yet it is still a niche solution.\\
 Sample NMEA data for Tallinn/Estonia Old City Central Market square is present below:\\ Sample NMEA data for Tallinn/Estonia Old City Central Market square is present below:\\
  
Line 146: Line 146:
 === ADS-B === === ADS-B ===
 ADS-B (Automatic dependent surveillance-broadcast) is an airborne protocol that drones barely use now, but that is changing over time. Each commercial aircraft broadcasts information about its current position, velocity, direction, and so on that can be received using special modules or even out of tuned DVB-T receiver (USB TV stick). ADS-B can be freely received and decoded, but it is forbidden to broadcast it without permission and licence. Communication uses a 1090 MHz band.\\  ADS-B (Automatic dependent surveillance-broadcast) is an airborne protocol that drones barely use now, but that is changing over time. Each commercial aircraft broadcasts information about its current position, velocity, direction, and so on that can be received using special modules or even out of tuned DVB-T receiver (USB TV stick). ADS-B can be freely received and decoded, but it is forbidden to broadcast it without permission and licence. Communication uses a 1090 MHz band.\\ 
-<note warning>It is free to receive ADS-B, but it is forbidden to broadcast ADS-B. Broadcasting requires certified equipment and is done concerning the flight control and flight information services!</note>+<note warning>It is free to receive ADS-B, but it is forbidden to broadcast ADS-B. Broadcasting requires certified equipment and is done concerning flight control and flight information services!</note>
 The simplicity of reception of the signal caused open-source implementations and the rise of flight information services like, i.e. very popular FlightRadar24 that directly benefit from ADS-B reception via distributed receiver network operated by amateurs.\\ The simplicity of reception of the signal caused open-source implementations and the rise of flight information services like, i.e. very popular FlightRadar24 that directly benefit from ADS-B reception via distributed receiver network operated by amateurs.\\
 <note tip>Theoretically, ADS-B can be used to implement a collision-avoidance system once FC is aware of other aircraft in its nearby area.</note> <note tip>Theoretically, ADS-B can be used to implement a collision-avoidance system once FC is aware of other aircraft in its nearby area.</note>
en/drones/autonomous.1616618352.txt.gz · Last modified: 2021/03/24 10:00 (external edit)
CC Attribution-Share Alike 4.0 International
www.chimeric.de Valid CSS Driven by DokuWiki do yourself a favour and use a real browser - get firefox!! Recent changes RSS feed Valid XHTML 1.0