element14 Community
element14 Community
    Register Log In
  • Site
  • Search
  • Log In Register
  • Community Hub
    Community Hub
    • What's New on element14
    • Feedback and Support
    • Benefits of Membership
    • Personal Blogs
    • Members Area
    • Achievement Levels
  • Learn
    Learn
    • Ask an Expert
    • eBooks
    • element14 presents
    • Learning Center
    • Tech Spotlight
    • STEM Academy
    • Webinars, Training and Events
    • Learning Groups
  • Technologies
    Technologies
    • 3D Printing
    • FPGA
    • Industrial Automation
    • Internet of Things
    • Power & Energy
    • Sensors
    • Technology Groups
  • Challenges & Projects
    Challenges & Projects
    • Design Challenges
    • element14 presents Projects
    • Project14
    • Arduino Projects
    • Raspberry Pi Projects
    • Project Groups
  • Products
    Products
    • Arduino
    • Avnet & Tria Boards Community
    • Dev Tools
    • Manufacturers
    • Multicomp Pro
    • Product Groups
    • Raspberry Pi
    • RoadTests & Reviews
  • About Us
  • Store
    Store
    • Visit Your Store
    • Choose another store...
      • Europe
      •  Austria (German)
      •  Belgium (Dutch, French)
      •  Bulgaria (Bulgarian)
      •  Czech Republic (Czech)
      •  Denmark (Danish)
      •  Estonia (Estonian)
      •  Finland (Finnish)
      •  France (French)
      •  Germany (German)
      •  Hungary (Hungarian)
      •  Ireland
      •  Israel
      •  Italy (Italian)
      •  Latvia (Latvian)
      •  
      •  Lithuania (Lithuanian)
      •  Netherlands (Dutch)
      •  Norway (Norwegian)
      •  Poland (Polish)
      •  Portugal (Portuguese)
      •  Romania (Romanian)
      •  Russia (Russian)
      •  Slovakia (Slovak)
      •  Slovenia (Slovenian)
      •  Spain (Spanish)
      •  Sweden (Swedish)
      •  Switzerland(German, French)
      •  Turkey (Turkish)
      •  United Kingdom
      • Asia Pacific
      •  Australia
      •  China
      •  Hong Kong
      •  India
      •  Korea (Korean)
      •  Malaysia
      •  New Zealand
      •  Philippines
      •  Singapore
      •  Taiwan
      •  Thailand (Thai)
      • Americas
      •  Brazil (Portuguese)
      •  Canada
      •  Mexico (Spanish)
      •  United States
      Can't find the country/region you're looking for? Visit our export site or find a local distributor.
  • Translate
  • Profile
  • Settings
Personal Blogs
  • Community Hub
  • More
Personal Blogs
Ralph Yamamoto's Blog Using SensiML with Arduino Nano 33 BLE Sense - Data Capture
  • Blog
  • Documents
  • Mentions
  • Sub-Groups
  • Tags
  • More
  • Cancel
  • New
  • Share
  • More
  • Cancel
Group Actions
  • Group RSS
  • More
  • Cancel
Engagement
  • Author Author: ralphjy
  • Date Created: 6 Feb 2021 1:52 AM Date Created
  • Views 1169 views
  • Likes 7 likes
  • Comments 2 comments
  • quicklogic
  • arduino nano 33 ble sense
  • tinyml
  • sensiml
  • edge impulse
Related
Recommended

Using SensiML with Arduino Nano 33 BLE Sense - Data Capture

ralphjy
ralphjy
6 Feb 2021

This is a continuation of my previous post SensiML Toolkit for TinyML .

 

I watched all of the 10 videos of the Quick Start Tutorial Series  and while they were informative, I found them to be a bit disjointed because they did not follow a single project through all of the steps.  That being said, they have a lot of documentation and some good project examples.  The problem, as always, is being able to find the answers that you need specifically in the documentation image.   It seems that SensiML does not have a User Forum, maybe I just haven't found it.

 

The overall flow in SensiML is the same as with Edge Impulse as would be expected.

  1. Data Acquisition
  2. Model Development
  3. Model Deployment

 

The tools used to implement the flow are substantially different, again not surprising.  Just have to learn a new paradigm and install a lot of new tools.  At some point, I'll just need to decide which framework I like best.

In this post, I'll cover the Data Acquisition and do the Model Development and Deployment in separate posts.

 

Data Acquisition

The default method for live data capture for both Edge Impulse and SensiML is by streaming the sensor data through the serial port.  This requires loading firmware to your device in both cases.

Here are the firmware repositories:

  1. https://github.com/edgeimpulse/firmware-arduino-nano-33-ble-sense
  2. https://github.com/sensiml/nano33_data_capture

 

Getting started with Edge Impulse was easier because they provided a precompiled binary for the Arduino Nano 33 BLE Sense.  Edge Impulse uses the Arduino CLI for compiling.  SensiML uses PlatformIO.  So, again Edge Impulse had an advantage for me since I use the Arduino IDE a lot and PlatformIO infrequently.  Edge Impulse uses a custom script file to upload/flash the binaries and SensiML uses the upload capability of PlatformIO.  It is easier to use PlatformIO in this case except that the SensiML example documentation is incorrect as it is out of date and doesn't match what is in the repository.

 

Once the firmware is on the device, the host computer will receive the data over a serial port and pass that data to the Data Collection tool.  With Edge Impulse the data is forwarded by the edge_impulse_daemon on the host computer to the Data Acquisition tool which is part of the cloud based Dashboard.  SensiML uses a Windows application, the Data Capture Lab, to receive the serial data.  Data Capture Lab is also used to segment and label data.

 

Here is a video of accelerometer and gyro data being captured in Data Capture Lab:

You don't have permission to edit metadata of this video.
Edit media
x
image
Upload Preview
image

 

and here is a video showing data segmentation and labeling:

You don't have permission to edit metadata of this video.
Edit media
x
image
Upload Preview
image

 

SensiML has a couple of advantages in data labeling relative to Edge Impulse.  The first advantage is that data with different labels can be captured in the same sample and can be easily segmented post capture.   The second advantage is that it is easy to add additional metadata tags to the samples to aid with filtering.

 

SensiML also claims to support data acquisition over WiFi and BLE.  I was never able to figure out how to do that with Edge Impulse, so I'm going to give it a try with SensiML.

 

I didn't realize it, but SensiML is located only about 5-6 miles from my house image.

  • Sign in to reply

Top Comments

  • neilk
    neilk over 4 years ago +1
    Ralph, This stuff is fascinating, but it seems to be way above my paygrade!! Keep up working hard to make it more approachable for the rest of us Neil
  • ralphjy
    ralphjy over 4 years ago in reply to neilk +1
    Neil, It's nice that companies like Edge Impulse and SensiML are making this stuff more approachable for hackers like us . I really need to get better grounded in Tensorflow and AI in general. The biggest…
  • ralphjy
    ralphjy over 4 years ago in reply to neilk

    Neil,

     

    It's nice that companies like Edge Impulse and SensiML are making this stuff more approachable for hackers like us image.  I really need to get better grounded in Tensorflow and AI in general.

     

    The biggest hurdle that I run into with these tools is that the companies are developing so rapidly that their documentation and examples are often not in sync  I see a lot of frustration expressed by new users, myself included.  I doubt that much beta testing or regression testing is done, otherwise there wouldn't be so many problems with drivers and hardware configurations and broken examples.

     

    That being said, it is a brave new world and it's neat to have some understanding of how it works.

     

    Ralph

    • Cancel
    • Vote Up +1 Vote Down
    • Sign in to reply
    • More
    • Cancel
  • neilk
    neilk over 4 years ago

    Ralph,

     

    This stuff is fascinating, but it seems to be way above my paygrade!!

     

    Keep up working hard to make it more approachable for the rest of us

     

    Neil

    • Cancel
    • Vote Up +1 Vote Down
    • Sign in to reply
    • More
    • Cancel
element14 Community

element14 is the first online community specifically for engineers. Connect with your peers and get expert answers to your questions.

  • Members
  • Learn
  • Technologies
  • Challenges & Projects
  • Products
  • Store
  • About Us
  • Feedback & Support
  • FAQs
  • Terms of Use
  • Privacy Policy
  • Legal and Copyright Notices
  • Sitemap
  • Cookies

An Avnet Company © 2025 Premier Farnell Limited. All Rights Reserved.

Premier Farnell Ltd, registered in England and Wales (no 00876412), registered office: Farnell House, Forge Lane, Leeds LS12 2NE.

ICP 备案号 10220084.

Follow element14

  • X
  • Facebook
  • linkedin
  • YouTube