Posts

Showing posts with the label Internal Sensor

"Built-in Touch, Hall-Effect, and Temperature Sensor" on ESP32 using Arduino

Image
 Bonjour...! Today's article will show how to use 3 built-in sensors in ESP32. Those 3 sensors are touch sensor, hall effect sensor, and temperature sensor. In case you don't know, the temperature sensor in ESP32 only detect the internal temperature of itself and not its external. Without further ado, let's get straight into it! Required Hardware and Software ESP32 Development Board PC with Arduino IDE Micro USB Cable Mini LED Lamp For output indicator Resistor 330 Ohm resistance Male-to-male Jumper Cable Magnet For testing hall-effect sensor Breadboard  (Optional) Touch Sensor STEP 1: Assembling the Circuit Since not all pin in ESP32 can read touch input, make sure to use pin that accept touch input. For guideline, here is ESP32 DEVKIT V1 with 30 pins. Source: randomnerdtutorials.com The circuit is not complex, I just connect GPIO4 to a jumper cable as a touch input. Since there are no output indicator, I will be using serial monitor. STEP 2: The Source Code For the source...