As a part of my future IoT projects, I was trying to create reusable libraries and utilities for Arduino, MSP430, PIC, Freescale and STM32 processors using Nordic NRF24L01+ wireless transceiver chip. Ultimate goal is to make cheap sensors (that cost less than 7 to10$ including sensors & batteries) that could be deployed in any IoT, HomeAutomation, etc projects. I was planning to use Raspberry (or any cheap Linux board or cheap Android sticks -- future goal) as my central observer of these cheap nodes.
Here are some major tasks that were necessary (apart from HW):
After lots of trials and tribulations (with limited amount free time after my office/home jobs), I was able to talk Raspberry with following devices (in initial setup scenarios):
Here are some major tasks that were necessary (apart from HW):
- Circuit diagrams that make connectivity
- FW for Linux box and MCUs
- A Data Serialization library for MCUs and Linux box
After lots of trials and tribulations (with limited amount free time after my office/home jobs), I was able to talk Raspberry with following devices (in initial setup scenarios):
- MSP430 LaunchPad with MSP430G2553
- MSP430FR5969 LaunchPad
Idea is to make Raspberry as to receive the radio packets from all sensors ( MSP430s, Arduinos, PICs,etc) and this Raspberry connected to network via LAN and WiFi.
As a next step for proper communication along these wide variety of MCUs with different endianness, I need to create small library in C/C++ for packing all types integers (uint8_t, int8_t, uint16_t, int16_t, uint32_t, int32_t ) and chars. As I could not get this from web (with whatever search strings I gave), so I created small library for doing this job. At present this works on Linux (so that Raspberry can understand what wireless nodes are sending), MSP430G2553 and MSP430FR5969. All UT was done for most generic corner cases, I shall be using this for my home IoT framework.
Once I finish more tests and my system, I will publish code at github:
- Raspberry to MSP430G2553
- Raspberry to MSP430FR5969
- Generic C based Data-Serialization library for Linux/MCUs
I will also publish circuit diagrams for:
- Raspberry to NRF24L01+
- MSP430FR5969 to NRF24L01+
- MSP430G2553 to NRF24L01+