Principles
- Build a MySensors repeater with the material in stock, to test if it would solve the problems with the sensors in the top of the house, which are often not communicating.
Future extensions
- Add a Si7021 module to measure temperature and humidity.
The result
Used Components
Wiring
MISO = M1, MOSI = M0
Component | Pin | Wire/Component | Pin | Component |
---|---|---|---|---|
NRF24L01+ Adapter | VCC | red | 5V | Power Supply |
NRF24L01+ Adapter | GND | black | GND | Power Supply |
NRF24L01+ Adapter | CE | blue | 9 | ArduinoNano5V |
NRF24L01+ Adapter | CSN | purple | 10 | ArduinoNano5V |
NRF24L01+ Adapter | SCK | yellow | 13 | ArduinoNano5V |
NRF24L01+ Adapter | M0 (MOSI) | gray | 11 | ArduinoNano5V |
NRF24L01+ Adapter | M1 (MISO) | white | 12 | ArduinoNano5V |
NRF24L01+ Adapter | IRQ | green | 2 | ArduinoNano5V |
ArduinoNano5V | VCC | red | 5V | Power Supply |
ArduinoNano5V | GND | black | GND | Power Supply |
Programming
- Use Platformio, see platformio.ini file.
- Board: Arduino Nano
- Processor: ATmega328P (5V, 16MHz)
- Serial monitor: 19200 Baud
Code at: RepeaterNanoEbyte.ino
First sign of life
__ __ ____ | \/ |_ _/ ___| ___ _ __ ___ ___ _ __ ___ | |\/| | | | \___ \ / _ \ `_ \/ __|/ _ \| `__/ __| | | | | |_| |___| | __/ | | \__ \ _ | | \__ \ |_| |_|\__, |____/ \___|_| |_|___/\___/|_| |___/ |___/ 2.3.2 104 MCO:BGN:INIT REPEATER,CP=RNNRA-Q-,FQ=16,REL=255,VER=2.3.2 171 TSM:INIT 177 TSF:WUR:MS=0 191 TSM:INIT:TSP OK 202 TSM:FPAR 210 ?TSF:MSG:SEND,255-255-255-255,s=255,c=3,t=7,pt=0,l=0,sg=0,ft=0,st=OK: 2249 !TSM:FPAR:NO REPLY 2262 TSM:FPAR 2270 ?TSF:MSG:SEND,255-255-255-255,s=255,c=3,t=7,pt=0,l=0,sg=0,ft=0,st=OK: 2604 TSF:MSG:READ,17-17-255,s=255,c=3,t=8,pt=1,l=1,sg=0:1 2634 TSF:MSG:FPAR OK,ID=17,D=2 4311 TSM:FPAR:OK 4319 TSM:ID 4326 TSM:ID:REQ 4335 TSF:MSG:SEND,255-255-17-0,s=230,c=3,t=3,pt=0,l=0,sg=0,ft=0,st=OK: 6373 TSM:ID 6379 TSM:ID:REQ 6388 TSF:MSG:SEND,255-255-17-0,s=235,c=3,t=3,pt=0,l=0,sg=0,ft=0,st=OK: 8427 TSM:ID 8433 TSM:ID:REQ 8442 TSF:MSG:SEND,255-255-17-0,s=241,c=3,t=3,pt=0,l=0,sg=0,ft=0,st=OK: 10481 TSM:ID 10487 TSM:ID:REQ 10498 TSF:MSG:SEND,255-255-17-0,s=247,c=3,t=3,pt=0,l=0,sg=0,ft=0,st=OK: 12536 !TSM:ID:FAIL 12546 TSM:FAIL:CNT=1 12557 TSM:FAIL:DIS 12567 TSF:TDI:TSL 22577 TSM:FAIL:RE-INIT 22588 TSM:INIT 22601 TSM:INIT:TSP OK 22614 TSM:FPAR 22623 ?TSF:MSG:SEND,255-255-255-255,s=255,c=3,t=7,pt=0,l=0,sg=0,ft=0,st=OK: 23224 TSF:MSG:READ,0-0-255,s=255,c=3,t=8,pt=1,l=1,sg=0:0 23254 TSF:MSG:FPAR OK,ID=0,D=1 24664 TSM:FPAR:OK 24673 TSM:ID 24680 TSM:ID:REQ 24690 TSF:MSG:SEND,255-255-0-0,s=104,c=3,t=3,pt=0,l=0,sg=0,ft=0,st=OK: 26728 TSM:ID 26734 TSM:ID:REQ 26744 TSF:MSG:SEND,255-255-0-0,s=110,c=3,t=3,pt=0,l=0,sg=0,ft=0,st=OK: 26782 TSF:MSG:READ,0-0-255,s=110,c=3,t=4,pt=0,l=2,sg=0:21 26813 TSF:SID:OK,ID=21 26824 TSF:MSG:READ,0-7-255,s=110,c=3,t=4,pt=0,l=2,sg=0:21 26855 TSF:MSG:BC 26864 TSF:MSG:READ,0-0-255,s=110,c=3,t=4,pt=0,l=2,sg=0:21 26895 TSF:MSG:BC 26904 TSF:MSG:READ,0-7-255,s=110,c=3,t=4,pt=0,l=2,sg=0:21 26934 TSF:MSG:BC 26943 TSF:MSG:READ,0-0-255,s=110,c=3,t=4,pt=0,l=2,sg=0:21 26974 TSF:MSG:BC 26983 TSM:ID:OK 26991 TSM:UPL 27012 TSF:MSG:SEND,21-21-0-0,s=255,c=3,t=24,pt=1,l=1,sg=0,ft=0,st=OK:1 27048 TSF:MSG:READ,0-7-255,s=110,c=3,t=4,pt=0,l=2,sg=0:21 27079 TSF:MSG:BC 27088 TSF:MSG:READ,0-0-255,s=110,c=3,t=4,pt=0,l=2,sg=0:21 27118 TSF:MSG:BC 27127 TSF:MSG:READ,0-7-255,s=110,c=3,t=4,pt=0,l=2,sg=0:21 27158 TSF:MSG:BC 27167 TSF:MSG:READ,0-0-255,s=110,c=3,t=4,pt=0,l=2,sg=0:21 27197 TSF:MSG:BC 27206 TSF:MSG:READ,0-7-255,s=110,c=3,t=4,pt=0,l=2,sg=0:21 27237 TSF:MSG:BC 27246 TSF:MSG:READ,0-0-255,s=110,c=3,t=4,pt=0,l=2,sg=0:21 27276 TSF:MSG:BC 27285 TSF:MSG:READ,0-7-255,s=110,c=3,t=4,pt=0,l=2,sg=0:21 27316 TSF:MSG:BC 27325 TSF:MSG:READ,0-0-255,s=110,c=3,t=4,pt=0,l=2,sg=0:21 27356 TSF:MSG:BC 27364 TSF:MSG:READ,0-7-255,s=110,c=3,t=4,pt=0,l=2,sg=0:21 27395 TSF:MSG:BC 27404 TSF:MSG:READ,0-0-255,s=110,c=3,t=4,pt=0,l=2,sg=0:21 27435 TSF:MSG:BC 27444 TSF:MSG:READ,0-7-255,s=110,c=3,t=4,pt=0,l=2,sg=0:21 27473 TSF:MSG:BC 27483 TSF:MSG:READ,0-0-255,s=110,c=3,t=4,pt=0,l=2,sg=0:21 27513 TSF:MSG:BC 27523 TSF:MSG:READ,0-7-255,s=110,c=3,t=4,pt=0,l=2,sg=0:21 27552 TSF:MSG:BC 27561 TSF:MSG:READ,0-0-255,s=110,c=3,t=4,pt=0,l=2,sg=0:21 27592 TSF:MSG:BC 27601 TSF:MSG:READ,0-7-255,s=110,c=3,t=4,pt=0,l=2,sg=0:21 27631 TSF:MSG:BC 27640 TSF:MSG:READ,0-0-255,s=110,c=3,t=4,pt=0,l=2,sg=0:21 27671 TSF:MSG:BC 27680 TSF:MSG:READ,0-17-255,s=110,c=3,t=4,pt=0,l=2,sg=0:21 27711 TSF:MSG:BC 27720 TSF:MSG:READ,0-20-255,s=110,c=3,t=4,pt=0,l=2,sg=0:21 27751 TSF:MSG:BC 27760 TSF:MSG:READ,0-0-21,s=255,c=3,t=25,pt=1,l=1,sg=0:1 27790 TSF:MSG:PONG RECV,HP=1 27805 TSF:MSG:READ,0-20-255,s=110,c=3,t=4,pt=0,l=2,sg=0:21 27836 TSF:MSG:BC 27845 TSM:UPL:OK 27854 TSM:READY:ID=21,PAR=0,DIS=1 27876 TSF:MSG:SEND,21-21-0-0,s=255,c=3,t=15,pt=6,l=2,sg=0,ft=0,st=OK:0100 27915 TSF:MSG:READ,0-17-255,s=110,c=3,t=4,pt=0,l=2,sg=0:21 27945 TSF:MSG:BC 27955 TSF:MSG:READ,0-20-255,s=110,c=3,t=4,pt=0,l=2,sg=0:21 27985 TSF:MSG:BC 27995 TSF:MSG:READ,0-20-255,s=110,c=3,t=4,pt=0,l=2,sg=0:21 28026 TSF:MSG:BC 28035 TSF:MSG:READ,0-17-255,s=110,c=3,t=4,pt=0,l=2,sg=0:21 28066 TSF:MSG:BC 28075 TSF:MSG:READ,0-20-255,s=110,c=3,t=4,pt=0,l=2,sg=0:21 28106 TSF:MSG:BC 28115 TSF:MSG:READ,0-20-255,s=110,c=3,t=4,pt=0,l=2,sg=0:21 28146 TSF:MSG:BC 28155 TSF:MSG:READ,0-17-255,s=110,c=3,t=4,pt=0,l=2,sg=0:21 28186 TSF:MSG:BC 28195 TSF:MSG:READ,0-20-255,s=110,c=3,t=4,pt=0,l=2,sg=0:21 28226 TSF:MSG:BC 28235 TSF:MSG:READ,0-0-21,s=255,c=3,t=15,pt=6,l=2,sg=0:0100 28304 !TSF:MSG:SEND,21-21-0-0,s=255,c=0,t=18,pt=0,l=5,sg=0,ft=0,st=NACK:2.3.2 28381 !TSF:MSG:SEND,21-21-0-0,s=255,c=3,t=6,pt=1,l=1,sg=0,ft=1,st=NACK:0 28420 TSF:MSG:READ,0-20-255,s=110,c=3,t=4,pt=0,l=2,sg=0:21 28450 TSF:MSG:BC 28460 TSF:MSG:READ,0-17-255,s=110,c=3,t=4,pt=0,l=2,sg=0:21 28490 TSF:MSG:BC 28499 TSF:MSG:READ,0-20-255,s=110,c=3,t=4,pt=0,l=2,sg=0:21 28530 TSF:MSG:BC 28539 TSF:MSG:READ,0-20-255,s=110,c=3,t=4,pt=0,l=2,sg=0:21 28570 TSF:MSG:BC 28579 TSF:MSG:READ,0-17-255,s=110,c=3,t=4,pt=0,l=2,sg=0:21 28610 TSF:MSG:BC 28703 TSF:MSG:READ,0-17-255,s=110,c=3,t=4,pt=0,l=2,sg=0:21 28735 TSF:MSG:BC 29006 TSF:MSG:READ,0-17-255,s=110,c=3,t=4,pt=0,l=2,sg=0:21 29037 TSF:MSG:BC 29309 TSF:MSG:READ,0-17-255,s=110,c=3,t=4,pt=0,l=2,sg=0:21 29340 TSF:MSG:BC 29612 TSF:MSG:READ,0-17-255,s=110,c=3,t=4,pt=0,l=2,sg=0:21 29642 TSF:MSG:BC 29915 TSF:MSG:READ,0-17-255,s=110,c=3,t=4,pt=0,l=2,sg=0:21 29945 TSF:MSG:BC 30437 TSF:MSG:SEND,21-21-0-0,s=255,c=3,t=11,pt=0,l=19,sg=0,ft=2,st=OK:Repeater Nano Ebyte 30520 !TSF:MSG:SEND,21-21-0-0,s=255,c=3,t=12,pt=0,l=3,sg=0,ft=0,st=NACK:1.0 30560 MCO:REG:REQ 30606 !TSF:MSG:SEND,21-21-0-0,s=255,c=3,t=26,pt=1,l=1,sg=0,ft=1,st=NACK:2 30644 TSF:MSG:READ,0-0-21,s=255,c=3,t=27,pt=1,l=1,sg=0:1 30674 MCO:PIM:NODE REG=1 30688 MCO:BGN:STP Repeater Nano Ebyte 1.0 - Online! 30709 MCO:BGN:INIT OK,TSP=1
Then long time nothing. After resetting the repeater:
__ __ ____ | \/ |_ _/ ___| ___ _ __ ___ ___ _ __ ___ | |\/| | | | \___ \ / _ \ `_ \/ __|/ _ \| `__/ __| | | | | |_| |___| | __/ | | \__ \ _ | | \__ \ |_| |_|\__, |____/ \___|_| |_|___/\___/|_| |___/ |___/ 2.3.2 104 MCO:BGN:INIT REPEATER,CP=RNNRA-Q-,FQ=16,REL=255,VER=2.3.2 171 TSM:INIT 177 TSF:WUR:MS=0 191 TSM:INIT:TSP OK 202 TSF:SID:OK,ID=21 212 TSM:FPAR 223 ?TSF:MSG:SEND,21-21-255-255,s=255,c=3,t=7,pt=0,l=0,sg=0,ft=0,st=OK: 861 TSF:MSG:READ,10-10-21,s=255,c=3,t=8,pt=1,l=1,sg=0:1 890 TSF:MSG:FPAR OK,ID=10,D=2 2262 TSM:FPAR:OK 2270 TSM:ID 2277 TSM:ID:OK 2284 TSM:UPL 2293 TSF:MSG:SEND,21-21-10-0,s=255,c=3,t=24,pt=1,l=1,sg=0,ft=0,st=OK:1 2330 TSF:MSG:READ,0-10-21,s=255,c=3,t=25,pt=1,l=1,sg=0:2 2360 TSF:MSG:PONG RECV,HP=2 2375 TSM:UPL:OK 2383 TSM:READY:ID=21,PAR=10,DIS=2 2416 TSF:MSG:SEND,21-21-10-0,s=255,c=3,t=15,pt=6,l=2,sg=0,ft=0,st=OK:0100 2455 TSF:MSG:READ,0-10-21,s=255,c=3,t=15,pt=6,l=2,sg=0:0100 2493 TSF:MSG:SEND,21-21-10-0,s=255,c=0,t=18,pt=0,l=5,sg=0,ft=0,st=OK:2.3.2 2536 TSF:MSG:SEND,21-21-10-0,s=255,c=3,t=6,pt=1,l=1,sg=0,ft=0,st=OK:10 2574 TSF:MSG:READ,0-10-21,s=255,c=3,t=6,pt=0,l=1,sg=0:M 2648 !TSF:MSG:SEND,21-21-10-0,s=255,c=3,t=11,pt=0,l=19,sg=0,ft=0,st=NACK:Repeater Nano Ebyte 2699 TSF:MSG:SEND,21-21-10-0,s=255,c=3,t=12,pt=0,l=3,sg=0,ft=1,st=OK:1.0 2737 MCO:REG:REQ 2750 TSF:MSG:SEND,21-21-10-0,s=255,c=3,t=26,pt=1,l=1,sg=0,ft=0,st=OK:2 2787 TSF:MSG:READ,0-10-21,s=255,c=3,t=27,pt=1,l=1,sg=0:1 2817 MCO:PIM:NODE REG=1 2829 MCO:BGN:STP Repeater Nano Ebyte 1.0 - Online! 2850 MCO:BGN:INIT OK,TSP=1
Comments: