Last few weeks I have been working with RF modules to establish a wireless communication link between two systems. But most of the times my efforts were a failure. I had an MSP430 Launchpad, Stellaris Launchpad and two NRF24L01 modules. In order to check whether those wireless modules are working I had to setup a wireless communication link. I thought it would be easier for me if I used the available Stellaris and MSP launchpads for this task.
I started threads and followed some more on 430h and Stellaris forum.
When I go through the Stellaris TI forum I came across an Energia library for NRF24L01 to be used with Stellaris Launchpad. In one of the 43oh forums I found the corresponding library on Energia for MSP430 Launchpad. Following are the links to those threads,
You can download Energia, which is an IDE similar to Arduino but modified to facilitate the MSP430 and Stellaris Launchpads. Following link will guide you to the download page of Energia.
Setting up the wireless link:
I used the Stellaris launchpad as the TX and the MSP430 as the RX for no specific reason. Following are the pinouts,
Make sure that you supply 3.3V to the NRF24L01 module. Failing to do so may result in permanent damages to the module.
Energia library setup:
Download both libraries and the Energia software from the links provided above. You will have to patch Energia in order to make sure that your SPIs are working fine. The patching procedure is available at the 43oh forum link I mentioned above. Make sure that your RXD and TXD jumpers on the MSP430 launchpad are connected in the proper way according to guidelines given in the Energia website.
Extract the libraries to “\Documents\Energia\Libraries” or equivalent, so that Energia will be able to find them when they are needed for a compilation.
Upload the RX example (Enrf24_RXdemo.ino) to the MSP430 board, the example can be found inside the library you downloaded for the MSP430 board.
Upload the TX example (AStelTXdemo.ino) to the Stellaris launchpad, the example can be found inside the library you downloaded for the Stellaris launchpad.
Now you will see the Red LED at the MSP430 launchpad blinking if you did everything perfectly.
Open your favorite console. I use putty. Make sure both your serial baud rate configurations have been set to have a baud rate of 9600 without parity bit. If you did everything perfectly you will get console outputs as follows,