Breadboard
docs
Example project · ESP32

Sensor on the open bench (no breadboard)

The workbench in its purest form: a battery, an ESP32, and a BME280 floating free, wired pin-to-pin, no breadboard anywhere. Run it and read the sensor from the REPL with the prefilled script.

The Sensor on the open bench (no breadboard) circuit as rendered by the simulator

What's on the bench

  • Battery
  • BME280
  • ESP32-C3

The code

This MicroPython script runs on the emulated board every boot; edit it in the Code tab.

from machine import I2C, Pin
i = I2C(0, scl=Pin(9), sda=Pin(8))
print('I2C scan:', i.scan())
print('BME280 chip id:', hex(i.readfrom_mem(0x76, 0xD0, 1)[0]))