Lesson: Deploying Code over WiFi or Bluetooth

Explore how to connect to the EV3 over WiFi or Bluetooth instead of USB cable.

Understand how to set up and connect to the EV3 over WiFi or Bluetooth connection instead of USB cable. Understand how to deploy code or access the EV3 with the EV3 Control Center tool over WiFi or Bluetooth.


So far we have been deploying code to the EV3 over a USB cable connecting the EV3 to the development PC. This works fine but is tedious, time consuming and may mean moving the robot closer to the PC. A much better way to do development is to connect the EV3 and PC over WiFi (wireless network) or Bluetooth (wireless peer-to-peer).

Using WiFi assumes you have a WiFi router or access point available that your PC connects to. If so, you can purchase a USB based WiFi card for the EV3. The WiFi card to use is the Edimax EW-7811UN. You insert the card into the USB slot on the side of the EV3 next to the SD card slot.

Insert the card and turn on the EV3. When the EV3 menu appears, scroll right until the wifi menu is in the center and press enter.  A list of WiFi access points should appear. Select your access point and press enter. A simulated keyboard will appear on the EV3 screen and you use it to enter the WiFi password for your access point. The letters U l x D appear at the bottom of the keyboard. They select U = upper case, l = lower case, x = delete and D = done. When you have entered the password select D for done. The network connection will be restarted and if the EV3 successfully connects to the network, when you return to the menu you will see two IP addresses below the EV3's name. The second IP address is the WiFi address assigned by your access point. 

Note that you can also use the EV3 Control Center (connected with USB cable) to configure the WiFi connection. This is easier that using the EV3 LCD.

Now when you deploy code in Eclipse, Eclipse will automatically connect to your EV3 over the network and download your program.

If there is more than one EV3 connecting to your network you can force connection to a specific EV3. In Eclipse, go Windows/Preferences/leJOS EV3. Check the box Connect to named brick and put the second IP address shown on the EV3 LCD into the name box. Click Ok.

Bluetooth communication is built into the EV3. Here is a how-to to get connected (paired) to an EV3. Once you have paired with an EV3, when you deploy code in Eclipse, Eclipse will automatically connect to your EV3 over the network and download your program.



Lesson navigation: