Control LED Using Local Wifi

Intro: Control LED Using Local Wifi

We may require to transmit data from the board to other devices at some point or another.

Linkit one provides us with many options like GSM, GPRS, Bluetooth, micro SD, Audio and WiFiLinkit one has built in WiFi module, which can be used to transmit and receive data through WLAN.

Thus in ths instructable I'm gonna show you how we can control the onboard LED through local Wi-Fi.

Step 1: Connections

Since Linkit one already has all the necessary hardware inbuilt, we just need to connect the WiFi/Bluetooth antenna to the board

Note: The antenna connector socket is very delicate, connect using soft hands

Step 2: Wi-Fi Connection

You will need a WiFi router (regardless of internet connection)

Once you have set up the router, note the Network SSID, the Network Password and encryption type (WPA/WEP/OPEN)

Note: Mobile hotspot will also do

Step 3: Code

I have attached my code with the instructable, you'll need to edit the Network SSID and Password with you SSID and password on line 5&6.

In the code I'm controlling the digital state of the LED through inputs provided by a host, you may edit the code to print analog inputs, inputs from sensors, or anything you can imagine to do with the board.

Step 4: Compile, Upload, Run

When you upload the code to the board, open your serial monitor

Copy the IP address that is displayed(You can now close the serial monitor and arduino software if you wish)

Paste the IP address in your browser and you may see the output like in the picture

Share

    Recommendations

    • Metalworking Contest

      Metalworking Contest
    • Fix It! Contest

      Fix It! Contest
    • Tiny Home Contest

      Tiny Home Contest

    4 Discussions

    0
    None
    seamster

    2 years ago

    Pretty cool. What kinds of applications would you use this for?

    1 reply
    0
    None
    tejalmamaniyaseamster

    Reply 2 years ago

    Well you can create a textbox and send back string to the board. Then matching different cases perform different actions

    1 example I can think of could be a WIFI controlled bot

    0
    None
    tejalmamaniyagagananand066

    Reply 2 years ago

    We are basically establishing a 2-way communication via WLAN. In my instructable I've controlled an led, you can send values and control servos, passcodes, etc