rduino example programs missing required files and a request for one all-in-one program for HiWonder modules and sensors.

:light_bulb: Using this template is recommended — you may also edit it freely, but you must fully describe your product and the problem (at least: product name, version, and problem description).

Product and Purchase

  • Product model: HiWonder LeArm

  • SKU or kit name: Advanced Kit

  • Purchase channel: HiWonder website

  • Controller board: ESP32

Software and Environment

  • Operating system: Windows

  • Connection method: USB

  • Software version: Arduino IDE 2.3.10

  • Firmware version: N/A

  • Image version: N/A

  • Tutorial step: Opening and uploading the provided Arduino example programs

Issue Description

1. What did you expect to happen?

I expected the provided Arduino example programs to include all required files and dependencies so I could open an example in the Arduino IDE, compile it, and upload it to the ESP32.

2. What actually happened?

When I open some of the Arduino programs, required files are missing, such as:

  • Hiwonder.hpp

  • LeArm_Kinematics.hpp

  • Kinematics.cpp

I have to search through other folders or examples to find the missing files and manually add them. Sometimes, after adding one missing file, it requires another file that is also missing.

Could you please update the example programs so that each program includes everything needed to compile and upload?

I would also like to request an all-in-one program that supports the different HiWonder sensors and modules, including WonderMV and the voice module. It would be helpful to have one main program where the different sensors and modules can work together instead of uploading many separate programs that overwrite each other.

3. Error message or logs:

The Arduino IDE reports errors when required .hpp or .cpp files cannot be found.

Reproduction Steps

  1. Download an Arduino example program from HiWonder.

  2. Open the program using Arduino IDE 2.3.10 on Windows.

  3. Try to verify/compile the program for the ESP32.

  4. One or more required files, such as Hiwonder.hpp, LeArm_Kinematics.hpp, or Kinematics.cpp, are missing.

Evidence

  1. Photos or short video: N/A

  2. Wiring photo: N/A

  3. Screenshot: Can provide screenshots of the compiler errors if needed.

What You Have Tried

  1. I searched through other HiWonder example folders for the missing .hpp and .cpp files and manually added them. Sometimes this fixes one error, but then another required file is missing.

Urgency

  • Is this for a class, competition, or deadline? No

Thank you, HiWonder!

(The one I posted before was an accident)

Thank you for the detailed report. The official LeArm ESP32 materials expect each sketch to be opened as a complete Arduino project, not as an isolated .ino file. They also identify u8g2 and LeArm_Kinematics_lib as required libraries, supplied under 6.1.3 ArduinoIDE安装包, and instruct users to install their ZIP packages with the Arduino IDE ZIP-library import function.

Please try these steps:

  1. Re-extract the complete LeArm package, then open the .ino from its original LeArm_ESP32_Arduino project folder.
  2. Keep the accompanying source tree intact. For example, the motion-control project uses src/robot_arm/Robot_arm.cpp; do not copy only the .ino into a new sketch.
  3. Install the supplied u8g2 and LeArm_Kinematics_lib ZIP libraries. The reported LeArm_Kinematics.hpp and Kinematics.cpp errors should first be checked after installing that supplied kinematics library.
  4. Compile an unmodified official example before combining or editing its code.

For the all-in-one request, the LeArm ESP32 materials already contain a combined 6.5.6 Voice + Vision Color Sorting project. Its sketch uses WonderMV.hpp, ASR_module.hpp, and Ultrasound.hpp together with the arm-control and IIC code, so it is the documented starting point for integrating WonderMV and WonderEcho in one program. It is not documented as a universal program for every sensor and module.

If a freshly extracted complete package still reports missing files, please post the exact downloaded archive or package name, whether your LeArm uses the PWM or bus-servo version, the complete compiler output beginning with the first error, and a screenshot of the full project tree. This will allow the package contents to be checked without manually collecting files from unrelated examples.


If this reply was helpful, you can mark it as the solution using the button below.