Fritzing File Download: https://osoyoo.com/driver/nodemcu/nodemcu-udp-led.fzz
OSOYOO NodeMCU board x 1
LED x 1
200 ohm resistor x 1
Bread board x 1
Download the sketch file from https://osoyoo.com/driver/nodemcu/nodemcu-led.zip
Unzip above file, replace Line 18,19 with your own wifi SSID and password
Then upload the sketch code to Arduino IDE, you will see the IP address of your NodeMCU board.
In above example, the NodeMCU IP is 192.168.1.81 , please Write down the IP address of your NodeMCU.
Download OSOYOO IoT APP by searching OSOYOO iot udp robot car app from Apple Store(iPhone/iPad) or Google Play Store(Android device)
Save NodeMCU IP address into the APP Setting :
1)Open APP, click Setting button in upper right corner
2)Use the NodeMCU IP address to replace default IP 192.168.1.255
3)keep default port number 8888 without changing
4)Click Save button to save the changes you just made
5)Click Back Arrow to go back APP front UI
Now Go back to Home Page of your APP
Press F1 button, the LED will turn ON
In the same time , your Arduino IDE serial monitor will show something similar to following:
Received packet of size 1 from 192.168.1.100:44544 (to 192.168.0.103:8888, free heap = 42072 B) Contents: F
Press F2 button, the LED will turn OFF
Received packet of size 1 from 192.168.0.100:44544 (to 192.168.0.103:8888, free heap = 42072 B) Contents: G
DownLoad Url osoyoo.com