PIC32MX: High-speed Wireless Communication

From Mech
Revision as of 10:41, 15 February 2010 by JonathanDrake (Talk | contribs)
Jump to: navigation, search


Original Assignment

Do not erase this section!

Your assignment is to create the circuit and code that allows two PIC32s to use wireless communication at high speeds using the Transceiver nRF24L01+ Module with Chip Antenna from Sparkfun.

Read up on the nRF24L01+ Module commands and create functions to allow a PIC32 to initialize and send and receive data.

Test your code by sending 1000 bytes of data from one PIC32 to the other and echo the data back. How long does this transmission take? How far can you separate the PIC32s before the transmission is unreliable?

Final Project Goal

Transmit a byte of data (e.g. a character) from one PIC32/nRF24L01+ board to the other board, and display the received character on a PC screen.


Wire a nRF24L01+ chip ("wireless chips") to the transmitting PIC32 board ("transmitter") and receiving PIC32 board ("receiver"). In the main.c file for both the transmitter and receiver, write function to send and receive a byte of data over SPI (channel 1); write function to delay the code for an inputted number of microseconds;


Include a schematic and give any part numbers. A photo of your circuit is OK, but not as a replacement for a schematic.


Where possible, make it a single piece of well-commented cut-and-pastable code, or at least make each function that way, so others can easily copy it. Most comments should be in the code itself; outside the code (on the wiki) should only be explanatory comments that are too cumbersome to include in the code.

Personal tools