Currently there is no[1][2] documentation in AhoyDTU howto wire up with a NodeMCU based on an ESP8266. Therefore some more information here.

Hardware

Needed:

  • ESP8266 (i.e. NodeMCU) - Microcontroller

  • NRF24L01+ - Wireless transceiver module [3]

Optional

  • 100µF Capacitor beetween GND and VCC[4] - as close[5] as possible to the transceiver module.

Connections

Signal

GPIO

Pin [6]

Color ISO (DIN)[7]

CS/CSN

15

D8

OG (or)

CE

0

D3

BN (br)

IRQ

2

D4

BU (bl)

MISO

12

D6

GN (gr)

MOSI

13

D7

VT (vi)

SCK/SCLK

14

D5

YE (ge)

GND

-

GND

BK (sw)

VCC

-

3.3V

RD (rt)

The pins for CS, CE and IRQ can be specified via the WebGUI. The pins for MISO, MOSI and SCLK are specified in the config.h (currently starting at line 145).

Pin Layout of NRF24L01+

Seen from below, socket on the left.

MISO

IRQ

SCK

MOSI

CE

CSN

GND

VCC

Software

To install AhoyDTU on ESP8266:

Example for upload:

`esptool write_flash 0x0 ahoy_v0.8.36/ESP8266/231230_ahoy_0.8.36_6fb0535_esp8266.bin`

If you like to watch serial output, you may use screen for that:

`screen /dev/ttyUSB0 115200`

Mistakes

If you find an erros in this documentation please feel free to add an issue.


1. AFAIK.
2. Due to a bug in the former documentation for ESP8266.
3. The "\+" version is needed, because the communication happen with 250 kbps.
4. Electrolytic capcacitors have polarization. Therefore, connect it in the correct way. The ElCo has a "-" or "+" printed on its cover.
5. This capacitor is buffering out power peaks of the transceiver module during send and receive; and therefore stabilizes the power for the microcontroller.
6. Pin on NodeMCU DevKit standard module.
7. The color of the wires doesn’t matter. ;-)
8. On debian just do an apt install esptool.