Canonical: https://domosenso.org/devices/m5stack-module-cc1101/

# M5Stack Module CC1101 (868 MHz)

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

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](https://github.com/zerostorypoints/domosenso/blob/3fe3ed7ce0521bfb720b8f4ba2fe0f7af7309247/devices/m5stack-module-cc1101.yaml). For 433 MHz the other module,
[cc1101.md](https://domosenso.org/devices/cc1101/), 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, 22](https://domosenso.org/wiring/m5stack-cc1101-atom-lite.svg)

| Atom Lite socket | module M-Bus pin | label on the module's top side | signal | wire |
|---|---|---|---|---|
| G | 1 | GND | ground | black |
| 5V | 28 | 5V | power | red |
| G23 | 7 | 23 | SPI MOSI | blue |
| G19 | 9 | 19 | SPI MISO | green |
| G33 | 11 | 18 | SPI clock | yellow |
| G21 | 8 | 25 | CSN | orange |
| G22 | 20 | 5 | GDO0, transmit data | purple |
| G25 | 22 | 13 | GDO2, receive data | white |

- **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](#enclosure) below, or a strip of tape.

## DIP switches

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

| switch | ON routes | set |
|---|---|---|
| SW1 1 | CSN to pin 8 | **ON** |
| SW1 2, 3, 4 | CSN to pins 23, 21, 24 | off |
| SW2 1, 2, 3 | GDO2 to pins 2, 22, 20 | **2 ON**, 1 and 3 off |
| SW2 4, 5, 6 | GDO0 to pins 2, 22, 20 | **6 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](https://github.com/zerostorypoints/domosenso/blob/3fe3ed7ce0521bfb720b8f4ba2fe0f7af7309247/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 back](https://domosenso.org/enclosures/m5stack-cc1101-atom-lite/closed.png)

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.

- [How to print and assemble it](https://github.com/zerostorypoints/domosenso/blob/3fe3ed7ce0521bfb720b8f4ba2fe0f7af7309247/devices/enclosures/m5stack-cc1101-atom-lite/README.md): print settings,
  hardware, wiring, assembly, the parameters and what a first print has to confirm.
- Bambu Studio projects (P2S, settings applied): [base](https://github.com/zerostorypoints/domosenso/blob/3fe3ed7ce0521bfb720b8f4ba2fe0f7af7309247/devices/enclosures/m5stack-cc1101-atom-lite/3mf/base.3mf),
  [base with wall ears](https://github.com/zerostorypoints/domosenso/blob/3fe3ed7ce0521bfb720b8f4ba2fe0f7af7309247/devices/enclosures/m5stack-cc1101-atom-lite/3mf/base_wall.3mf),
  [lid](https://github.com/zerostorypoints/domosenso/blob/3fe3ed7ce0521bfb720b8f4ba2fe0f7af7309247/devices/enclosures/m5stack-cc1101-atom-lite/3mf/lid.3mf),
  [clamp](https://github.com/zerostorypoints/domosenso/blob/3fe3ed7ce0521bfb720b8f4ba2fe0f7af7309247/devices/enclosures/m5stack-cc1101-atom-lite/3mf/clamp.3mf), [clamp for 12 mm housings](https://github.com/zerostorypoints/domosenso/blob/3fe3ed7ce0521bfb720b8f4ba2fe0f7af7309247/devices/enclosures/m5stack-cc1101-atom-lite/3mf/clamp_12mm.3mf).
- STL for other slicers: [base](https://github.com/zerostorypoints/domosenso/blob/3fe3ed7ce0521bfb720b8f4ba2fe0f7af7309247/devices/enclosures/m5stack-cc1101-atom-lite/stl/base.stl),
  [base with wall ears](https://github.com/zerostorypoints/domosenso/blob/3fe3ed7ce0521bfb720b8f4ba2fe0f7af7309247/devices/enclosures/m5stack-cc1101-atom-lite/stl/base_wall.stl),
  [lid](https://github.com/zerostorypoints/domosenso/blob/3fe3ed7ce0521bfb720b8f4ba2fe0f7af7309247/devices/enclosures/m5stack-cc1101-atom-lite/stl/lid.stl),
  [clamp](https://github.com/zerostorypoints/domosenso/blob/3fe3ed7ce0521bfb720b8f4ba2fe0f7af7309247/devices/enclosures/m5stack-cc1101-atom-lite/stl/clamp.stl),
  [clamp for 12 mm housings](https://github.com/zerostorypoints/domosenso/blob/3fe3ed7ce0521bfb720b8f4ba2fe0f7af7309247/devices/enclosures/m5stack-cc1101-atom-lite/stl/clamp_12mm.stl),
  [ring and logo inlay](https://github.com/zerostorypoints/domosenso/blob/3fe3ed7ce0521bfb720b8f4ba2fe0f7af7309247/devices/enclosures/m5stack-cc1101-atom-lite/stl/lid_inlay_parts.stl) (optional,
  second filament).
- [Parametric source](https://github.com/zerostorypoints/domosenso/blob/3fe3ed7ce0521bfb720b8f4ba2fe0f7af7309247/devices/enclosures/m5stack-cc1101-atom-lite/enclosure.scad) (OpenSCAD).

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).

Source: https://github.com/zerostorypoints/domosenso/blob/3fe3ed7ce0521bfb720b8f4ba2fe0f7af7309247/devices/m5stack-module-cc1101.md
