Ships from Alingsås, Sweden · Free shipping from 149 SEK · Swedish support by email and phone
Hobby projects: buttons, knobs, displays, servos and cameras

Hobby projects: buttons, knobs, displays, servos and cameras

2/12, 2026 –

A smart home gets more fun when you can touch it. A knob that dims the light, a row of buttons for scenes, a small keyboard, a display that shows the state, a servo that turns something or a camera that looks. M5Stack has small Grove units for all of this. This guide is an overview of the most common ones, with clear advice on what is easy and what needs some custom code.

An honest note about software

Many of the units below are I2C units with their own controller chip. They work well with Arduino and UIFlow, and M5Stack has examples for them. How far ESPHome gets differs between the units, and in some cases an external component or custom code is needed. Always check the unit's documentation and the current ESPHome documentation before you build. Simple buttons and ordinary rotary encoders on GPIO are supported directly in ESPHome (the binary_sensor and rotary_encoder components).

Buttons, knobs and keyboards

ProductWhat it isGood for
Encoder Unit (U135)Rotary knob with push and RGBDimmer, volume
Scroll Unit (U186)Rotary knob with push and RGBSimple menu, volume
8Encoder Unit (U153)Eight rotary knobs with RGBMixer panel, several lights
ByteButton Unit (U192)Eight push buttons with RGBScenes, shortcuts
Step16 Unit (U198)16-position selector with digit displayChoosing a scene or mode
CardKB v1.1 (U035-B)Mini keyboard with 50 keysEntering text and codes
CardKB2 (U215)Keyboard with ESP32-C61A standalone board with Wi-Fi 6

If you want a ready-made knob with a round touch screen in one package, there is the Dial v1.1 (K130-V11). If you need more ports than your board has, the PbHub v1.1 (U041-B) (PbHub, 6 ports) or the PaHub v2.1 (U040-B-V21) (PaHub, I2C hub) takes care of it.

Displays

ESPHome has components for common OLED drivers. Check the driver for each unit in the documentation.

Servos and movement

The 8Servos Unit (U165) drives eight servos over I2C. The 8Servos2 (U222) (8Servos2) handles 9–24 V and suits larger servos. Typical projects: automatic feeder, hatches, a small robot arm. Servos draw current, so give them their own supply and not just USB from the board. Check voltage and current needs in the documentation.

Cameras and heat

  • CamS3 5MP (U174-B): Wi-Fi camera with ESP32-S3 and 5 megapixels. ESPHome has the esp32_camera component, and you find the pins in M5Stack's documentation.
  • Thermal Camera (U016): thermal camera, 32 × 24 pixels (MLX90640).
  • Thermal Camera 2 (U149): thermal camera with a 110° field of view and its own processor.
  • NCIR (U028): IR thermometer that measures surface temperature without contact.

The thermal cameras are expensive and give few pixels. They are fun and useful for finding heat leaks and overheating components, but they do not replace a professional camera. If you place a regular camera in your home, think carefully about privacy: consider who appears in the picture.

Example project: scene panel for Home Assistant

Goal: a small panel on the wall with a mode selector and a dimmer.

  1. Materials: a board with a Grove port (for example the AtomS3 Lite (C124)), an Step16 Unit (U198) and an Encoder Unit (U135), a hub such as the Grove hub 1 to 3 (U006) and short Grove cables.
  2. Connect the units. Check that they have different I2C addresses, otherwise you need a PaHub.
  3. Start by getting each unit working on its own using M5Stack's examples, and read the values in the serial monitor.
  4. Send the values to Home Assistant. The easiest way is to read them in an ESPHome configuration with an external component or custom code, or to publish them over MQTT.
  5. Create automations in Home Assistant: the mode from the Step16 selects the scene, the knob controls brightness.
  6. Mount the panel when everything works on the bench.

Getting started

  • Start with one unit, for example the Scroll Unit (U186), and get it to show a value.
  • Choose a platform you feel comfortable with. If you want ESPHome and simple buttons, pick those. Otherwise Arduino or UIFlow.
  • Buy a few Grove cables of different lengths and a hub. They are what you will miss most.
  • Write down which I2C addresses you use.

FAQ

Do all units work with ESPHome?

Not directly. Some units have built-in support, others need an external component or custom code. Check the documentation before you buy.

What is the difference between Encoder and Scroll?

Both are knobs with push and RGB. Choose by price, size and which library you want to use.

Can I drive servos straight from the board?

Small servos sometimes work, but larger servos need their own supply. Choose the 8Servos2 (U222) if you need 9–24 V.

How many units can I connect together?

It is decided by the I2C addresses and the current. With a hub you can have several, but start small.