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

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=0
191 TSM:INIT:TSP OK
201 TSM:FPAR
209 ?TSF:MSG:SEND,255-255-255-255,s=255,c=3,t=7,pt=0,l=0,sg=0,ft=0,st=OK:
555 TSF:MSG:READ,0-0-255,s=255,c=3,t=8,pt=1,l=1,sg=0:0
583 TSF:MSG:FPAR OK,ID=0,D=1
1213 TSF:MSG:READ,7-7-255,s=255,c=3,t=8,pt=1,l=1,sg=0:1
1997 TSF:MSG:READ,10-10-255,s=255,c=3,t=8,pt=1,l=1,sg=0:2
2198 TSF:MSG:READ,17-17-255,s=255,c=3,t=8,pt=1,l=1,sg=0:1
2249 TSM:FPAR:OK
2257 TSM:ID
2265 TSM:ID:REQ
2274 TSF:MSG:SEND,255-255-0-0,s=217,c=3,t=3,pt=0,l=0,sg=0,ft=0,st=OK:
2311 TSF:MSG:READ,0-0-255,s=217,c=3,t=4,pt=0,l=2,sg=0:20
2340 TSF:SID:OK,ID=20
2353 TSF:MSG:READ,0-7-255,s=217,c=3,t=4,pt=0,l=2,sg=0:20
2382 TSF:MSG:BC
2391 TSF:MSG:READ,0-0-255,s=217,c=3,t=4,pt=0,l=2,sg=0:20
2421 TSF:MSG:BC
2429 TSF:MSG:READ,0-7-255,s=217,c=3,t=4,pt=0,l=2,sg=0:20
2459 TSF:MSG:BC
2468 TSM:ID:OK
2476 TSM:UPL
2485 TSF:MSG:SEND,20-20-0-0,s=255,c=3,t=24,pt=1,l=1,sg=0,ft=0,st=OK:1
2522 TSF:MSG:READ,0-0-20,s=255,c=3,t=25,pt=1,l=1,sg=0:1
2550 TSF:MSG:PONG RECV,HP=1
2566 TSM:UPL:OK
2574 TSM:READY:ID=20,PAR=0,DIS=1
2595 TSF:MSG:SEND,20-20-0-0,s=255,c=3,t=15,pt=6,l=2,sg=0,ft=0,st=OK:0100
2633 TSF:MSG:READ,0-0-20,s=255,c=3,t=15,pt=6,l=2,sg=0:0100
2669 TSF:MSG:SEND,20-20-0-0,s=255,c=0,t=18,pt=0,l=5,sg=0,ft=0,st=OK:2.3.2
2711 TSF:MSG:SEND,20-20-0-0,s=255,c=3,t=6,pt=1,l=1,sg=0,ft=0,st=OK:0
2748 TSF:MSG:READ,0-0-20,s=255,c=3,t=6,pt=0,l=1,sg=0:M
2782 TSF:MSG:SEND,20-20-0-0,s=255,c=3,t=11,pt=0,l=20,sg=0,ft=0,st=OK:Repeater Pro Mini TH
2831 TSF:MSG:SEND,20-20-0-0,s=255,c=3,t=12,pt=0,l=3,sg=0,ft=0,st=OK:2.2
2873 TSF:MSG:SEND,20-20-0-0,s=1,c=0,t=6,pt=0,l=17,sg=0,ft=0,st=OK:RWS - Temperature
2922 TSF:MSG:SEND,20-20-0-0,s=2,c=0,t=7,pt=0,l=14,sg=0,ft=0,st=OK:RWS - Humidity
2964 MCO:REG:REQ
2977 TSF:MSG:SEND,20-20-0-0,s=255,c=3,t=26,pt=1,l=1,sg=0,ft=0,st=OK:2
3014 TSF:MSG:READ,0-0-20,s=255,c=3,t=27,pt=1,l=1,sg=0:1
3044 MCO:PIM:NODE REG=1
3056 MCO:BGN:STP
Repeater Pro Mini TH 2.2 - Online!
isMetric: 1
3078 MCO:BGN:INIT OK,TSP=1
3148 TSF:MSG:READ,0-17-255,s=217,c=3,t=4,pt=0,l=2,sg=0:20
3178 TSF:MSG:BC
3187 TSF:MSG:READ,0-10-255,s=217,c=3,t=4,pt=0,l=2,sg=0:20
3217 TSF:MSG:BC
3441 TSF:MSG:READ,0-17-255,s=217,c=3,t=4,pt=0,l=2,sg=0:20
3472 TSF:MSG:BC
3480 TSF:MSG:READ,0-10-255,s=217,c=3,t=4,pt=0,l=2,sg=0:20
3511 TSF:MSG:BC
3735 TSF:MSG:READ,0-17-255,s=217,c=3,t=4,pt=0,l=2,sg=0:20
3765 TSF:MSG:BC
3774 TSF:MSG:READ,0-10-255,s=217,c=3,t=4,pt=0,l=2,sg=0:20
3805 TSF:MSG:BC
4028 TSF:MSG:READ,0-17-255,s=217,c=3,t=4,pt=0,l=2,sg=0:20
4059 TSF:MSG:BC
4068 TSF:MSG:READ,0-10-255,s=217,c=3,t=4,pt=0,l=2,sg=0:20
4098 TSF:MSG:BC
4322 TSF:MSG:READ,0-17-255,s=217,c=3,t=4,pt=0,l=2,sg=0:20
4353 TSF:MSG:BC
4361 TSF:MSG:READ,0-10-255,s=217,c=3,t=4,pt=0,l=2,sg=0:20
4391 TSF:MSG:BC
4616 TSF:MSG:READ,0-17-255,s=217,c=3,t=4,pt=0,l=2,sg=0:20
4645 TSF:MSG:BC
4655 TSF:MSG:READ,0-10-255,s=217,c=3,t=4,pt=0,l=2,sg=0:20
4685 TSF:MSG:BC
4909 TSF:MSG:READ,0-17-255,s=217,c=3,t=4,pt=0,l=2,sg=0:20
4939 TSF:MSG:BC
4948 TSF:MSG:READ,0-10-255,s=217,c=3,t=4,pt=0,l=2,sg=0:20
4978 TSF:MSG:BC
5202 TSF:MSG:READ,0-17-255,s=217,c=3,t=4,pt=0,l=2,sg=0:20
5233 TSF:MSG:BC
5241 TSF:MSG:READ,0-10-255,s=217,c=3,t=4,pt=0,l=2,sg=0:20
5272 TSF:MSG:BC
Tags: domotica nodes
Comments: