background preloader

Arduino comms

Facebook Twitter

NRF24L01 Radio 2.4GHz Transmitter Receiver On Arduino | Bash Modulo. Charles W. | May 4, 2014 NRF24L01 is a 2.4GHz wireless radio frequency module that can be used to transmit and receive data. This is a great wireless module suitable for short range 100m remote control at 250kbps data rate. Let us look at how to setup NRF24L01 radio frequency transmitter and receiver on the Arduino.

For simplicity, let us pick a simple joystick module as the data source where we transmit the X and Y values of the joystick to the receiver via wireless radio frequency at 2.4GHz frequency band. Setup NRF24L01 2.4GHz Radio Frequency Module On Arduino As Transmitter To setup the NRF24L01 as transmitter on the Arduino, connect the VCC and GND of the module to 3.3v and GND on the Arduino respectively. Our intention is to have the A0 and A1 analog pins to collect the X and Y values of the joystick, and send the data wirelessly via NRF24L01 module. NRF24L01 Transmitter Sketch const uint64_t pipe = 0xE8E8F0F0E1LL; RF24 radio(CE_PIN, CSN_PIN); int joystick[2]; NRF24L01 Receiver Sketch. Getting Started with nRF24L01+ on Arduino | maniacbug. Nordic’s nRF24L01+ 2.4GHz RF radios are a great way to communicate wirelessly between Arduino’s. They’re cheap, and powerful. Unfortunately, they can be a little daunting to beginners to get started. Today, I want to make it easy for total beginners to get up and running on nRF24L01+ radios quickly and easily.

Stuff we need First, we have to go shopping. Reasonable substitutes for this stuff can also be found at Sparkfun if you like spending a lot more money. Preparation We only need one of the 2×4 pin female headers. Here’s what it looks like all ready to go. Solder it up The 8-pin male header goes in position C09-16.The 6-pin male header goes in position V13-18.The 2×4-pin male header goes in position K16-N15.The wires are connected as follows: Here’s what it looks like with all the wires in place, up close and personal. Software Get the RF24 library from github. From the File menu, select “Examples”, then “RF24″, and finally “GettingStarted”. Make another one From here… Cheap Arduino Wireless Communications. I was looking for a way to handle wireless communications between two Arduino boards.

Other options like Xbee or Bluetooth were going to cost $50 to over $100. Then I found a cheap RF transmitter and receiver at Sparkfun. The total cost is only $9! Here are a few limitations to RF solution: Communications is only one way. The advantages are that it is cheap and it is pretty easy to use. Below are some images showing how I hooked up the receiver and transmitter to two different Arduino boards. Here’s a picture of the my actual bread boarded circuit. Since the receiver is constantly picking up random noise I add a few extra bytes to every data packet. I broke the Arduino code into two files. I did all of my initial testing without any of these improvement and everything worked fine with these devices inside the same room. Add an antenna. I got a lot of help from the transmitter/receiver data sheets, and from this article. I’ll mention an even cheaper idea I had while doing this.

Permalink. 5$ Arduino WiFi Module!? ESP8266 mini Tutorial/Review.