ESP8266 – Is it better than Arduino?

  The ESP8266 is a low-cost Wi-Fi microchip with full TCP/IP stack and microcontroller. It has quite an interesting set of features. It has a L106 32-bit RISC microprocessor running at 80 MHz32 KiB instruction RAM, 32 KiB instruction cache RAM, 80 KiB user-data RAM, 16 KiB ETS system-data RAM, IEEE 802.11 b/g/n Wi-Fi ,built in TR switch, LNA, power amplifier and matching networkWEP/WPA/WPA2,16 GPIO pins,
SPI , I²C , I²S.
  Those features make it perfect for any IoT project, definitely, a better fit than an Arduino board, which will need at least a shield(for wifi) or maybe more to perform the same tasks. Adding shields means the build will drain more power so if you wanna power it using batteries, or simply wanna be more efficient ESP8266 will do a better job.

      If you are like me, a person who really got used to Arduino IDE, you will be pleased to find out that it works perfectly with ESP8266Just install ESP8266 support through the Arduino IDE’s board manager and most of the function in the Arduino Library work out of the box.

The worst thing that can happen is that you might run into some issues with EEPROM. Apparently, EEPROM library is different and requires a few changes from “standard Arduino code.”
EEPROM.begin(1024) ;
Once you add “EEPROM.begin(size)” and EEPROM.commit(), it works just like EEPROM on any other Arduino board.
Another bonus is the PWM resolution. The ESP8266 core has 1024 (0-1023) levels of pulse-width instead of Arduino’s 256 (0-255). This resolution means smoother LED fading and more precise motor speed control. Cool isn’t it?
  Also, any of the GPIO pins can be used for PWM. With clever software, you can make any pin on an Arduino do PWM using Software PWM. Being able to use hardware PWM on any pin makes the ESP8266 very flexible.
   Along with PWM, you can use ANY of the GPIO pins for I2C communication. I2C is done through bit-banging. The Adafruit HUZZAH board identifies GPIO “4” and “5” as I2C for convenience. A simple call before initializing the wire library allows for I2C communication on any of the module’s pins.
And the greatest part about The ESP8266 is the price, which is lower than I was expecting. Google it. You’ll be amazed.
Come back soon for ESP8266 related projects.

Leave a Reply

Your email address will not be published. Required fields are marked *