Introducing MySensors on nRF24LE1
-
First impression of MySensors running on nRF24LE1. Reporting temperature / humidity from DHT22, VCC voltage and millis() timer.
This SoC has many interesting features (SPI, 2-Wire, Serial, GPIO, ADC, RNG, AES accelerator, etc. ) and sub uA sleeping modes - without the need to solder a RF module. However, flash size limited to 16kB - still more than enough for many (peripheral) sensors... :)

Readings in MYSController:

Compiling with SDCC and nRF24LE1 SDK.
Source (Proof of concept/POC, non-optimized) here. -
Great work indeed!
However, the source link (at this time) fails...
-
impressive work. very good idea!
-
What is the current in transmition and idle mode?
Did you realize sleep? -
hmm 8051 instruction set.. Now that's an old mcu then.. Remember them from back in the beginning of the 90's
Thought they where long forgotten, and dead, now that there are newer (and probably more efficient) mcu cores available.
Actually, just found my final exam project I made 20 years ago based on an 80535. An EPROM burner, that could program up to 27c512 :) And one had to use UV lamps to erase the chips again (Getting all nostalgic here :))
-
This looks very cool. I understand the concept, and I'm more of a software guy then an electronics guy, but I have not done anything like this. Would you be able to provide a step by step or point me to something that could get me from code to getting it onto the chip. Thanks great idea.
-
This looks very cool. I understand the concept, and I'm more of a software guy then an electronics guy, but I have not done anything like this. Would you be able to provide a step by step or point me to something that could get me from code to getting it onto the chip. Thanks great idea.
@gbfromhb said:
This looks very cool. I understand the concept, and I'm more of a software guy then an electronics guy, but I have not done anything like this. Would you be able to provide a step by step or point me to something that could get me from code to getting it onto the chip. Thanks great idea.
Since everything is pretty much POC at the moment, no time so far to compile a doc. However, uVision Keil is the official IDE supporting those MCUs (compiler, simulator, flashing, and debugging). You will also find some information (e.g. SDK, open-source programmer, etc.) by simply searching for "nRF24LE1" ...
More to follow...
-
Checking aliexpress:
At those sizes and prices, this could be a very interesting option. Looking forward to hearing about your progress.
-
First impression of MySensors running on nRF24LE1. Reporting temperature / humidity from DHT22, VCC voltage and millis() timer.
This SoC has many interesting features (SPI, 2-Wire, Serial, GPIO, ADC, RNG, AES accelerator, etc. ) and sub uA sleeping modes - without the need to solder a RF module. However, flash size limited to 16kB - still more than enough for many (peripheral) sensors... :)

Readings in MYSController:

Compiling with SDCC and nRF24LE1 SDK.
Source (Proof of concept/POC, non-optimized) here. -
@tekkaYou can follow any responses to publish libraries (MyMessage.h MyMessage.cpp, ...) adapt to the SDCC compiler?
@alexSV said:
@tekkaYou can follow any responses to publish libraries (MyMessage.h MyMessage.cpp, ...) adapt to the SDCC compiler?
For the example above the standard MyMessage.h library was used. All other dependencies can be found in the nRF24LE1 SDK from nordic.
-
@alexSV said:
@tekkaYou can follow any responses to publish libraries (MyMessage.h MyMessage.cpp, ...) adapt to the SDCC compiler?
For the example above the standard MyMessage.h library was used. All other dependencies can be found in the nRF24LE1 SDK from nordic.
@tekka sdсс not support __attribute ((packed)). Or do you use a different compiler?
sdcc --model-large --std-sdcc99 -Iinclude -I../SDK/_target_sdcc_nrf24le1_32/include -I../SDK/include -I./aes/include -c src/main.c -o "obj/"
include/MyMessage.h:308: syntax error: token -> '(' ; column 18
make: *** [obj/main.rel] Ошибка 1
(attribute((packed));)
and
sdcc --model-large --std-sdcc99 -Iinclude -I../SDK/_target_sdcc_nrf24le1_32/include -I../SDK/include -I./aes/include -c src/main.c -o "obj/"
src/main.c:74: syntax error: token -> 'outMsg' ; column 16
make: *** [obj/main.rel] Ошибка 1 -
@tekka sdсс not support __attribute ((packed)). Or do you use a different compiler?
sdcc --model-large --std-sdcc99 -Iinclude -I../SDK/_target_sdcc_nrf24le1_32/include -I../SDK/include -I./aes/include -c src/main.c -o "obj/"
include/MyMessage.h:308: syntax error: token -> '(' ; column 18
make: *** [obj/main.rel] Ошибка 1
(attribute((packed));)
and
sdcc --model-large --std-sdcc99 -Iinclude -I../SDK/_target_sdcc_nrf24le1_32/include -I../SDK/include -I./aes/include -c src/main.c -o "obj/"
src/main.c:74: syntax error: token -> 'outMsg' ; column 16
make: *** [obj/main.rel] Ошибка 1 -
@tekka Nice project. This would be very useful for small, battery powered, binary sensors. What did you use to program the nRF24LE1?