Популярное

Музыка Кино и Анимация Автомобили Животные Спорт Путешествия Игры Юмор

Интересные видео

2025 Сериалы Трейлеры Новости Как сделать Видеоуроки Diy своими руками

Топ запросов

смотреть а4 schoolboy runaway турецкий сериал смотреть мультфильмы эдисон
dTub
Скачать

Arduino Tutorial #29: How to use Capacitive Touch Sensor with Arduino,(25 of 37 Sensor Kit)

Автор: Arduino Projects

Загружено: 2025-08-11

Просмотров: 52

Описание:

Arduino Tutorial #29: How to use Capacitive Touch Sensor with Arduino UNO, (25 of 37 Arduino Sensor Kit).
-----------
CODE
------------
/*
This is 25 of 37 Sensors Tutorial code
NOTE: Please replace $ sign with open and close Angle brackets in the code below, because YOUTUBE won't let me include angle brackets in video's Description.
*/

#include $LiquidCrystal_I2C.h$ //In this line Please replace $ sign with open and close Angle brackets

//connections SDA--A4 and SCL--A5
//initialize the liquid crystal library
//the first parameter is the I2C address

LiquidCrystal_I2C lcd(0x27, 16, 2);

int SensorPin = 8;
int ledPin = LED_BUILTIN;
int state = 0;

void setup() {

lcd.init(); //initialize lcd screen
lcd.backlight(); // turn on the backlight
pinMode(ledPin, OUTPUT);
pinMode(SensorPin, INPUT);
}

void loop() {
delay(100);
state = digitalRead(SensorPin);
lcd.clear();
lcd.setCursor(0, 0); //write on the top row
lcd.print("Sensor Data: ");
lcd.print(state);


if (state == LOW) {
digitalWrite(ledPin, LOW);

} else {
digitalWrite(ledPin, HIGH);
lcd.setCursor(0, 1); //write on the bottom row
lcd.print("Touch Detected");
}
}

Hope this tutorial was useful. Please hit LIKE for more Arduino tutorial and subscribe to stay tuned.
#arduino #arduinouno #arduinoproject #diy #diyprojects #arduinotutorial #touchsensor #capacitivetouchsensor

Arduino Tutorial #29: How to use Capacitive Touch Sensor with Arduino,(25 of  37 Sensor Kit)

Поделиться в:

Доступные форматы для скачивания:

Скачать видео mp4

  • Информация по загрузке:

Скачать аудио mp3

Похожие видео

10 Arduino Projects using 37 in 1 Sensor kit | control RGB LED with 4x4 Keypad | 37 in 1 modules

10 Arduino Projects using 37 in 1 Sensor kit | control RGB LED with 4x4 Keypad | 37 in 1 modules

Arduino Tutorial #30: How to use Temperature Sensor with Arduino,(26 of  37 Sensor Kit)#arduino #diy

Arduino Tutorial #30: How to use Temperature Sensor with Arduino,(26 of 37 Sensor Kit)#arduino #diy

23 НОВЫХ ТОВАРОВ с АЛИЭКСПРЕСС 2026, Новые Товары От Которых Точно ОФИГЕЕШЬ + КОНКУРС

23 НОВЫХ ТОВАРОВ с АЛИЭКСПРЕСС 2026, Новые Товары От Которых Точно ОФИГЕЕШЬ + КОНКУРС

НАЧАЛО ГОДА СУЛИТ НОВЫЕ ПРОБЛЕМЫ YOUTUBE, GOOGLE и отключения ИНТЕРНЕТА. Разбираем важное

НАЧАЛО ГОДА СУЛИТ НОВЫЕ ПРОБЛЕМЫ YOUTUBE, GOOGLE и отключения ИНТЕРНЕТА. Разбираем важное

Weller Micro Solder kit setup and first test - WT1M station with WTMP iron

Weller Micro Solder kit setup and first test - WT1M station with WTMP iron

The Remarkable Computers Built Not to Fail

The Remarkable Computers Built Not to Fail

REAL ODPADA Z 2-LIGOWCEM! SENSACJA, ABSURD, NIEMOŻLIWE! ALBACETE LEPSZE, CO ZA FALSTART ARBELOI

REAL ODPADA Z 2-LIGOWCEM! SENSACJA, ABSURD, NIEMOŻLIWE! ALBACETE LEPSZE, CO ZA FALSTART ARBELOI

DIY Adjustable Voltage Regulator Using Single MOSFET | 0–35V 5A Power Supply

DIY Adjustable Voltage Regulator Using Single MOSFET | 0–35V 5A Power Supply

Jak Niemiec pluł nam w twarz – germanizacja. Historia Bez Cenzury

Jak Niemiec pluł nam w twarz – germanizacja. Historia Bez Cenzury

Whatever Happened To The Squarial? British Satellite Broadcasting

Whatever Happened To The Squarial? British Satellite Broadcasting

Зачем нужны кристаллы? Вот почему, с примерами!

Зачем нужны кристаллы? Вот почему, с примерами!

Arduino Tutorial: How to use Line Tracking Sensor  with Arduino. #arduino #arduinoproject

Arduino Tutorial: How to use Line Tracking Sensor with Arduino. #arduino #arduinoproject

Нет электричества, нет газа... И всё равно обогревает вечно | Самодельный обогреватель 3 в 1 на бесп

Нет электричества, нет газа... И всё равно обогревает вечно | Самодельный обогреватель 3 в 1 на бесп

Express Republiki 15.01.2026 | TV Republika

Express Republiki 15.01.2026 | TV Republika

What Really Happens If Your Coax Gets Pinned?

What Really Happens If Your Coax Gets Pinned?

Jesz to? Błąd - TRACISZ KOLAGEN (płacimy za to zdrowiem...)

Jesz to? Błąd - TRACISZ KOLAGEN (płacimy za to zdrowiem...)

2026 State of the Channel

2026 State of the Channel

Building a NAS From a Trashed PC and a Tiny Dell OptiPlex

Building a NAS From a Trashed PC and a Tiny Dell OptiPlex

CZY USA ZAATAKUJE IRAN? GDZIE SĄ MILIARDY Z S.A.F.E? W TYCH OBSZARACH WOJSKO POLSKIE TO ŚWIATOWY TOP

CZY USA ZAATAKUJE IRAN? GDZIE SĄ MILIARDY Z S.A.F.E? W TYCH OBSZARACH WOJSKO POLSKIE TO ŚWIATOWY TOP

2 секрета сенсорного датчика ttp223 без прикосновения Технический паспорт ttp223

2 секрета сенсорного датчика ttp223 без прикосновения Технический паспорт ttp223

© 2025 dtub. Все права защищены.



  • Контакты
  • О нас
  • Политика конфиденциальности



Контакты для правообладателей: infodtube@gmail.com