Close

Sushi Framework example on bread board: add menu to UI to switch ON/OFF a relay.

A project log for SushiPython IoT Framework & Boards

OS-like firmware for ESP32 - A complete environment: Web UI, Menus & Drivers out-of-the-box for MicroPython From breadboard to real projects

marcoMarco 11/14/2025 at 21:470 Comments

SushiPython - IoT MicroPython example

Source files

Source files on GitHub : dkc_menu example

Instructions

Hardware components

This project uses the following hardware:

In each component overview file there are some brief info. All components can be found widely on the web, so just as example it's provided some link where can be bought.

Overview

Hardware connections table

PinConnected ToTypeNote
ESP32.USBUSB Power suppplier5V PowerPowers the board and peripherals
ESP32.GNDBB.GNDGNDCommon ground network (1)
ESP32.5VBB.VCC5VShared power rail (1)
Relay.VCCBB.VCC5VPower supply for relay module
Relay.GNDBB.GNDGNDCommon ground
Relay.INESP32.GPIO15DigitalRelay control signal
Keypad.GNDBB.GNDGNDCommon ground
Keypad.K1ESP32.GPIO19DigitalButton 1
Keypad.K2ESP32.GPIO18DigitalButton 2
Keypad.K3ESP32.GPIO5DigitalButton 3
Keypad.K4ESP32.GPIO4DigitalButton 4
OLED.VCCBB.VCC5VPower supply (2)
OLED.GNDBB.GNDGNDCommon ground
OLED.SDAESP32.GPIO21SDAI2C data
OLED.SCLESP32.GPIO22SCLI2C clock

Notes:

Resources

SushiPython IoT Firmware download
Online coding manual
SushiPython IoT project overview

Quick reference
In the REPL, run:

  sushi.help()

or see the result directly here.

Discussions