Part 1 of : ESP-12F IOT Module Programmer circuit

Circuit is done as shown in the diagram.

Product links

CP2102 USB 2.0 to TTL UART SERIAL CONVERTER : https://robu.in/product/cp-2102-6-pin/

ESP-12F IOT Module : http://www.haberocean.com/product/iot-module-using-esp-12f/

Connect “CP2102 USB 2.0 to TTL UART serial converter” to your PC and turn on the DC power source. Open Arduino IDE. Open the Blink program from the Examples.

Choose “Generic ESP8266 Module” from the Boards menu. If you didn’t find “Generic ESP8266 Module” in the boards menu, then read the instructions given in this page to set up Arduino IDE for ESP8266.

Select the USB port.

Compile the program.

Upload the program.

If uploading is 100%, built in LED on the ESP-12F module will start blinking.

Next, we will upload a program to blink 5 LEDs connected to digital outputs 4, 12, 13, 14 and 16.

void setup() {
  // initialize digital pin LED_BUILTIN as an output.
  pinMode(4, OUTPUT);
  pinMode(12, OUTPUT);
  pinMode(13, OUTPUT);
  pinMode(14, OUTPUT);
  pinMode(16, OUTPUT);
}

// the loop function runs over and over again forever
void loop() {
  digitalWrite(4, HIGH);   // turn the LED on (HIGH is the voltage level)
  digitalWrite(12, HIGH);  // turn the LED on (HIGH is the voltage level)
  digitalWrite(13, HIGH);  // turn the LED on (HIGH is the voltage level)
  digitalWrite(14, HIGH);  // turn the LED on (HIGH is the voltage level)
  digitalWrite(16, HIGH);  // turn the LED on (HIGH is the voltage level)
  
  delay(1000);             // wait for a second
  
  digitalWrite(4, LOW);    // turn the LED off by making the voltage LOW
  digitalWrite(12, LOW);   // turn the LED off by making the voltage LOW
  digitalWrite(13, LOW);   // turn the LED off by making the voltage LOW
  digitalWrite(14, LOW);   // turn the LED off by making the voltage LOW
  digitalWrite(16, LOW);   // turn the LED off by making the voltage LOW  
  
  delay(1000);             // wait for a second
}

If uploading is successful, 5 LEDs will start blinking on the module.

Published by

Leave a Reply

X