For the complete documentation index, see llms.txt. This page is also available as Markdown.

Setup on NyBoard

The Petoi Web Coding Block can be used with the robot, which uses the NyBoard.

Upload the OpenCat firmware to the NyBoard

Please refer to NyBoard Preparation and upload the Mind+ mode firmware to the NyBoard first.

Compatible sensors

Analog sensor modules:

Light sensor

Infrared distance sensor

Other sensors that output 0–5 V analog signals.

Digital sensor modules:

Touch sensor

PIR motion sensor

Other sensors that output only high/low logic levels.

Dedicated ultrasonic sensor

For instructions on connecting more compatible sensors to the board, please refer to the manual page.

Connect method

The web coding blocks support the following three connection methods for connecting the robot to the computer.

Use the USB Adapter

The kit includes a USB Adapter and USB data cable that connect the robot's mainboard to the computer.

Use the Bluetooth module

The kit includes a Bluetooth module connecting the robot's mainboard to the computer.

Use the WiFi module

Please refer to 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 WebCoding8266.ino in the Arduino IDE and install the libraries 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 in the serial monitor) and connect to it to configure the WiFi parameters 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.

Then the WiFi module will get the IP address (as shown in the serial monitor above).

Connection and Usage

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?