Skip to content

Latest commit

 

History

History
81 lines (68 loc) · 2.64 KB

File metadata and controls

81 lines (68 loc) · 2.64 KB

Case 04: A Basic Car

Purpose


Make a basic car with NezhaA Inventor's Kit.

Purchse


NezhaA Inventor's Kit

Materials Required


Assembly Steps


Hardware Connections


Connect two motors to M1 and M2 port on Nezha-A master box.

Programming


Prepare the programming

Steps for preparation please refer to: Arduino 3 in 1 Breakout Board

Sample Projects:

// Language ArduinoC
#include <NezhaA.h>

NezhaA nezhaA;    //Create an instance of NezhaA category

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%
  nezhaA.setMotorSpeed(M2, 30);   //Set the speed of the motor connecting to M2 at 30%
}

void loop() {
}

Result

After powering on, the basic car drives with a curve routine.