MoonBot Kit Arduino Guidelines for Building Development Environment

MoonBot Kit(hereinafter referred to as MoonBot)provide Arduino library functions,Support for development programming on Arduino (ATmega1280)

This document aims to guide users to build MoonBot hardware development environment based on Aduino official IDE.

Preparation

Hardware:

  • MoonBot Developer Suite

  • PC (Windows,Linux or Mac OS)

Software:

Detailed installation steps

First step:MoonBot Import Arduino External Dependency Library

  • 1.Start Arduino official IDE

  • 2.Click on Project - > Load Library - > Manage Library',openLibrary Manager’.`

    ../../_images/Earduino_lib_management_zh.png

  • 3.Search library `AsyncDelay’, install the relevant library if not installed, update if the library is updated

    ../../_images/Earduino_lib_download_zh.png

  • 4.Install the library Software Wire'Adafruit_NeoPixel’ Servo according to the installation method in step 3, Ensure that the relevant libraries are installed in the latest version

Step 2: import MoonBot Arduino library

  • 1.Download the latest MuVisionSensor3 Arduino library andMoonBot Arduino library(Source code(zip))

  • 2.Click on the `Project - > Load Library - > Add. zip Library’, select the MounBot Arduino Library downloaded in the first step, complete the import of the library.

    ../../_images/Earduino_add_zip_library1.png

  • 3.Repeat the previous step and import the MuVisionSensor3 Arduino library to complete the library import

Step 3: Connecting devices

Now connect your MoonBot to PC,Device connection and port configuration

  • 1.Click on Tool - > Development Board , select``Arduino/Genuino Mega or Mega 2569`

  • 2.Click on Tool - > Processor ,selectATmega1280

  • 3.Click on Tool - > Port`,Select the corresponding MoonBot port

    Generally, serial ports display different names under different operating systems:

    • **Windows Operating System: ** COM1 etc.

    • Linux Operating System: Start with `dev/tty’.

    • MacOS Operating System: Start with `dev/cu‘ .

Step 4: Compile routines

  • 1.Click on `File - > Example - > MoonBot’,select one of the routines

    ../../_images/Earduino_open_examples.png

  • 2.Click on the upload button. If everything goes well, the development board will be reset and the corresponding routine will start running after the burning is completed.