Teachers! Did you use this instructable in your classroom?
Add a Teacher Note to share how you incorporated it into your lesson.
Step 1: Required Components
The component that you need:
- NodeMCU ESP8266
- Micro USB
- Accsess point
- Android Phone
Step 2: Programming
I have provided Sketches for this tutorial. the sketch can be downloaded below.
Before uploading a sketch to NodeMCU, make sure the NodeMCU board has been added to the Arduino IDE. You can read it in this article "Get Started With ESP8266 (NodeMCU Lolin V3)"
Step 3: Result
To ensure that ESP8266 can be used for access points and WiFi clients together, let's check one by one.
ESP8266 as an Wifi Clients:
- Open Serial Monitor
- Press reset on NodeMCU
- If the serial monitor is displayed like Figure 1, it means that the ESP8266 has succeeded in becoming a WiFi client that is connected to an access point
ESP8266 as a wifi station:
- Open the WiFi menu on the android phone.
- If there is an access point named "NodeMCU" and you can connect to that access point, it means that ESP8266 has succeeded in becoming an access point for the Android phone.