Case 02: Helicopter
Contents
5. Case 02: Helicopter#
5.1. Purpose#
Make a helocopter with NezhaA Inventor’s Kit.
5.2. Purchase#
5.3. Materials Required#
5.4. Assembly Steps#
5.5. Hardware Connections#
Connect Motor to M1 on Nezha-A master box.
5.6. Programming#
5.6.1. Prepare the programming#
Steps for preparation please refer to: Arduino 3 in 1 Breakout Board
5.6.2. Sample Projects:#
// Language ArduinoC
#include <NezhaA.h>
NezhaA nezhaA; //Create an instance of Nezha Catogory
void setup() {
nezhaA.begin(); //Initiliaze the buzzer, motor, servo and light
nezhaA.setMotorSpeed(M1, 100); //Set the speed of the motor connecting to M1 at 100%
}
void loop() {
}
5.6.3. Result#
After powering on, the propeller starts driving.