I have been working with the TensorFlow Lite tutorials from the tensorflow repository on github, using an Arduino BLE Sense. This has been frustrating because the Arduino frequently wakes up (that is, on powering up my system) in some condition in which my system (Win 7, on a Dell Optiplex 760) is unable to communicate with it - my system reports that a "usb device is malfunctioning."
I have tried a number of different methods for ameliorating this problem, with little success.
The greatest success I have had is with the following procedure:
- Always load a very simple sketch to the Arduino (e.g. "blink") before shutting down the system.
- Start (or restart) with the Arduino connected or not.
- If the system fails to recognize the Arduino, switch back and forth between "normal" and "bootloader" modes until the system successfully recognizes the Arduino (could be a dozen times or more).