EasyManua.ls Logo

DFRobot FIREBEETLE BOARD-ESP32 - Project 8: Touch Sensor

DFRobot FIREBEETLE BOARD-ESP32
49 pages
Print Icon
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...
Welcome to DFRobot: www.DFRobot.com.cn 43 / 49
Project8 Touch Sensor
FireBeetle Board-ESP32 offers as many as 10 GPIO capacitance sensors. It can probe the
difference of capacitance caused by the direct access or approach with hands or others. The
characteristic of the low noise and high sensitivity works for relatively smaller touch board. It can
be directly used to touch switch items.
The project will explain the way to obtain and print the state of FireBeetle Board-ESP32s’
capacitance sensors with Arduino code.
Components in need
1 x FireBeetle Board-ESP32
Caution: No need for other sensor.
Enter code
Open Arduino IDE. You would better enter the code manually than open Course-> Item-8 to be
familiar with it.
Sample code:
void setup()
{
Serial.begin(115200);
delay(1000); // give me time to bring up serial monitor
Serial.println("FireBeetle Board-ESP32 Touch Test");
}
void loop(){
Serial.println(touchRead(T2)); // get value using T0->D9