I didn’t want to Hijack anyone elses thread so I started my own to get help.
I built a new circuit on my breadboard with an IMU, ESP32 and LCD. I’m getting data from the accelerometer but I have not yet fed it into buffer. I currently have the buffer filled with the information from the copied raw features from my live classification.
At this point all I get from the serial monitor on the IDE is below.
Also, lets say I want to switch to something totally different such as speech or images. I would deploy my impulse as an arduino library. Could I just simply copy over some of the files in the static buffer example to get to work?
Looking over the documentation, I’m not clear on how to use the libraries and framework to get a custom impulse working on the ESP32.
Would the “Input to the run_classifier function” documentation that you have tell me how to run my custom impulse? I just found it and have yet to read it.
Hi @electronictechgreg, change false /* debug */ to true /* debug */ to show information on the classes (the one you expect). But static buffer can be used for any impulse, vibration, audio, images, etc. Just add the new Arduino library and select the example from the Arduino examples menu and it should load the new one automatically.
If I wanted to make my own impulse is there a way to merge it with the static buffer example? Starting from scratch I wouldn’t know what to call. I did find 2 great examples on circuit digest that I will study tonight.
I noticed you made changes to fmax for arduino in the max.h file. I still get compolition errors for fmin and noticed that “defined(ARDUINO_ARCH_ESP32)” is missing from the min.h file.
C:\Users\Greg\Documents\Arduino\libraries\ei-fan-anomoly-arduino-1.0.1\src/edge-impulse-sdk/tensorflow/lite/kernels/internal/min.h:29:10: error: ‘fmin’ is not a member of 'std
Thank you. A wierd error I received on my second project that I did not receive on my first project is below. I just commented out the three lines of code since I didn’t need them in my project.
C:/Users/Greg/Documents/Arduino/libraries/ei-fan-anomoly-arduino-1.0.1/src/edge-impulse-sdk/classifier/ei_run_classifier.h:882:10: error: ‘EI_CLASSIFIER_TFLITE_INPUT_QUANTIZED’ was not declared in this scope
I commented these lines of code out and it compiled fine afterwards.
// Check if we have a quantized NN, and one DSP block which operates on images...
if (!EI_CLASSIFIER_TFLITE_INPUT_QUANTIZED) {
return EI_IMPULSE_ONLY_SUPPORTED_FOR_IMAGES;
}
@electronictechgreg Thanks for reporting that as well. Looks like a regression in our exported code for models that only have an anomaly detection block and no neural networks, and I just realize we don’t have any integration tests for that. Will make sure this is patched in the next patch release as well, and that we’ll add it to the tests!
Can we keep talking about the Static Buffer. I feel that it is the bottle neck to completely understanding Edge Impulse. I would like to see code how people take the Static Buffer and use it with the Microphone, motion sensor, camera and other sensors. Anyone care to share their code or list a github with examples. I don’t need lots of explanations, I can do a lot with working code.