WiFi Internet of Things Learning Kit Project: Remote Control LED

by osoyooproduct in Circuits > Electronics

6 Views, 0 Favorites, 0 Comments

WiFi Internet of Things Learning Kit Project: Remote Control LED

1200+1000.jpg
Lesson 2- Remote control LED

In this lesson, we will teach you to use a very simple and powerful protocol called UDP, which is commonly used for email service and control signal. We will use a cell phone app to turn on/off an LED in the IDE remotely through the UDP protocol.

Supplies

主图.jpg

WiFi Internet of Things Learning Kit

Feature:

  • Programmable learner kit for beginners and professionals: Perfect intro to programmable electronic and IoT robotics.
  • Wifi programming and control: With ESP8266 WIFI Shield , you can remote control programming and the sensors.Learn the basics behind the Internet of Things, build your own connected devices.learner kit for beginners and professionals: Perfect intro to programmable electronic and IoT robotics.
  • Creative IoT Projects:This kit Includes Everything You Need To Build and Engineer Your Own smart home: WiFi Shield, Basic Board for Arduino, PIR motion sensor, Ultrasonic Sensor , Servo Motor, sound sensor, Obstacle Sensors, Buzzer Sensor Module, Photoresistor, Temperature/Humidity sensor, BMP180,Water detection sensor ,gas Sensor ,relay,Resistors package
  • Simple ,intelligent:Control your IOT System by Android and iOS App,Sample code are straight forward. free IoT service on OSOYOO website. https://osoyoo.com/?p=32504
  • Innovation, keep pace with the times :Add Build on the power of Blynk to configure smart home automation and build exciting IoT projects.

Please order WiFi Internet of Things Learning Kit from:https://osoyoo.store/products/osoyoo-wifi-internet-of-things-learning-kit-for-arduino-uno-include-esp8266-wifi-shiled-remote-controlled-app-smart-iot-mechanical-diy-coding-for-kids-teens-adults-programming-learning-how-to-code

PARTS&DEVICES

OSOYOO Basic board x 1

OSOYOO ESP8266 Wi-Fi Shield x 1

USB cable x 1

LED x 1

200 ohm resistor x 1​


CONNECTION

led-1.png
lesson2.jpg
2.jpg

First, please insert the ESP8266 Wi-Fi Shield into your Basic Board.

Make sure the jumper cap is connected from E_TX to D4 and E_RX to D5.

Then connect the long pin of the LED to D13 in the Wi-Fi shield through a 200 ohm resistor, and the short pin to GND. The circuit is shown below


Upload Sketch

Download the sketch file from: https://osoyoo.com/driver/wifi-iot/lesson2/esp8266-lesson2.zip.

Unzip the downloaded file and enter the folder “esp8266-lesson2”.

In the sketch, find the following lines:

char ssid[] = "******"; // your network SSID (name)
char pass[] = "******"; // your network password
Please replace the "******" with your correct Wi-Fi SSID and password, otherwise your project
cannot connect to the internet.


load up the sketch onto your IDE.

APP SETTING AND RUNNING RESULT

OPEN.png
ip-NEW.png
iotudpapp.png
set.png

Open your Serial Monitor. You can see that your router will assign an IP address to your IDE .

In the example, “192.168.1.81” is the IP address of my ESP8266 Wi-Fi Shield, and we need to set this IP address in our app in the next step.

APP Setting :

Install the UDP send mobile app. You can use any UDP send app to run this lesson. In this lesson, we use the “OSOYOO IOT UDP Robot” app to make the test. In Google Play or Apple Store, please search for the keywords “OSOYOO IOT UDP Robot app”, and you will find a yellow icon app.

Make sure your cell phone is on the same local network as the Arduino. Open the app, click “Settings”, enter your Arduino IP address from Step F and port to “8888” in the settings

Running Result :

In the app UI screen, click “F1” button, your LED will turn on. Then click “F2” button, your LED will turn off.