11. Case 09: The Crawl Robot#

11.1. Purpose#


Make a crawl robot with NezhaA Inventor’s Kit.

../../_images/neza-a-case-09-01.png

11.2. Purchse#


NezhaA Inventor’s Kit

11.3. Materials Required#


../../_images/neza-a-case-09-02.png

11.4. Assembly Steps#


../../_images/neza-a-step-09-01.png ../../_images/neza-a-step-09-02.png ../../_images/neza-a-step-09-03.png ../../_images/neza-a-step-09-04.png ../../_images/neza-a-step-09-05.png ../../_images/neza-a-step-09-06.png ../../_images/neza-a-step-09-07.png ../../_images/neza-a-step-09-08.png ../../_images/neza-a-step-09-09.png ../../_images/neza-a-step-09-10.png ../../_images/neza-a-step-09-11.png ../../_images/neza-a-step-09-12.png ../../_images/neza-a-step-09-13.png ../../_images/neza-a-step-09-14.png ../../_images/neza-a-step-09-15.png ../../_images/neza-a-step-09-16.png ../../_images/neza-a-step-09-17.png ../../_images/neza-a-step-09-18.png ../../_images/neza-a-step-09-19.png ../../_images/neza-a-step-09-20.png ../../_images/neza-a-step-09-21.png ../../_images/neza-a-step-09-22.png ../../_images/neza-a-step-09-23.png ../../_images/neza-a-step-09-24.png ../../_images/neza-a-step-09-25.png ../../_images/neza-a-step-09-26.png

11.5. Hardware Connections#


Connect the motor to M1 port on Nezha-A master box.

../../_images/neza-a-case-09-03.png

11.6. Programming#


11.6.1. Prepare the programming#

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

11.6.2. 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() {

}

11.6.3. Result#

After powering on, the robot crawls forward.