Microduino ENC Network (11)——Connect the Microduino to the Wi-fi network using TL-WR702N

From Microduino Wiki
Jump to: navigation, search
Language: English  • 中文

Objective

This tutorial will show you how to connect an Microduino to the Wifi network.

Equipment

  • Other equipment
    • USB cable
    • TL-WR702N or TL-WR703N

TL-WR703N

TL-WR703N can work also as a wireless client: in this mode the router acts like a "bridge" between the device connected to its ethernet port and a Wi-fi network.

The TL-WR703N router is also very small and you can power it through a micro USB connector:

TLWR703N.jpg

Schematic

  • Microduino-ENC28J60
  • Microduino-RJ45
  • Microduino-Core
  • Microduino-FT232R

Stack all modules and then connect the ethernet cable, as follows:

MicroduinoENCShow.jpg


Connect the TLWR703N:

TLWR703NStep0.jpg

Program

https://github.com/Microduino/Microduino_Tutorials/tree/master/Microduino_ENC/ENCnetworkeleven

Debug

Step 1: Download the EtherCard library and copy to your libraries fold of IDE, then restart IDE. https://github.com/jcw/ethercard

Step 2: Configure TLWR703N in client mode:

First, give to your PC a fixed IP address, 192.168.0.10, and connect it to the router using an ethernet cable:

Open your browser and type http: //192.168.0.254; login with admin as username and password.

Choose Client mode:

TLWR703NStep1.jpg
TLWR703NStep2.jpg
TLWR703NStep3.jpg

Click Survey to find your Wi-fi network, then type your security settings (password…):

TLWR703NStep4.jpg
TLWR703NStep5.jpg
TLWR703NStep6.jpg
TLWR703NStep7.jpg

Wait till router restarts:

TLWR703NStep8.jpg

Step 3: After reboot, connect your Microduino and TL-WR703N; wait a couple of seconds and it will be available through your wireless network!

TLWR703NStep9.jpg

Step 4: Download the code and compile it. You can use any program to test it, such as the program in Microduino ENC network (seven), hardware system as follows:

TLWR703NStep10.jpg

Step 5: Check if can control the bulb.

Result

You can access the wifi network and control the bulb.

Video

http://v.youku.com/v_show/id_XNzA3MTMwODMy.html