Motor Test
Download File
- Download and add the motor.h header file to the same folder of the Arduino Sketch.
- Run the following code to test the 4 motors on the drone.
- Make sure to connect the battery before uploading the code.
- Important – Disconnect the battery once the testing is completed.
#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