SunFounder ESP32 Starter Kit
After the code has been uploaded successfully, the LED will light up and then go off when the PIR module detects
someone passing.
Note: The PIR module has two potentiometers: one adjusts sensitivity, the other adjusts detection distance. To make
the PIR module work better, you need to turn both of them counterclockwise to the end.
1.22 5.6 Two Kinds of Transistors
This kit is equipped with two types of transistors, S8550 and S8050, the former is PNP and the latter is NPN. They
look very similar, and we need to check carefully to see their labels. When a High level signal goes through an NPN
transistor, it is energized. But a PNP one needs a Low level signal to manage it. Both types of transistor are frequently
used for contactless switches, just like in this experiment.
Let’s use LED and button to understand how to use transistor!
Required Components
In this project, we need the following components.
It’s definitely convenient to buy a whole kit, here’s the link:
1.22. 5.6 Two Kinds of Transistors 77