2020/12/31

How to use / navigate this blog

This is a quick summary of how to use / navigate this blog.

Auto Translation by Google Translate

Use the Select Language widget to translate this blog into the language of you choosing (the translation quality may not be good, but I think it's enough to give you some general idea about the post).













2017/12/07

ESP8266 Software Serial Loopback Test

This is a quick summary of testing the software serial function on a single ESP8266 in loopback mode.

Schematic

For this post, GPIO14 and GPIO12 are used as the RX and TX respectively for Software Serial.

Note,
For ESP8266, GPIO 0 ~ 5, 12 ~ 15 can be used for RX / TX, GPIO 16 cannot be used for RX / TX.



2017/12/01

ESP32 - Setting up ESP-IDF and starting a project using MINGW32

This post is about how to setup ESP-IDF for ESP32 development on computer running MS-Windows 8.1 OS. The post is based mainly on the material available at https://esp-idf.readthedocs.io/en/latest/get-started/index.html#get-esp-idf with additional info. added by myself while testing it out.

Host OS: MS-Windows 8.1, 64 bits
CPU: Intel Core i5, Dual Core.

Note,
It's extremely slow (2~3 hours) to execute the make command in MINGW32. It's better to install Ubuntu in VirtualBox for ESP32 development (only 1~2 minutes to execute the make command).

Setting up ESP-IDF

According to "ESP-IDF Programming Guide", the following are needed for developing applications for ESP32:

- PC loaded with either Windows, Linux or Mac operating system;

- Toolchain to build the Application for ESP32;

- ESP-IDF that essentially contains API for ESP32 and scripts to operate the Toolchain;

- A text editor to write programs (Projects) in C, e.g. Eclipse;

- The ESP32 board itself and a USB cable to connect it to the PC.

2017/11/19

Working with ADS1115

This post is about how to use ADS1115 - a 16-bit, 4-channel ADC with Programmable Gain Amplifier (PGA).


2017/11/18

Adding support for NodeMCU-32S Module to Arduino IDE

This post is about how to add support for ESP32 to Arduino IDE and how to upload a sample Arduino sketch to NodeMCU-32S.

Below is the NodeMCU-32S module used for this post.


2017/11/16

Working with Current Transformer (CT) sensors

This post is about how to interface 5V / 3.3V ADC with CT sensor.

TA1020 (20A) - for 5V and 3.3V ADCs

Below is the calculation for TA1020(20A) with 5V ADC and 3.3V ADC.