Differences Between CAN and PWM in Drone Motor Control Protocols

Differences Between CAN and PWM in Drone Motor Control Protocols

In the realm of drone motor control, two prevalent communication protocols are CAN (Controller Area Network) and PWM (Pulse Width Modulation). Each protocol has distinct characteristics, advantages, and limitations. Understanding these differences is crucial for selecting the appropriate system for various applications, particularly in the demanding environment of agricultural drones.

CAN (Controller Area Network)

CAN is a robust digital communication protocol designed for reliable, high-speed data transmission. It was initially developed for the automotive industry but has since been widely adopted in various fields, including drone technology.

Technical Principles of CAN:

  • Digital Communication: CAN uses a differential signaling technique, which involves sending two complementary signals to reduce noise and improve reliability.
  • Data Frames: Data is transmitted in frames, which include not only the data payload but also addressing information, control bits, and error-detection bits.
  • Error Handling: CAN has built-in mechanisms for error detection and correction, including cyclic redundancy checks (CRC) and acknowledgment slots.
  • Multi-Master: CAN supports a multi-master architecture, meaning any node can initiate communication without a central controller.

Advantages of CAN:

  1. Digital Communication: CAN uses digital signals for data transmission, which allows for precise and reliable control of the motor. This digital nature ensures that the instructions are clear and less prone to errors.

  2. High Interference Resistance: CAN’s digital signals are highly resistant to electromagnetic interference (EMI), which is critical in environments with significant electronic noise.

  3. Multifunctional Data Transmission: Beyond just controlling the motor’s throttle, CAN can transmit a wide range of data, including motor speed, temperature, current, and other operational parameters. This comprehensive data transmission supports advanced monitoring and diagnostics.

  4. Closed-Loop Control: CAN enables closed-loop control systems. Real-time feedback from the motor can be used to adjust the control parameters dynamically, ensuring stable and efficient operation.

  5. Error Detection and Correction: CAN has built-in error detection and correction mechanisms, which enhance the reliability of the communication, reducing the chances of data corruption.

  6. Reduced Wiring Complexity: CAN allows multiple devices to communicate over a single bus, reducing the complexity and weight of wiring, which is advantageous in drone applications.

PWM (Pulse Width Modulation)

PWM is a simpler, analog-based communication protocol where the width of a pulse is varied to control the motor’s speed and direction. It is widely used due to its straightforward implementation.

Technical Principles of PWM:

  • Analog Control: PWM modulates the width of digital pulses to simulate varying levels of power to the motor. The width of the pulse (duty cycle) determines the motor’s speed.
  • Signal Frequency: PWM signals typically operate at a fixed frequency, with the duty cycle adjusted to control the output voltage and current.
  • Duty Cycle: The percentage of one period in which the signal is active. A higher duty cycle corresponds to higher power output and faster motor speed.

Advantages of PWM:

  1. Simplicity: PWM is relatively simple to implement and understand, making it a cost-effective solution for basic motor control needs.

  2. Low Cost: The hardware required for PWM is generally less expensive compared to CAN, making it an attractive option for budget-conscious applications.

  3. Wide Compatibility: Most motor controllers support PWM signals, ensuring broad compatibility and ease of integration.

Disadvantages of PWM:

  1. Susceptibility to Interference: As an analog signal, PWM is more susceptible to electromagnetic interference, which can lead to signal degradation and unreliable motor control.

  2. Limited Functionality: PWM primarily controls the motor’s speed and direction but does not support the transmission of additional data such as motor status or operational parameters.

  3. Open-Loop Control: PWM systems typically operate in an open-loop configuration, lacking real-time feedback, which can result in less precise control and stability issues.

Why Emphasize CAN?

In modern drone applications, especially in complex and demanding environments like agriculture, the emphasis on CAN over PWM is due to several critical factors:

  1. High Precision and Reliability: CAN’s digital nature allows for high-precision motor control, crucial for tasks that require stable and accurate performance.

  2. Enhanced Stability: Even in single GPS scenarios without RTK (Real-Time Kinematic) corrections, CAN can maintain stable flight. This is because CAN systems can integrate data from various sensors (such as IMU, barometers, and magnetometers) to adjust the motor control dynamically.

  3. Comprehensive Data Handling: The ability of CAN to handle comprehensive data transmission ensures better monitoring and diagnostics, leading to improved maintenance and operational efficiency.

  4. Robustness in Harsh Environments: The strong resistance to EMI makes CAN the preferred choice in industrial and agricultural settings where interference is prevalent.

  5. Scalability and Flexibility: CAN’s ability to support multiple devices on the same bus makes it scalable and flexible for complex drone systems requiring numerous sensors and controllers.

Hobbywing XRotor Motor Series: The Ultimate Solution for Agricultural Drones

Hobbywing XRotor Motor series exemplifies the advantages of integrating CAN and PWM protocols for agricultural drones. Specifically designed to provide robust power solutions, these motors incorporate both CAN and PWM communication protocols, offering unparalleled reliability and performance.

Dual Protocol Integration:

  • CAN + PWM Backup: The XRotor motors support both CAN and PWM protocols, ensuring that if one protocol fails, the other can serve as a backup. This dual-protocol approach significantly enhances the reliability of the motor control system.

Advanced CAN Communication:

  • Enhanced Data Communication: The comprehensive integration of CAN communication in the XRotor series brings a new level of data communication experience. It enables the transmission of detailed motor and ESC (Electronic Speed Controller) data, ensuring precise control and monitoring.

  • Digital Throttle Control: With CAN-enabled digital throttle, the control precision is unmatched. This allows for smooth and accurate adjustments to the motor speed and torque, ensuring stable flight performance even in challenging conditions.

Real-Time Data and Remote Upgrades:

  • Real-Time Feedback: All vital information, including ESC and motor working data, is retrieved in real-time. This continuous feedback loop helps in maintaining optimal performance and immediate adjustments during flight.

  • Remote ESC Firmware Upgrades: The ability to remotely upgrade ESC firmware via CAN ensures that the drone can always be updated with the latest features and improvements without needing physical access to the drone, thereby enhancing operational efficiency.

Comprehensive Flight Controller Integration:

  • Seamless Integration: The XRotor motors are compatible with various mainstream flight controllers, such as APM, Microk, Boying, JIYI, Qifei, and Jimu. This wide compatibility ensures that the XRotor series can be seamlessly integrated into diverse drone systems.

 

CAN Protocol Supported Drone Accessories

Here are some high-quality drone accessories that support the CAN protocol, enhancing the performance and reliability of agricultural drones:

  1. CUAV New PIX CAN PMU: This high-precision voltage and current detection power management unit module is designed for UAVs, providing accurate power management and enhancing the overall efficiency of drone operations.

  2. CUAV New CAN PDB Carrier Board: This carrier board is compatible with Pixhawk, Pixhack, and Px4 flight controllers, offering reliable power distribution and seamless integration for RC drone helicopters.

  3. HolyBro CAN Hub 2-12S Powered CAN Port Expansion Module: Developed for various flight controllers, this module allows for the expansion of CAN ports, facilitating the connection of multiple devices and improving communication efficiency.

  4. CUAV New NEO 3X GPS: Featuring the Ublox M9N GNSS and DroneCAN protocol, this GPS module provides precise positioning and reliable navigation for drones.

  5. CUAV CAN PDB Power Module Carrier Board And X7+ Pro Core Pixhawk Flight Controller Autopilot: This comprehensive package includes a power distribution board and a high-performance flight controller, ensuring robust control and power management for advanced drone applications.

  6. CUAV Can PMU: A digital high-precision power detection module designed for UAV power management, ensuring accurate monitoring and efficient power usage.

  7. CUAV Pixhawk Drone FPV X7+ Pro Flight Controller NEO 3 Pro GPS And CAN PMU Power Module Combo: This combo package includes a flight controller, GPS module, and power management unit, providing a complete solution for drone control and navigation.

  8. JIYI CAN HUB Module for K++ V2 Flight Controller: Supporting 6-14S power input and 12V output, this CAN hub module is designed for agricultural drones, offering reliable power distribution and enhanced communication.

  9. CUAV MS5525 SKYE Airspeed Sensor: This sensor features a rainproof structure, intelligence deicing, and dual temperature control system, providing accurate airspeed measurements up to 500 km/h using the CAN protocol.

These accessories, with their advanced CAN protocol support, ensure precise control, robust communication, and efficient power management, significantly enhancing the performance and reliability of agricultural drones.

 

Conclusion

While both CAN and PWM have their places in drone motor control, the integration of both protocols in Hobbywing’s XRotor Motor series sets a new standard for reliability, precision, and advanced functionality. The CAN protocol's robust, high-precision control and comprehensive data handling capabilities, combined with PWM's simplicity and broad compatibility, provide a versatile and dependable solution. This dual-protocol approach ensures that agricultural drones equipped with XRotor motors can achieve stable, efficient, and precise performance, meeting the rigorous demands of modern agricultural applications.

Back to blog