Shenzhen Xin Yuan Electronic Technology Co., Ltd.
 
手机官网
 
关注我们微信公众号
购物车图片 购物车 ( )
找服务 找新闻
The recommended reading
Hot label / Products

ESP32 Touch Controlled LED Using Arduino IDE

Author:
Time: 2017-08-02
Clicks: 223

This tutorial uses built-in touch sensors on the ESP32 Dev Module to control an LED.


Step 1: Getting the Dependencies.

There are multiple ways to program the ESP32. We will be using the Arduino library. You can download it from the following link:

https://github.com/espressif/arduino-esp32

Clone or extract the libraries in your C:\Users\Documents\Arduino folder.If you do not have Arduino IDE installed already, here is the link to that:

https://www.arduino.cc/en/Main/Software



 

 

 

 

 

Step 2: Configure the IDE

ESP32 Touch Controlled LED Using Arduino IDE

After completing the previous step, start the IDE and go to Tools>Board menu. Then select ESP32 Dev Module. The default settings should be good for flash speed, upload speed etc. Select the COM port which is connected to the ESP32.


Step 3: Connecting the LED

ESP32 Touch Controlled LED Using Arduino IDE

Next, connect pin GPIO4 (T0) to a wire, this will be the touch sensor input. Connect pin GPIO18 to the + rail of the breadboard and pin GND to - rail of the breadboard. Place a LED with the long wire in the + rail and short wire in the - rail on the breadboard.

Step 4: Download the Code

Download the code from the following link:

https://github.com/Serpent999/ESP32_Touch_LED

Compile and Upload the code to the ESP32. The LED would change intensity according to your touch.

Note: When uploading you may sometimes encounter errors. Press and hold the boot button on the board, while uploading to resolve the error.



 

 

 

 

 

 

 

 

 

 

Share to:
Related recommendations
2019 - 08 - 05
点击次数: 11
August EventCheaper priceFree shipping for specific productsFull reduction activityCouponhttps://www.aliexpress.com/store/2090076?spm=2114.12010615.pcShopHead_1...
2019 - 07 - 09
点击次数: 51
Type:1.T-Watch SIM800L Bottom PCB Board SIM Card:ESP32AttributesDescriptionGPIO33TXSIM Card,UART_SIM_TXGPIO34RXSIM Card,UART_SIM_RXGPIO14RSTSIM Card,SIM_RSTGPIO15PWKEYSIM Card,SIM_PWKEYGPIO04BOOS...
2019 - 06 - 18
点击次数: 35
https://www.aliexpress.com/store/2090076/pages/promotion-20190618.html?spm=a2g1y.12024536.pcShopHead_11037743.2
2019 - 06 - 13
点击次数: 22
The emergence of T-WATCH brings us much fun, we want to share with everyone and hope it can be used ...
  • 资质认证

    服务商100%实名审核认证

  • 支付安全

    明码标价支付及信息安全

  • 专人服务

    服务全程进行信息化监控

  • 售后无忧

    服务出问题客服经理全程跟进

The unified hotline:
0086 13928411439
skype:seatechnolgy
@outlook.com


邮编:330520
  • Aliexpress

  • ebay

  • "Sweeping" attention to us, more activities, surprise waiting for you
    E-mail: lily@lilygo.cc       Wechat: 13928411439       QQ :3004603945       Facebook:lily@lilygo.cc
     

    Copyright ©2005 - 2013 Shenzhen Xin Yuan Electronic Technology Co., Ltd.
    犀牛云提供企业云服务