Introduction: Get Started With H10-wroom-02 Using Arduino

About: someone who likes electronics

h10wroom 02 is an ESP8266 development module integrated with serial USB and 18650 battery.

This module is also equipped with a carger and step up module for batrai.

The following are the special features of this module:

  • With nodemcu.
  • 18650 charging system integration.
  • Indicator LED (green means full of red menas chargeing) Charge and work can be done at the same time.
  • 1 switch control power supply.
  • 1 SMT connector avaible for sleep mode.
  • 1 additional LED programmable (with gpio16 [D0]).
  • 0.5A Charge current.
  • 1A Output.
  • Overcharge protection.
  • Over discharge protection.
  • 10 digital pin read / write/ interrupt/ PWM / I2C / line support (except D0).
  • 1 analog input to be careful + -.

Step 1: Required Components

  • H10wroom 02
  • 18650 battery.
  • Micro USB
  • Arduino IDE
  • Internet COnnection

Step 2: Add ESP8266 to Arduino IDE

this is a way to add the All ESP8266 board to the Arduino IDE:

  • Open Arduino IDE.
  • Click File > Preference.
  • Add This URL

"" to Additional Board Manager URLs.

  • Go to Tools > Board > Board Manager.
  • Wait until the update is complete.
  • Search esp8266 by ESP8266 Comunity, then install, wait until the installation is complete.
  • After it finishes, Go to Tools > Board > Generic ESP8266 Module.

Step 3: Port on H10wroom 02

To use a Port on NodeMCU, it is different from Arduino.

An example is the use of "pinMode ()".

To make Port D5 on Arduino as Output, the code will be like this:

<p>pinMode(5, OUTPUT);</p>

And to make the D5 port on NodeMCU lolin V3 as Outout, the code will be like this:

<p>pinMode(D5, OUTPUT)</p>

If you don't write the full port address when using All ESP8266 Node. What will be detected in the program is Port of ESP-12E which is in the Node.
See pictures for more details

Step 4: Example Sketch

h20wroom 02 has LEDs installed on it. The led is connected to Port D0 [GPIO16]. I will use these LEDs for example sketch.

<p>#define LEDpin D0   //set led pin<br>// the setup function runs once when you press reset or power the board
void setup() {
  // initialize digital pin LED_BUILTIN as an output.
  pinMode(LEDpin, OUTPUT);
// the loop function runs over and over again forever
void loop() {
  digitalWrite(LEDpin, HIGH);   // turn the LED on (HIGH is the voltage level)
  delay(1000);                       // wait for a second
  digitalWrite(LEDpin, LOW);    // turn the LED off by making the voltage LOW
  delay(1000);                       // wait for a second