Buy from US Buy from UK Buy from DE Buy from FR Buy from IT Buy from ES ここでご購入を!

Before Christmas, we always like to decorate the house with colorful lights. Here, we will learn how to use this OSOYOO IOT UDP APP to control a fancy LED strip lights. Then, when Xmas is coming, you will have an eye-catching lovely home in your neighborhood.

HARDWARE

SOFTWARE

First, please plug OSOYOO MEGA-IoT Extension Board into MEGA2560 board:

Build the circuit as below:

LED strip lights—-D11

Prerequisite:

Download and Edit Lesson2-9 Arduino Code
Step 1 Download the code from following link, unzip it:
https://osoyoo.com/driver/smart-home-v2-udp/lesson9/smart-home-lesson9.zip

Step 2 After above operations are completed, connect OSOYOO MEGA2560 Board to PC with USB cable.

Notice: Shut off your battery or unplug your power adapter when upload sketch code to Arduino.

Step 3 Open Arduino IDE:  Choose corresponding board type and port type for your project.

Step 4 Arduino IDE:  Click file – Open, then choose code in the folder, load up the  sketch onto your Arduino.

You need to edit the code as following:

**********************************************************

Note: In the  sketch, find these code in line 13,14 as following:

In  sketch code and replace *** with your Wi-Fi ssid/password

char ssid[] = "***";//replace this line with your wifi ssid
char pass[] = "***"; //replace this line with your wifi password

please replace the *** with your correct wifi SSID and password, otherwise your project can not connect to Internet.

Upload the sketch to the board.

Now open your Serial Monitor, you will see your Serial monitor will finally show Arduino’s IP address

Now open your OSOYOO IoT UDP APP (if you don’t have it, search OSOYOO IoT UDP Robot APP in Apple Store or Google Play Store).
Then select Setting icon to set the Arduino IP address as following, click Save button to keep the change.

Now, you can move the top slider to change brightness LED stripe.

If you find the device is offline, please check your code, wiring and app settings, and try again.

No. Picture Device Qty. Link
1 OSOYOO MEGA2560 Board 1 Click here to buy
2 OSOYOO MEGA-IoT Extension Board 1 Click here to buy
3 Photosensitive Sensor 1 Click here to buy
4 Temp & Hum Sensor 1 Click here to buy
5  OSOYOO Active Buzzer Module 1 Click here to buy
6 Flame Detection Sensor 1 Click here to buy
7 Fan Motor Module 1 Click here to buy
8 Micro Servo Motor 1 Click here to buy
9 RGB Module 1 Click here to buy
10 Ultrasonic Sensor 1 Click here to buy
11 PIR Motion Sensor 1 Click here to buy
12 Microphone Module 1 Click here to buy
13 1602 I2C LCD Screen 1 Click here to buy
14 RFID Module 1 Click here to buy
15 White LED Module 1 Click here to buy
16 Red LED Module 1 Click here to buy
17 Colorful Light 1 Click here to buy
18 Red Button Module 1 Click here to buy
19 Blue Button Module 1 Click here to buy
20 Philips Screwdriver 1 Click here to b