I am doing a project where I need to send some numbers between arduinos. But it has to be wirelessly because they will be moving. How to Communicate between arduinos wirelessly? I need to send data between them. Wifi would be preferred.

Thank You.

  • 3
    nRf24l01+ is one simple option, what size of data, at what speed and distance? Commented Apr 4, 2015 at 19:06
  • There is also the ESP8266 which provides easy access to WLAN and can be used to setup an access point. Commented Apr 5, 2015 at 7:21
  • The speed at most will be around 2-5 mph. Distance will be about 20ish feet
    – Vikram P
    Commented Apr 5, 2015 at 20:01
  • Wifi would require an active wifi access point around. I would go by either RF which is fast, long range (they use this in the radio-controlled cars) or go with bluetooth, which makes it fun to optionally control them by phone/bluetooth. But it has a little smaller range and I have no idea how to connect two of these together
    – aaa
    Commented Jun 12, 2015 at 7:09

2 Answers 2


You can use XBees. They are powerful and do provide wifi connections (the recent versions).

And you rely on well-designed devices which guarantee packet retransmission and they achieve up to 1km in an open field.

XBee still works with serial communications making them an excellent tool for your embedded project.

Just plug your Arduinos and write code to send/receive data. This library is a good start point for API mode.

If you don't mind using all the benefits from ZigBee protocol, just use AT mode where all you push in one side is sent to another via serial communication.


As has been mentioned in the comments, you have at least three possible solutions:

  • Wifi using the ESP8266
  • Private protocol using the nRF24
  • Bluetooth using the HC-05

All of these will handle 20 feet of separation. All of these have high quality libraries for Arduinos and lots of free tutorials and assistance via forums and Stack Exchanges.

Some of the primary differences are price, size of data and power consumption.

My personal weapon of choice, and not knowing anything further about your project ... is the nRF24. This is crazy cheap and pretty easy to use. It also benefits from no need for a Wifi access point and also has a broadcast capability so that multiple devices can receive the same message. The down sides are that it is a private protocol that your phone and laptop can't decode natively (it isn't WiFi).

My second choice would be Bluetooth. This would allow your phone and laptop to be transmitters and receivers as there are plenty of great Bluetooth terminal emulators available.

  • Yes - and there's really no reason to pay the 2x-3x premium for wifi or bluetooth when both ends are ATmega-based Arduinos. If one end were a PC or a phone or other gadget already having one of those radios then using something that it already supports would make sense - but when you get to define both ends, pick something simple. Commented Jun 12, 2015 at 5:25

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.