Menu
OPEN HOME AUTOMATIONCOMPONENTS · AGENT SKILLS · YOUR OWN PROJECTAPACHE-2.0 ↗
← DOMOSENSO / FRAMEWORK

HARDWARE / SETUP GUIDE

M5Stack Module CC1101 (868 MHz)

A radio link to a garage door or gate handset at 868 MHz.

All hardware
Documented component versionsView pinned hardware source ↗

Follow the instructions for this exact model and role. Compatibility with other models is not implied.

M5Stack Module CC1101 (868 MHz): wiring and setup

M5Stack's Module CC1101 (SKU M146): an Ebyte E07-900M10S (CC1101, 855 to 925 MHz) on an M-Bus module with an SMA antenna socket, wired to an M5Stack Atom Lite with eight Dupont jumpers. The gate-remote component's node, which captures and sends a gate handset's code at 868 MHz. Device file: m5stack-module-cc1101.yaml. For 433 MHz the other module, cc1101.md, has the same signals on the same Atom sockets.

Wiring

The module pin side up, antenna at the top, and the Atom from above: eight wires from G, 5V, G23, G19, G33, G21, G22, G25 to module pins 1, 28, 7, 9, 11, 8, 20, 22Open full-size diagram ↗

Atom Lite socketmodule M-Bus pinlabel on the module's top sidesignalwire
G1GNDgroundblack
5V285Vpowerred
G23723SPI MOSIblue
G19919SPI MISOgreen
G331118SPI clockyellow
G21825CSNorange
G22205GDO0, transmit datapurple
G252213GDO2, receive datawhite
  • Power from 5V, never 3V3. The module has its own regulator (VRH3301, 5 V → 3.3 V, M5Stack schematic SCH V0.1 2024-12-30); its M-Bus 3.3 V pin is not connected to anything.
  • The labels on the top side are the GPIOs of M5Stack's Core controllers, not the Atom's: use them only to find a pin. Each pin goes through the board: a female socket on top, a short male pin underneath.
  • Pin columns on the pin side: the column at the board edge holds the odd pins 1 to 29, pin 1 at the antenna end; the inner column the even pins 2 to 30. The module's printed "5V" arrow points at the inner column's 14th pin, which is pin 28. Before power, a continuity test from the antenna socket's shell must beep on the edge column's top three pins (1, 3, 5: ground).
  • Short pins. Dupont sockets seat only part-way on the module's pins and can work loose. The node works that way (tested), but something that holds the eight housings is wise: the enclosure below, or a strip of tape.

DIP switches

On the top side, next to a printed table. ON is the side printed "ON".

switchON routesset
SW1 1CSN to pin 8ON
SW1 2, 3, 4CSN to pins 23, 21, 24off
SW2 1, 2, 3GDO2 to pins 2, 22, 202 ON, 1 and 3 off
SW2 4, 5, 6GDO0 to pins 2, 22, 206 ON, 4 and 5 off

GDO0 and GDO2 share the same three pins, so they must not be switched onto the same one.

First start

Capture firmware and the steps: components/gate-remote/README.md. At boot the log shows CC1101 found! Chip ID: 0x0014; Failed to verify CC1101. means one of the SPI wires or CSN does not seat. Tested with the SPI bus at 1 MHz over Dupont jumpers.

Enclosure

The closed enclosure: a grey box with the DomoSenso.org symbol, vent slots and a ring around the button well on its lid, the USB-C opening on the right and the antenna standing up at the backOpen full-size image ↗

A printable three-part box for the module, the Atom and the eight jumpers: a clamp held down by two spring flaps in the lid keeps the female housings on the module's short pins. No supports, no screws; the lid snaps on. The Atom's button sits at the bottom of a finger well, and the antenna stands upright out of the back wall.

The first printed clamp found four screws beside the module's corner holes that M5Stack's drawing does not show; the model now leaves room for them, and the second clamp seats on the module. That build's jumpers have 12 mm female housings, so there is a clamp for those too (not printed yet); measure yours and print the clamp that matches. The first base did not take the module: the two screws of the antenna jack's flange, also missing from the drawing, stood on the back wall. A groove inside the back wall now takes their heads; a base printed earlier can be given the same groove (the enclosure's README gives the dimensions). That base, given the groove by hand, and the first lid now hold a working node. A base and lid with the later fixes (side stops in place of pins under the module, the Atom's stop tied to its pedestal, 1 mm more room for the jumpers under the lid) have not been printed yet: the dimensions come from M5Stack's drawings, its product photo and measurements on the module, and the model checks its own fits and strains.

The antenna

Screw an 868 MHz antenna onto the SMA socket before the node transmits (the module ships with a 2.5 dBi rubber antenna). A CC1101 sending into an open socket can damage its output stage (general radio practice, not seen here).

All hardware