Case 09: The Crawl Robot
Purpose
Make a crawl robot with NezhaA Inventor's Kit.
Purchse
Materials Required
Assembly Steps
Hardware Connections
Connect the motor to M1 port on Nezha-A master box.
Programming
Prepare the programming
Steps for preparation please refer to: Arduino 3 in 1 Breakout Board.
Sample Code:
// Language ArduinoC
#include <NezhaA.h>
NezhaA nezhaA; //Create an instance of Nezha 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%
}
void loop() {
}
Result
After powering on, the robot crawls forward.