Question/Issue:
I’m trying to deploy a simple gesture recognition sketch using Arduino IDE with an ESP32 WROOM board connected via Micro USB. The project reads accelerometer data from an MPU6050 and runs inference using a model exported from Edge Impulse.
The code compiles fine in segments, but when I include my model header file and logic, it fails during compilation with unclear error messages. I’ve tried compiling via Arduino CLI too, but it doesn’t detect the sketch correctly despite correct file structure
Project ID:
[Provide the project ID]
Context/Use case:
[Provide context or use case where the issue is encountered]
Steps Taken:
- Verified connections and serial output with a dummy sketch* Imported
leo_16572-project-1_inferencing.h
successfully
- Placed
.ino
file inside a matching folder (gesture_cli_test_1
) - Renamed files correctly and tested in both Arduino IDE and CLI
- Added compile/upload
.bat
file — still getting errors or “sketch not found
Expected Outcome:
[Describe what you expected to happen]
Actual Outcome:
[Describe what actually happened]
Reproducibility:
- [ ] Always
- [ ] Sometimes
- [ ] Rarely
Environment:
- Platform: [e.g., Raspberry Pi, nRF9160 DK, etc.]
- Build Environment Details: [e.g., Arduino IDE 1.8.19 ESP32 Core for Arduino 2.0.4]
- OS Version: [e.g., Ubuntu 20.04, Windows 10]
- Edge Impulse Version (Firmware): [e.g., 1.2.3]
- To find out Edge Impulse Version:
- if you have pre-compiled firmware: run edge-impulse-run-impulse --raw and type AT+INFO. Look for Edge Impulse version in the output.
- if you have a library deployment: inside the unarchived deployment, open model-parameters/model_metadata.h and look for EI_STUDIO_VERSION_MAJOR, EI_STUDIO_VERSION_MINOR, EI_STUDIO_VERSION_PATCH
- Edge Impulse CLI Version: [e.g., 1.5.0]
- Project Version: [e.g., 1.0.0]
-
Custom Blocks / Impulse Configuration: [Describe custom blocks used or impulse configuration]
Logs/Attachments:
[Include any logs or screenshots that may help in diagnosing the issue]
Additional Information:
#include <Wire.h>
#include <MPU6050.h>
#include <leo_16572-project-1_inferencing.h>
MPU6050 mpu;
void setup() {
Serial.begin(115200);
Wire.begin();
mpu.initialize();
}
im trying just the header file its my first project so plz help