IndusBoard, equipped with an ESP32 chip and inbuilt touch sensors on its GPIO pins, opens up exciting possibilities for creating touch-based projects. In this project, we’ll explore how to transform IndusBoard into a touch switch board, allowing you to control devices like lights or relays with a simple touch. This versatile application can be extended to various touch Human-Machine Interface (HMI) projects.
Bill of Materials (BOM):
- IndusBoard: Compact IoT development board with an ESP32 chip and inbuilt touch sensors.
- LED or Relay: Depending on your project, choose either an LED for demonstration or a relay for controlling higher-powered devices
In code first defne the GPIO for touch any of the GPPIO on indusbaord pinouts stated with touch can use as touch and then define the led pin and then in loop check the touchpin reading if its reading is grater than 7000 then rise more than this when touch and then it will glow the LED.
Step 1: Connect the board with USB or power it with 5V vin pin
Step 2: Connect LED or Relay
Step 3: Connect LED or Relay
Connect the anode of the LED or the signal input of the relay to GPIO pin 2 (ledPin). Connect the cathode of the LED or the other side of the relay to the ground (GND) pin on the IndusBoard.
Step 4: Connect Touch Sensor
Use GPIO pin 4 (touchPin) for connecting the touch sensor. Connect one side of the touch sensor to GPIO pin 4 and the other side to the ground (GND) pin.
Step 5: Power Up and Test
Power up the IndusBoard, and when you touch the touch sensor connected to GPIO pin 4, the LED or relay should toggle its state.
You’ve successfully created a touch switch board using IndusBoard. This simple project demonstrates the potential of IndusBoard in touch-based applications, paving the way for more sophisticated touch-controlled projects. Experiment with different touch sensors and expand the functionality according to your project requirements.