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

Introduction

Here, we will demonstrate how to use this kit to make a remote family message board. We can send messages from OSOYOO IoT UDP APP to this message board remotely.

HARDWARE

SOFTWARE

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

Build the circuit as below:

Prerequisite:

If you haven’t installed following libraries in previous lessons, You also need to download them from following link:

In Arduino IDE, click Sketch→Include Library →Add .ZIP library and upload the library zip files to the IDE.

If you have completed installation of all the libraries required, then you can go to the next stage:

Download and Edit Lesson2-6 Arduino Code file

Step 1 Download the code from following link, unzip it:
https://osoyoo.com/driver/smart-home-v2-udp/lesson6/smart-home-lesson6.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.

Open the code file 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. Wait until you see the Arduino’s IP address in Serial Monitor. You will also see your Arduino board’s IP address in LCD.

In above example, 192.168.1.81 is the IP address of my IDE, we need to set this IP address in our APP in next step.

APP Installation and Setting:
Step 1) If you haven’t installed OSOYOO IoT Robot APP, please search OSOYOO IoT Robot Car APP in Google Play or Apple Store to install this APP.
You read following tutorial link for more information about APP install :
https://osoyoo.com/2022/02/06/smart-house-iot-learning-kit-v2-0-lesson-1-wireless-lighting-control/#installapp

Step 2):Make sure your Cell phone is in the same Local Network of Arduino. Open the APP, click Settings, enter your Arduino IP address from Step F and Port to 8888 in settings:

Step 3), Now change the F1 key value from letter “F” to “Hello Alice!”
You also need to change the Target IP address to match the Arduino IP address.
Then click Save button to save the change.

Click F1 key, a pre-defined message “Hello Alice!” will be sent to remote Arduino and your Arduino LCD will display something like this:
192.168.1.75
Hello Alice!

192.168.1.75 is the IP address of your cell phone, which tells you where the message comes from.

In your cell phone APP, you will see something like this:
Hello Alice! To 192.168.1.68

Above is the recognizing message sent from Arduino.

You can try to change Setting F2 value to “Happy Birthday!”, then press F2 key and see what will be displayed in LCD.

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 buy