Setup on NyBoard

The Petoi Web Coding Block can also be used for the robot, which uses the NyBoard and the WiFi module.

Please take a look at the related section in the Wi-Fi module for instructions on hardware and software setup (2.1 Add ESP8266 source to the board manager and 2.2 Configuration of the Module).

Upload the WiFi Firmware to the WiFi module

Project URL:

https://github.com/PetoiCamp/OpenCat-Quadruped-Robot/tree/main/ModuleTests/WebCoding8266

There are two files in the project:

  • WebCoding8266.ino: Arduino sketch.

  • README.md: help document.

Please open the WebCoding8266.ino in the Arduino IDE and install the library WiFiManager, WebSockets, and ArduinoJson in the Library Manager:

Then connect the USB uploader, plugged into the WiFi module, to the computer via the USB data cable. Select the correct serial port and upload the sketch to the ESP8266 WiFi module as follows:

After the sketch is uploaded to the WiFi module, open the serial monitor in Arduino IDE. Then, unplug and re-plug the WiFi module into the USB uploader.

Open your smartphone's WiFi scanner and find an unencrypted access point named "Petoi-AP****" (shown as in the serial monitor) and connect to it to configure the WiFi parameter of the module, let the WiFi module join the local network, and get a local IP address. For more details, please refer to the " How to use" section of the WiFi module.

After the WiFi module gets the IP address (as shown in the serial monitor above).

Unplug the WiFi module from the USB uploader, plug it into the NyBoard, power on the robot, and enter the WiFi module's IP address in the coding block.

Now you can use the web coding page to run the program:

Last updated

Was this helpful?