All posts by Manoj R. Thakur

About Manoj R. Thakur

In 2014 I started contributing to Open Source electronics, and life has just gotten better from there. Founder of Maven Technologies.

ESP32 PWM Example

This ESP32 PWM example explains how to use the Pulse Width Modulation (PWM) with the ESP32-WROOM32 DevKit.

ledcWrite(pinChannel, dutyCycle);
ESP32 can generate PWM on all IO pins. In the ESP32 analogWrite will not work, is different than the Arduino Uno. ESP32 uses 8, 10, 12, 15-bit resolution for PWM generation PWM value. Arduino Uses 8-Bit Resolution i.e.PWM range is 0-254.

Continue reading ESP32 PWM Example

ESP32 DevKit ESP32-WROOM GPIO Pinout

Introduction

ESP32-WROOM-32 is a powerful, generic Wi-Fi+BT+BLE MCU module that targets a wide variety of applications, ranging from low-power sensor networks to the most demanding tasks, such as voice encoding, music streaming and MP3 decoding.

ESP32 LED Blink Example
At the core of this module is the ESP32-D0WDQ6 chip*. The chip embedded is designed to be scalable and adaptive. There are two CPU cores that can be individually controlled, and the CPU clock frequency is adjustable from 80 MHz to 240 MHz. The user may also power off the CPU and make use of the low-power co-processor to constantly monitor the peripherals for changes or crossing of thresholds. ESP32 integrates a rich set of peripherals, ranging from capacitive touch sensors, Hall sensors, SD card interface, Ethernet, high-speed SPI, UART, I2S and I2C.

For more details Read ESP32-WROOM32 Data sheet

Continue reading ESP32 DevKit ESP32-WROOM GPIO Pinout

ESP32 Wroom32 DevKit Analog Read Example

Analog to digital conversion is the ability to read a voltage level found on a pin between 0  and some maximum value and convert that analog value into a digital representation . Varying the voltage applied to the pin will change the value read. The ESP32 has an analog  to digital converter built into it with a resolution of up to 12 bits which is 4096 distinct values. What that means is that 0 volts will produce a digital value of 0 while the maximum voltage will produce a digital value of 4095 and voltage ranges between these will produce a correspondingly scaled digital value. Continue reading ESP32 Wroom32 DevKit Analog Read Example