Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Building binary for Sparkfun Edge #67418

Open
h-tye opened this issue May 12, 2024 · 5 comments
Open

Building binary for Sparkfun Edge #67418

h-tye opened this issue May 12, 2024 · 5 comments
Assignees
Labels
comp:lite TF Lite related issues stale This label marks the issue/pr stale - to be closed automatically if no activity stat:awaiting response Status - Awaiting response from author type:support Support issues

Comments

@h-tye
Copy link

h-tye commented May 12, 2024

I am trying to upload micro speech detection onto the SparkFun Edge device using this tutorial: https://codelabs.developers.google.com/codelabs/sparkfun-tensorflow/#3 . However, the directory needed to build the binary in the first part of step 4 no longer exists, has anyone found a way around this? The issue is tensorflow has tflite-micro as a standalone repository now but it no longer has the same tools.

@tilakrayal tilakrayal added the type:support Support issues label May 14, 2024
@sushreebarsa sushreebarsa added the comp:lite TF Lite related issues label May 15, 2024
@sushreebarsa
Copy link
Contributor

@h-tye You're right, the original TensorFlow Lite for Microcontrollers tutorial relies on an older directory structure that's no longer included. Kindly refer to the workaround as follows;
The SparkFun Edge device often comes pre-loaded with a sketch called "micro_speech.ino". This sketch implements basic micro speech detection using TensorFlow Lite. You can try the following:

  1. Connect your SparkFun Edge to your computer using the SparkFun USB-C Serial Basic programmer.
  2. Open the Arduino IDE.
  3. In the Arduino IDE, go to File > Examples > SparkFun Edge > micro_speech. This should open the pre-loaded sketch.
  4. Upload the sketch to your SparkFun Edge.
  5. Open the Serial Monitor in the Arduino IDE. You should see the blue LED blinking.
  6. Speak a keyword like "yes" or "no" near the microphone. If the speech is recognized, the serial monitor will display a message and the yellow LED will blink.

Also refer the TensorFlow Lite Micro getting started guide for more information.

Thank you!

@sushreebarsa sushreebarsa added the stat:awaiting response Status - Awaiting response from author label May 15, 2024
@h-tye
Copy link
Author

h-tye commented May 15, 2024

@sushreebarsa Unfortunately, I am not able to use the Arduino IDE as when I run any code - even the examples- I get an error that reads "Unsupported Board". I believe that Arduino no longer supports the Sparkfun Edge which is why I was trying to flash binary onto the device. Thanks for the help

@google-ml-butler google-ml-butler bot removed the stat:awaiting response Status - Awaiting response from author label May 15, 2024
@h-tye
Copy link
Author

h-tye commented May 15, 2024

Correction: It looks like the Arduino examples for Sparkfun edge are no longer supported by TensorFlow, not Arduino. https://github.com/tensorflow/tflite-micro-arduino-examples?tab=readme-ov-file#how-to-install as per this github repo, the peripherals are made purely for the Arduino Nano 33 BLE, which means that anytime I run one of the examples it produces a "unsupported board" error.

@sushreebarsa
Copy link
Contributor

@h-tye There might not be official Arduino libraries for the SparkFun Edge specifically, TFLite Micro offers support for various Arm Cortex-M processors, which the SparkFun Edge uses (https://www.tensorflow.org/lite/microcontrollers).
For any further queries could you please post this issue in this repository ?
Thank you!

@sushreebarsa sushreebarsa added the stat:awaiting response Status - Awaiting response from author label May 16, 2024
Copy link

This issue is stale because it has been open for 7 days with no activity. It will be closed if no further activity occurs. Thank you.

@github-actions github-actions bot added the stale This label marks the issue/pr stale - to be closed automatically if no activity label May 24, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
comp:lite TF Lite related issues stale This label marks the issue/pr stale - to be closed automatically if no activity stat:awaiting response Status - Awaiting response from author type:support Support issues
Projects
None yet
Development

No branches or pull requests

3 participants