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 & Partners
    Products & Partners
    • Arduino
    • Avnet & Tria Boards Community
    • Dev Tools
    • Manufacturers
    • Multicomp Pro
    • Product Groups
    • Raspberry Pi
    • RoadTests & Reviews
  • About Us
    About the element14 Community
  • 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
      •  Japan
      •  Korea (Korean)
      •  Malaysia
      •  New Zealand
      •  Philippines
      •  Singapore
      •  Taiwan
      •  Thailand (Thai)
      •  Vietnam
      • 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
Community Hub
Community Hub
Member and Staff Blogs XIAO ESP32-S3 + Bit Pirate (BPIO2) as USB to I2C Bridge with Browser GUI
  • Blog
  • Forum
  • Documents
  • Quiz
  • Events
  • Leaderboard
  • Polls
  • Files
  • Members
  • Mentions
  • Sub-Groups
  • Tags
  • More
  • Cancel
  • New
Join Community Hub to participate - click to join for free!
  • Share
  • More
  • Cancel
Group Actions
  • Group RSS
  • More
  • Cancel
Engagement
  • Author Author: lightwoheat
  • Date Created: 1 Dec 2026 3:17 AM Date Created
  • Views 16 views
  • Likes 1 like
  • Comments 0 comments
  • tutorial
  • maker
  • esp32-s3
  • seeed studio
  • bpio2
  • xiao_esp32s3
Related
Recommended

XIAO ESP32-S3 + Bit Pirate (BPIO2) as USB to I2C Bridge with Browser GUI

lightwoheat
lightwoheat
1 Dec 2026

We wanted a quick way to poke at I2C sensors from a browser without writing firmware, so we used a Seeed XIAO ESP32-S3 as a USB to I2C bridge. The heavy lifting is done by geo-tp's open source ESP32 Bit Pirate firmware and its BPIO2 adapter mode (geo-tp introduced the project here on element14 in this blog post). Everything runs in the browser: flash the XIAO, switch it to BPIO2, and read and write an Adafruit LPS22 by register name and real units with UXB-300. No code changes, about 5 minutes from a blank board to live temperature readings.

image

Hardware Used:

Board: Seeed Studio XIAO ESP32-S3 (Seeed 113991114)
Expansion Board (optional): Seeed Studio XIAO Expansion Board (Seeed 103030356)
Sensor: Adafruit LPS22 Pressure Sensor - STEMMA QT (Adafruit 4633)
Cable: Grove to STEMMA QT Cable - 100mm (Adafruit 4528)
USB-C data cable

About BPIO2: it's the binary interface from the Bus Pirate 5/6 firmware, and ESP32 Bit Pirate implements it too. That's why UXB-300 lists the adapter as Bus/Bit Pirate BPIO2, and a Bus Pirate should work with the same project. We've only tested it on Bit Pirate so far. If you have a Bus Pirate and give it a try, let us know in the comments how it goes.

Links to Firmware and GUI:

Firmware: ESP32 Bit Pirate Web Flasher (thanks to geo-tp for the ESP32 Bit Pirate project)
Terminal: Bit Pirate Web Serial Terminal
GitHub: ESP32S3_BPIO2_I2CBridge
GUI: UXB-300 (Chrome or Edge on desktop)

Set up the XIAO: ( Flash | BPIO2 )

Flash: Open the web flasher in Chrome or Edge. Hold BOOT on the XIAO while you plug in USB, select Xiao ESP32-S3, then click Flash selected firmware.

BPIO2: Open the web serial terminal, click Connect and press any key. Then type:

HIZ> mode
Mode Number > 12
Configure SD card GPIOs for USB? [n]: <Enter>
USB> adapters
Enter index (default 9): 8
BPIO2 GPIOs IO0..IO7 [1 2 4 3 6 5 0 7]: 1 6 5 7 2 4 3 0

The XIAO reboots into BPIO2 adapter mode and the terminal closes. The GPIO list puts I2C on GPIO6 (SCL) and GPIO5 (SDA), the expansion board's Grove I2C port. Press RESET to return to normal Bit Pirate mode.

NOTE: Avoid pressing RESET while you're using UXB-300. A reset takes the XIAO out of BPIO2 mode, and you'd have to repeat the BPIO2 step above to get it back.

Plug the Grove end of the cable into the expansion board's I2C Grove port and the STEMMA QT end into the LPS22.

Try it now:

UXB-300 LPS22 GUI: https://apps.labs16.com/lightwoheat/BPIO2_I2C_LPS22

With the XIAO in BPIO2 mode and the LPS22 plugged in, open the link above. On the Connection page, click Connect, pick ESP32 Bit Pirate, and click Connect.

image

On the Model page, click Write All (top left) to configure the LPS22, then turn on Polling. TempC and TempF update live.

image

Make it yours:

Ready-made chip models (Factory Projects) need a free account. You can then save and tweak your own copy. Rather not sign up? Skip to Step by step (no account) below.

Open UXB-300, click Create, then Browse and Register / Sign In.

image

Signed in, Select the LPS22HB, set Device ID to 0x5D, choose Bus/Bit Pirate BPIO2 I2C and click Create.

image

On the Connection page, click Connect and pick ESP32 Bit Pirate. Click Scan: 0x3C and 0x51 are the OLED and RTC on the expansion board, and 0x5D is the LPS22.

NOTE: On the Seeed XIAO expansion board, IO4 (D1, GPIO2) and IO7 (GPIO0) are connected to hardware on that board and don't stay at HiZ on their own. Set both to HiZ in the panel before you scan. Wired straight to the XIAO? You can skip this.

image

Set the Device Address to 0x5D.

image

A fresh project starts the LPS22 at its power-on defaults, so wake it up: in Backstage, type 40 into CTRL_REG1 (0x10) and press Enter.

image

Read registers 0x28–0x2C for the raw pressure and temperature bytes.

image

To watch them live, open the Editor, change Access on 0x28–0x2C from Read to Poll and set the Poll Rate (500 ms is a good start).

image

Then switch on P under Transactions.

image

That's it: the pressure and temperature calculations now update in real time.

image

Step by step (no account):

Rather not sign in? Build the LPS22 model yourself. In UXB-300, click Create, then Browse and Continue without (Custom). Name your project, set Device ID to 0x5D, choose Bus/Bit Pirate BPIO2 I2C and click Create. The BPIO2 dongle is built in, so there are no packets to define.

In the Editor, click + under IC Registers.

Enter the addresses f-12, 27-2c and click Create.

image

Click register 0x10 and set Name to CTRL_REG1, Access to r/w immediate and Packet to One Byte. Name 0x0F WHO_AM_I, 0x2B TEMP_OUT_L and 0x2C TEMP_OUT_H the same way.

image

Click the Gear icon and select Multi-Registers.

image

Click + to add a multi-register for temperature.

image

Name it Temperature and add TEMP_OUT_H (1) and TEMP_OUT_L (0), bits 7-0, to form the 16-bit value.

image

Click the pencil next to Parameter and add the converters: value * 0.01 for TempC and value * 0.01 * 1.8 + 32 for TempF.

image

Now connect, scan and set the address to 0x5D as in Make it yours above. Write 40 to CTRL_REG1, switch on P under Transactions, and TempC and TempF update live.

image

Save your project so you can load it again later.

Next Steps:

Add pressure: create a multi-register from PRESSURE_OUT_XL, PRESSURE_OUT_L and PRESSURE_OUT_H (0x28 to 0x2A) and set the converter to value/4096 for hPa.
The same GPIO list also gives you SPI (IO0 to IO3), so try an SPI sensor next.

Questions and feedback are welcome in the comments, and let us know what other boards or sensors you'd like to see.

  • Sign in to reply
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 © 2026 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.

Follow element14

  • X
  • Facebook
  • linkedin
  • YouTube