Motor Test

“Welcome to the Motor Test Guide for XFly Drone! This guide will walk you through the process of testing your drone’s motors to ensure they are functioning correctly. By following these step-by-step instructions, you’ll learn how to use the motor.h file and run test scripts to verify motor performance. Proper motor testing is crucial for optimal flight and to avoid potential issues during operation.”

Getting Started with the Motor Test Guide for XFly Drone

  • Before you begin, download the motor.h header file and ensure it is in the same folder as your Arduino sketch. You can also copy and paste the necessary functions from the motor.h code into your setup file.
  • To run a motor test, connect the battery and upload the test script. This will allow you to verify that the motors rotate as expected. Remember to disconnect the battery once the test is complete.

  • Always perform motor testing in a safe environment, away from loose objects or crowded spaces. Avoid running the test for extended periods to prevent motor overheating.

Download File

  • Download and add the motor.h header file to the same folder of the Arduino Sketch or Copy and Paste all functions in the motor.h code before the void setup() function.
  • Run the following code to see a demo motor run.
  • Make sure to connect the battery before uploading the code.

Important – Disconnect the battery once the testing is completed.

 

Change motor speeds in the motor.h function and try different motor patterns to test your creativity.

				
					

#include "motor.h" // Include the motor control functions

void setup() {

	Serial.begin(9600); // Start serial communication at 9600 baud rate 	motor_setup(); // Setup the motor
}

void loop() {


	motor_start_sequence(); // Start the motor sequence
	delay(3000);

	motor_stop();

	motor_slow(); // Set the motor to slow speed
	delay(3000);

	motor_stop();
	delay(2000);

}
				
			

QubeBots Pvt Ltd is a startup that focuses on developing Edutech products to support the global STEM Education system.

Contact us

hello@qubebots.com

+94 77 069 5151

Colombo, Sri Lanka

Shopping Cart
Scroll to Top