Arduino 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 / [your exact model]

  • SKU or kit name: [kit name, if known]

  • Purchase channel: [HiWonder website / Amazon / other]

  • Controller board: Arduino / [exact board model]

Software and Environment

  • Operating system: [Windows / macOS / Linux]

  • Connection method: USB

  • Software version: Arduino IDE [version]

  • Firmware version: [version if known, otherwise 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 of the required files and dependencies so I could open an example in the Arduino IDE, compile it, and upload it to the controller.

2. What actually happened?

When I open some of the Arduino programs, required files are missing. For example, I have encountered missing files such as:

  • Hiwonder.hpp

  • LeArm_Kinematics.hpp

  • Kinematics.cpp

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

Could the example programs be updated so that each program comes with everything it needs to compile and upload?

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

3. Error message or logs:

Errors generally indicate that required .hpp or .cpp files cannot be found. I can provide screenshots of the exact compiler errors.

Reproduction Steps

  1. Download and open one of the provided HiWonder Arduino examples.

  2. Open/verify the program in the Arduino IDE.

  3. The program cannot compile because 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: I can provide screenshots showing the missing-file/compiler errors.

What You Have Tried

  1. I searched through other HiWonder example folders for the missing .hpp and .cpp files and manually added them to the Arduino project. This sometimes fixes one error but results in another required file being missing.

Urgency

  • Is this for a class, competition, or deadline? [Yes/No — add details if applicable]

Thank you, HiWonder!

Official support staff are being brought in to help with your Arduino example-file and integration questions. If you still need my help, reply here and @ me. @Hiwonder_Scarlett

Hello, thanks for reaching out and providing such a clear and detailed report! Below is the solution to the compilation errors and the explanation regarding the all-in-one program.

1. Fixing Missing .hpp and .cpp Errors

The missing files (Hiwonder.hpp, LeArm_Kinematics.hpp, Kinematics.cpp, etc.) are global library dependencies. You do not need to manually copy them into each sketch folder. Instead, install the library package globally into your Arduino IDE:

  1. Open your downloaded LeArm resource pack. If not downloaded and imported to the Arduino IDE before, you may refer to this tutorial for detailed information: 4.1.2 Arduino IDE Introduction.pdf, and the specific library zips are located under the same directory: 4.1.3 Arduino IDE Installation Pack.

  2. Locate the folder named Arduino Libraries (or Libraries).

  3. Copy all the subfolders inside it into your local Arduino libraries directory (please refer to the actual path set on your computer).

  4. Completely restart the Arduino IDE.

  5. Reopen your example .ino file and click Verify/Compile. The IDE will now automatically locate all required header and source files.

2. Regarding the All-in-One Example Program

  • Tutorial-Aligned Design: Our individual example programs are modularly structured to match each lesson in the tutorial, making it easier to test, learn, and debug each sensor or module step by step.

  • Secondary Development: If you want to combine multiple features (such as WonderMV visual tracking and the voice module) into a single integrated program, this requires secondary development and custom integration on your end.

  • Community Sharing: We warmly encourage you to share your development progress, ideas, or code implementations here in the forum to discuss and collaborate with other developers!

Let us know if the examples compile successfully after installing the libraries!