esp12e arduino programming

Friday, May 19, 2017

1. Configure Arduino IDE
File -> Preferences -> paste link as "Additional Boards Manager URLs":

 Type "esp" in search box -> install esp library:

Arduino Pro Mini 328 - EEPROM

Saturday, March 25, 2017

EEPROM is an internal memory which is not disappeared (deleted) when power is out.
Arduino Pro Mini which use Atmega328 has 32 KiB of Flash program memory. 1KiB = 1024 bytes -> 32*1024 = 32,768bytes

Memory will have address and content. Address will from 0 to 32,767; in which each address is presented for each memory slot with 1byte.

Following is example code to write data from analog input to EEPROM, then read and show through COM port

Arduino Pro mini 3.3v nRF24L01+

Sunday, March 19, 2017

nRF24L01+ RF Module has small size, which can be intergrated in IoT application. This PCB operates at 2.4GHz, comnunication by SPI protocol, and power is 3.3V

This article will show how to connect it to Arduino Pro mini, make communication between 2 boards.
Hardware needed:
1. Two PCB Arduino Pro mini
2. Two PCB nRF24L01+
3. Power 3.3V

What inside Thermocouple

Wednesday, March 15, 2017

Thermocouple is used to measure temperature. A complete thermocouple will have
1. Body
2. Element

Body can be any material, this case is stainless steel 304
Elelment can be K-type or J-type or other


IoT light switch

Saturday, March 11, 2017

Normally, our home will have light switch for light bulb as following.
"IoT light switch" means switch can be controlled through phone. In order to control switch by phone, an "IoT circuit" need to be installed for the switch.
In my thinking, the light is not only controlled by phone, but also by switch at wall.
Basically, there is not difference about appearance of wall socket after installing IoT circuit for switch.
How it be done? See following sketch:

Arduino - Motor position control

Sunday, January 1, 2017

This article will show how to control position of motor shaft: return shaft to original position, no matter what it was turned manually before
Fig1. Motor with shaft indication

Movie. Result of project

Arduino - Motor PID speed control

Saturday, December 31, 2016

With PID control, speed of motor can be archived exactly. This article mainly introduces about making program in Arduino Pro mini, program in Computer (Visual Studio) to control motor speed by PID algorithm.
Fig1. General connection

Arduino Pro mini is used to store motor control, PID algorithm, communicating with PC (through COM Port)
Computer will have HMI made by Visual Studio to communicate with Arduino. HMI will show motor speed graph, change motor speed setting
Fig2. HMI on Computer (made by Visual Studio)

Search This Blog

Most Reading

Google+ Followers