element14 Community
element14 Community
    Register Log In
  • Site
  • Search
  • Log In Register
  • About Us
  • 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 Boards Community
    • Dev Tools
    • Manufacturers
    • Multicomp Pro
    • Product Groups
    • Raspberry Pi
    • RoadTests & Reviews
  • 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 - WiFi Bridge
  • Blog
  • Documents
  • Mentions
  • Sub-Groups
  • Tags
  • More
  • Cancel
  • New
  • Share
  • More
  • Cancel
Group Actions
  • Group RSS
  • More
  • Cancel
Engagement
  • Author Author: ralphjy
  • Date Created: 10 Feb 2021 5:07 PM Date Created
  • Views 1406 views
  • Likes 3 likes
  • Comments 1 comment
  • arduino nano 33 ble sense
  • tinyml
  • esp32 feather
  • sensiml
  • wifi bridge
Related
Recommended

Using SensiML with Arduino Nano 33 BLE Sense - WiFi Bridge

ralphjy
ralphjy
10 Feb 2021

I want to start doing data collection "untethered", so I've been looking at how SensiML has implemented data capture over WiFi and BLE.

 

In order to do data capture over WiFi, SensiML uses a ESP32 UART to HTTP bridge.  Instructions for doing this are located here: https://github.com/sensiml/esp32_simple_http_uart .

This uses the Adafruit HUZZAH32 ESP32 Feather board as the WiFi bridge https://www.adafruit.com/product/3405 .

 

This is a learning experience for me because I've never used the ESP-IDF programming interface before (https://docs.espressif.com/projects/esp-idf/en/stable/esp32/get-started/ ).  Other than the minor installation pain, I had no problems using it per the instructions.  ESP-IDF uses Python and Git which I already had installed, but I needed to install other dependencies like Cmake and Ninja.

 

Configuring the firmware

After the ESP-IDF and its dependencies are installed, you need to clone the GitHub repository git clone https://github.com/sensiml/esp32_simple_http_uart.git --recursive.

 

Then run the command idf.py menuconfig which will bring up a GUI that allows configuration of the WiFi and UART parameters.

 

All commands are run in the Windows CMD window.

image

image

 

Swap the RX/TX pins if using stacked boards.

image

 

Normally data rate is set to 921600 if using the primary serial port and reduced to 460800 if using a secondary port.

image

image

 

Flashing the firmware

First build using command idf.py build

Then upload using command idf.py -p [PORT] flash

 

Verify operation and obtain IP address

Run command idf.py -p [PORT] monitor

The program sets the ESP32 in WiFi station mode and connects to the WiFi network and obtains an IP address.  Then it goes into listening mode waiting for a connection from the Data Capture Lab.

image

 

Connect UART RX/TX and Power/GND between boards

image

 

 

Configure and run Data Capture Lab

You can see the configuration response in the monitor after the DCL query:

image

 

Data Capture Lab

You can see the configuration and data capturing in this short video clip:

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

 

 

Now I've got a working configuration to capture data over WiFi.  I did make one mistake in the process.  I forgot to reprogram the Arduino Nano 33 BLE Sense capture firmware to use the second serial port for the UART.  During normal serial capture it uses the first serial port over the USB connection.  Had me confused for a while.

 

I would have preferred if the HUZZAH32 programming had been done using the Arduino IDE.  I may look at the program and try to port it over as I normally use the Arduino IDE for ESP device programming.

  • Sign in to reply
  • DAB
    DAB over 4 years ago

    Good post.

     

    DAB

    • Cancel
    • Vote Up 0 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