Deskripsi
Relay ESP-01S ini berdasarkan modul WIFI AI-Thinker ESP-01S. Ini dirancang untuk rumah pintar, Internet of thing, dan proyek DIY lainnya. Dengan relai cerdas ini, Anda akan dengan mudah membuat sendiri sakelar cerdas Anda untuk mengontrol perangkat apa pun dengan ponsel Anda di mana saja. Kami mendukung kode sumber APP dan LUA.
Kami telah mengunggah kode demo di ESP0-01S, cukup berikan daya DC5V, maka Anda dapat mengontrolnya.
Dalam versi ini, kami menggunakan GPIO0 dari ESP-01S untuk mengontrol Relay dengan level Tinggi.
Parameter
*Tegangan kerja: DC5V
*Bekerja saat ini: ???250mA
*Komunikasi: modul WIFI ESP-01S
*Jarak transmisi: jarak transmisi maksimum 400m (lingkungan terbuka, ponsel dilengkapi dengan modul WIFI)
* Beban: 10A/250VAC 10A/30VDC, relai menarik 100.000 kali
*GPIO0 dari ESP-01S Mengontrol Relay (Tingkat tinggi aktif)
* Ukuran produk: 37 * 25mm
Penggunaan
Koneksi perangkat keras
Cukup colokkan ESP-01S ke header pin 2*4 setelah mengunduh kode ke ESP-01S.
Sumber Daya listrik
Hubungkan daya DC 5V ke GND dan VCC.
Buka WLAN ponsel Anda lalu sambungkan WiFi ESP8266-XXXX, Power word:12345678
Buka ESP8266 Controller.app (Instal di ponsel android Anda sebelumnya)
Tetapkan Alamat IP: 192.168.1.1 daripada Anda dapat mengontrol perangkat Anda melalui modul relai wifi:
ESP-01S is a cheap and easy to use wireless solution. By combining with other sensors and actuator, remote monitoring and control can be realized conveniently.
In this project, I am going to built a smart switch to control the Fan by the ESP-01S Relay module via Android app.
Package List:
Step 1: Flashing Your ESP With NodeMCU
In this tutorial we are going to use the NodeMCU. You have to flash your ESP with NodeMCU firmare.
1.Hardware Connection
Wiring:
· RX -> TX
· TX -> RX
· CH_PD -> 3.3V
· VCC -> 3.3V
· GND -> GND
2.Downloading the NodeMCU Flasher for windows.
Win32 Windows Flasher
Win64 Windows Flasher
You can click here to find all the information about NodeMCU flasher.
3.Flashing your ESP8266 using Windows
Open the flasher that you just downloaded and a window should appear.
Press the button “Flash” and it should start the flashing process immediately (You might have to change some of the settings on the Advanced tab). After finishing this process, it should appear a green circle with a check icon.
Step 2: Uploading Code
1.Dowloading LuaLoader
Click here to download LuaLoader
2.Schematics (3.3V USB- UART Convertor)
The schematics for this project are very straight forward. You only need to establish a serial communication between your USB- UART Convertor and your ESP8266.
3.Uploading code
Run LuaLoader.exe
Select your USB-UART Conventor port
Click ”Connect” ,
Upload the file: init.lua(the ESP-01 Relay v4.0.lua)
Step 3: Hardware Connection
After upload the code, Connect the power and Fan to the ESP-01 Relay board.
Step 4: Installed the ESP8266 Controller to Your Android Phone
1.Click here to download the .apk file
2.Unzip the folder
3.Move the .apk file to your Android phone
4.Run the .apk file to install the app
Step 5: Relay Control
Run the ESP8266 Controller, Click the button “Set IP Address” on the bottom of the screen and type your IP address (in my case 192.168.1.1).
Now you can turn the GPIO0 high and low with your smartphone.
GPIO0 ON : Open the fan
GPIO0 OFF: Close the fan
Ulasan
There are no reviews yet