The Official ESP32 Book

Page 12

CHAPTER 4 • BASIC PROJECTS USING THE ARDUINO IDE AND THE ESP32 DEVKITC

CHAPTER 4 • BASIC PROJECTS USING THE ARDUINO IDE AND THE ESP32 DEVKITC 4.1 Overview In the last chapter we have seen how to update the Arduino IDE so that the programs developed using the IDE can be compiled and uploaded to the ESP32 DevKitC development board. In this chapter we will be developing basic projects using the Arduino IDE as the development software and then compile and upload these projects to our ESP32 DevKitC. Note that all the projects given in this book have been tested and are working. The following will be specified and given for each project: • Project title • Project description • Aim of the project • Project block diagram • Project circuit diagram • Project construction • Project operation (PDL) • Project program listing • Description of the program • Additional work (optional) The operation of the projects will be described using the Program Description Language (PDL). This is a free format English like description of the operation of the project using keywords such as BEGIN, END, IF, THEN, ELSE, WHILE, REPEAT, DO, DO FOREVER, and so on. 4.2 PROJECT 1 – Flashing LED 4.2.1 Description In this project an LED is connected to GPIO port 23 of the ESP32 DevKitC. The LED is flashed every second. 4.2.2 The Aim The aim of this project is to show how an LED can be connected to a GPIO port and how it can be turned on and off. 4.2.3 Block diagram Figure 4.1 shows the block diagram of the project.

● 55

ESP32 UK 170828.indd 55

26-09-17 15:27


Turn static files into dynamic content formats.

Create a flipbook
Issuu converts static files into: digital portfolios, online yearbooks, online catalogs, digital photo albums and more. Sign up and create your flipbook.
The Official ESP32 Book by Elektor - Issuu