Principles

  • Build a MySensors repeater with the material in stock, to test if it would solve the problems with the sensors in the back of the house.

Future extensions

  • Add a Si7021 module to measure temperature and humidity.

The result

P9090062.jpg

Wiring

MISO = M1, MOSI = M0

Component Pin Wire/Component Pin Component
NRF24L01+ Adapter +3.3V red 5V Breadboard
NRF24L01+ Adapter GND brown GND Breadboard
NRF24L01+ Adapter CE blue 9 ArduinoProMini5V
NRF24L01+ Adapter CSN purple 10 ArduinoProMini5V
NRF24L01+ Adapter SCK yellow 13 ArduinoProMini5V
NRF24L01+ Adapter M0 (MOSI) gray 11 ArduinoProMini5V
NRF24L01+ Adapter M1 (MISO) white 12 ArduinoProMini5V
NRF24L01+ Adapter IRQ green 2 ArduinoProMini5V
ArduinoProMini5V VCC red 5V Breadboard
ArduinoProMini5V GND black GND Breadboard

Programming

  • Use Platformio, see platformio.ini file.
  • Board: Arduino Pro or Pro Mini
  • Processor: ATmega328P (5V, 16MHz)
  • Serial monitor: 19200 Baud

Code at: RepeaterProMini.ino

First sign of life

__  __       ____
|  \/  |_   _/ ___|  ___ _ __  ___  ___  _ __ ___
| |\/| | | | \___ \ / _ \ `_ \/ __|/ _ \| `__/ __|
| |  | | |_| |___| |  __/ | | \__ \  _  | |  \__ \
|_|  |_|\__, |____/ \___|_| |_|___/\___/|_|  |___/
        |___/                      2.3.2

104 MCO:BGN:INIT REPEATER,CP=RNNRA---,FQ=16,REL=255,VER=2.3.2
171 TSM:INIT
177 TSF:WUR:MS=8000
193 TSM:INIT:TSP OK
203 TSF:SID:OK,ID=13
215 TSM:FPAR
224 ?TSF:MSG:SEND,13-13-255-255,s=255,c=3,t=7,pt=0,l=0,sg=0,ft=0,st=OK:
316 TSF:MSG:READ,0-0-13,s=255,c=3,t=8,pt=1,l=1,sg=0:0
345 TSF:MSG:FPAR OK,ID=0,D=1
953 TSF:MSG:READ,7-7-13,s=255,c=3,t=8,pt=1,l=1,sg=0:1
1007 TSF:MSG:READ,10-10-13,s=255,c=3,t=8,pt=1,l=1,sg=0:1
2263 TSM:FPAR:OK
2271 TSM:ID
2278 TSM:ID:OK
2285 TSM:UPL
2296 TSF:MSG:SEND,13-13-0-0,s=255,c=3,t=24,pt=1,l=1,sg=0,ft=0,st=OK:1
2333 TSF:MSG:READ,0-0-13,s=255,c=3,t=25,pt=1,l=1,sg=0:1
2363 TSF:MSG:PONG RECV,HP=1
2377 TSM:UPL:OK
2385 TSM:READY:ID=13,PAR=0,DIS=1
2405 TSF:MSG:SEND,13-13-0-0,s=255,c=3,t=15,pt=6,l=2,sg=0,ft=0,st=OK:0100
2443 TSF:MSG:READ,0-0-13,s=255,c=3,t=15,pt=6,l=2,sg=0:0100
2479 TSF:MSG:SEND,13-13-0-0,s=255,c=0,t=18,pt=0,l=5,sg=0,ft=0,st=OK:2.3.2
2521 TSF:MSG:SEND,13-13-0-0,s=255,c=3,t=6,pt=1,l=1,sg=0,ft=0,st=OK:0
2557 TSF:MSG:READ,0-0-13,s=255,c=3,t=6,pt=0,l=1,sg=0:M
2591 TSF:MSG:SEND,13-13-0-0,s=255,c=3,t=11,pt=0,l=17,sg=0,ft=0,st=OK:Repeater Pro Mini
2640 TSF:MSG:SEND,13-13-0-0,s=255,c=3,t=12,pt=0,l=3,sg=0,ft=0,st=OK:1.0
2678 MCO:REG:REQ
2692 TSF:MSG:SEND,13-13-0-0,s=255,c=3,t=26,pt=1,l=1,sg=0,ft=0,st=OK:2
2728 TSF:MSG:READ,0-0-13,s=255,c=3,t=27,pt=1,l=1,sg=0:1
2757 MCO:PIM:NODE REG=1
2770 MCO:BGN:STP
Repeater Pro Mini 1.0 - Online!
2790 MCO:BGN:INIT OK,TSP=1
148944 TSF:MSG:READ,0-0-255,s=255,c=3,t=20,pt=0,l=0,sg=0:
148974 TSF:MSG:BC
149490 TSF:MSG:SEND,13-13-0-0,s=255,c=3,t=21,pt=1,l=1,sg=0,ft=0,st=OK:0
149528 TSF:MSG:FWD BC MSG
149544 ?TSF:MSG:SEND,0-13-255-255,s=255,c=3,t=20,pt=0,l=0,sg=0,ft=0,st=OK:
149894 TSF:MSG:READ,0-7-255,s=255,c=3,t=20,pt=0,l=0,sg=0:
149924 TSF:MSG:BC

Proof that it works:

1818373 TSF:MSG:READ,15-15-0,s=255,c=3,t=0,pt=1,l=1,sg=0:48
1818404 TSF:MSG:REL MSG
1818422 TSF:MSG:SEND,15-13-0-0,s=255,c=3,t=0,pt=1,l=1,sg=0,ft=0,st=OK:48
1818460 TSF:MSG:READ,15-15-0,s=1,c=1,t=16,pt=2,l=2,sg=0:0
1818490 TSF:MSG:REL MSG
1818507 TSF:MSG:SEND,15-13-0-0,s=1,c=1,t=16,pt=2,l=2,sg=0,ft=0,st=OK:0
1980779 TSF:MSG:READ,0-0-255,s=255,c=3,t=20,pt=0,l=0,sg=0:
1980810 TSF:MSG:BC
1981228 TSF:MSG:SEND,13-13-0-0,s=255,c=3,t=21,pt=1,l=1,sg=0,ft=0,st=OK:0
1981266 TSF:MSG:FWD BC MSG
1981283 ?TSF:MSG:SEND,0-13-255-255,s=255,c=3,t=20,pt=0,l=0,sg=0,ft=0,st=OK:
1981323 TSF:MSG:READ,0-7-255,s=255,c=3,t=20,pt=0,l=0,sg=0:
1981355 TSF:MSG:BC
1981365 TSF:MSG:READ,0-10-255,s=255,c=3,t=20,pt=0,l=0,sg=0:
1981395 TSF:MSG:BC
2248457 TSF:MSG:READ,15-15-0,s=255,c=3,t=0,pt=1,l=1,sg=0:48
2248488 TSF:MSG:REL MSG
2248505 TSF:MSG:SEND,15-13-0-0,s=255,c=3,t=0,pt=1,l=1,sg=0,ft=0,st=OK:48
2248544 TSF:MSG:READ,15-15-0,s=1,c=1,t=16,pt=2,l=2,sg=0:0
2248574 TSF:MSG:REL MSG
2248591 TSF:MSG:SEND,15-13-0-0,s=1,c=1,t=16,pt=2,l=2,sg=0,ft=0,st=OK:0
Tags: domotica nodes
Comments: