esp8266

 

1. Install ESP8266 Board Support in Arduino IDE

  1. Open Arduino IDE.
  2. Go to FilePreferences.
  3. In the "Additional Board Manager URLs" field, add the following URL:
    bash
    https://arduino.esp8266.com/stable/package_esp8266com_index.json
  4. Click OK.

2. Install ESP8266 Board Package

  1. Go to ToolsBoardBoards Manager.
  2. In the search bar, type ESP8266.
  3. Select "ESP8266 by ESP8266 Community" and click Install.
  4. Wait for the installation to complete.

3. Select the Wemos D1 Board

  1. Go to ToolsBoard.
  2. Scroll down and select "LOLIN (WEMOS) D1 R2 & mini".

4. Select the Correct Port

  1. Connect your Wemos D1 board to your PC using a Micro-USB cable.
  2. Go to ToolsPort and select the correct COM port (e.g., COM3, COM4, etc.).
    • If no port is visible, install the CH340 USB Driver Download here.

5. Upload a Test Sketch

Upload the following simple sketch to test if the board is working:

cpp
void setup() {
Serial.begin(115200); Serial.println("Wemos D1 WiFi Board is ready!"); } void loop() { }
  1. Click Verify (✓) to compile.
  2. Click Upload (→) to send the code to the board.
  3. Open Serial Monitor (Tools → Serial Monitor) and set the baud rate to 115200.
  4. You should see:
    arduino
    Wemos D1 WiFi Board is ready!

Comments

Popular posts from this blog

1.Using an LDR (Light Dependent Resistor) with Arduino to Measure Light Intensity