EasyManua.ls Logo

SunFounder ESP32

Default Icon
771 pages
To Next Page IconTo Next Page
To Next Page IconTo Next Page
To Previous Page IconTo Previous Page
To Previous Page IconTo Previous Page
Loading...
SunFounder ESP32 Starter Kit
Code
Note:
You can open the file 5.6_transistor.ino under the path of esp32-starter-kit-main\c\codes\5.
6_transistor.
After selecting the board (ESP32 Dev Module) and the appropriate port, click the Upload button.
Always displaying “Unknown COMxx”?
Two types of transistors can be controlled using the same code. When we press the button, the ESP32 will send a
high-level signal to the transistor; when we release it, it will send a low-level signal.
The circuit using the S8050 (NPN transistor) will light up when the button is pressed, indicating that it is in a
high-level conduction state;
The circuit using the S8550 (PNP transistor) will light up when the button is released, indicating that it is in a
low-level conduction state.
82 Chapter 1. For Arduino User

Table of Contents