Download the project file

Open the command prompt

git clone https://github.com/elephantrobotics/jsmycobot.git

Initialize the development program

Note: Open the command prompt in the downloaded project file

<!-- Initialize the program and install all the plug-ins required to run the program -->
npm i

Initialize the program

<!-- Import the plug-ins installed in step 1-1 -->
const mycobot = require("mycobot")

<!-- Initialize the program, mycobot.connect(serial port number, serial port baud rate) -->
const obj = mycobot.connect("COM15",115200)

<!-- Write the first instruction, power on the robot and keep the current robot posture -->
obj.write(mycobot.powerOn())

results matching ""

    No results matching ""