Connecting you Arduino Nano RP 2040 Connect to the Edge Impulse platform using Ubuntu Linux.
In this article i will cover how to connect your Arduino Nano RP2040 Connect board to Edge Impluse platform so that you can begin to read your sensor data from the board onto the platform for testing your pre-built your ML models.
Prerequisites: Before beginning, ensure you have the following installed on your PC. Python 3 and Node js. Here is a great installation guide for Python on Ubuntu. To install Node js on Ubuntu,please follow the following article to install Node Js on Ubuntu. Alternatively you can follow the instructions that we shall be following in this article with some adjustments. Kindly check under the Installation - Linux/Ubuntu and Raspbian OS subtopic.
Installing Edge Impulse platform on your PC: To install Edge Impulse on your computer please follow the following article.
Connecting your board to Edge Impulse: In article above after updating the firmware , run the edge-impulse-daemon command in your terminal. You will be brought to a response in the terminal like the one shown below. So that you can enter your email Edge Impulse username/email & password. If you have not done so, please register and create an account using this link.
using this link. I will write about some errors, i have come across so that when you are faced with the same, yours should be a walk in the park.In my first attempt, I came across this error.
Failed to get info off device Timeout when waiting for > (timeout: 5000) onConnected.
I tried to resolve it by rebooting the board and run this command again. edge-impulse-run-impulse
.
My second attempt to connect my board to edge impulse was also not successful. I was following this example. Here is the error i came across.
In my third attempt, I also stabled upon the following error while after connecting using WebUSB option on the edge impulse platform itself.
I managed to solve the following errors, by updating the version of my edge impulse. You can do this by updating your packages.
sudo apt-get update
I later learnt that this was indeed an issue that resulted from non-updated edge impulse daemon or back-end process. You can use this link to gain more insight on this issue and also other issues that developers are facing on the edge impulse support community.
After updating the packages, I downloaded the firmware from this link . And rebooted the board by double pressing the reset button on top and copying the firmware directly on the board and then followed the steps highlighted in this article.
And there you have it, your board connected successfully on to edge impulse platform and now you are ready to use your board under live classification tab on edge impulse to classify your models live from your board. Well here are my current results, i need to increase the training and test data sets and also the sample rate time.