ESP32 and CC1101: how to find pinout of ESP32?

Dear community,

I use the “AI on the edge”-project to read our water consumption. This works okayish. There are some miss-readings from time to time. I would like to try something else.

I stumbled accross this post by @pazzotranquillo: M-Bus (Meter-Bus) on Raspberry Pi Integration - #16 by pazzotranquillo and I would like to build it myself.

I just found an ESP32 board that I have bought a year ago. Unfortunately, there is no discription of the pinout. I am struggling the find the right pins to use for the CC1101 antenna board.

The antenna board needs the following pins:

  • GND
  • VCC (1.6-3.6V)
  • GD00 (Module information output pin)
  • CSN (Module chip selects the pin used to start an SPI channel)
  • SCK (Module SPI bus clock)
  • MOSI (Module SPI data input pin)
  • MISO/GD01 (Module SPI data output pin)
  • GD02 (Module information output pin)
    (I have found a pinout schema for the antenna.)

This is the board. Can anybody recommend, which pins to connect to?

Any help is very much appreciated.

Esp32 board has pins labeled.
Cc1101 doesn’t but it’s like this:


For normal esp32 “default” sck=18, mosi=23, miso=19, csn=5.
Gdo0 and gdo2 can be whatever.

Hi @Karosm,

thank you for your help. I was able to connect everything. Unfortunately, when compiling my ESPHome yaml, I get errors because of missing dependencies. The owner of the git repository does not has the time ot fix this.

I could try to fix the repo with a little help from an artificial friend - or I could try to build it from scratch based on arduino. Both not an option at the moment.

I will pause my project for now and pick it up some months from now.

Chris

Hi,
Thanks for quoting me in your post.

Please find below the link to my Esphome configuration, that I’m running on Esphome 2025.7.5. I believe the component is incompatible with newer versions of Esphome.

I hope that helps.

Hi @pazzotranquillo,

thank you for your input. I finally got the code compiled. The main difference was this:

  framework:
    type: arduino

This compiles, but used 97.7% of the available space on the board.

Unfortunately, I just realised that my water meter is “mBus” - and not “wmBus”. :see_no_evil:
To read mBus, I would need some infrared device… so I stick to my AI-on-the-edge project and will redesign my case to reduce reflections.

Chris