Тёмный
No video :(

Bidirectional Counter using IR sensors and Arduino. 

MYTECTUTOR
Подписаться 7 тыс.
Просмотров 42 тыс.
50% 1

IR sensor and Arduino used to make a Bidirectional counter
For the code and schematics visit the link below:
mytectutor.com...

Опубликовано:

 

28 авг 2024

Поделиться:

Ссылка:

Скачать:

Готовим ссылку...

Добавить в:

Мой плейлист
Посмотреть позже
Комментарии : 32   
@loopfi8835
@loopfi8835 Год назад
The code you sent works differently from the show on the video. to count people entering the room requires going through 2 sensors, but the code you posted in the description is working with each sensor, not using both at the same time. Please post the new code.
@hassaneelmahi3761
@hassaneelmahi3761 Год назад
#include LiquidCrystal_I2C lcd(0x27,20,4); #define sensorPin1 13 #define sensorPin2 36 int sensorState1 = 0; int sensorState2 = 0; int count=0; int ready_entrer=0; int ready_sortir=0; void setup() { pinMode (sensorPin1,INPUT_PULLUP); pinMode (sensorPin2, INPUT_PULLUP); lcd.init(); // initialize lcd.backlight(); lcd.setCursor(4,0); lcd.print("COUNTER"); lcd.setCursor(0,1); lcd.print("No Visitors "); delay(200); } void loop() { sensorState1 = digitalRead(sensorPin1); sensorState2 = digitalRead(sensorPin2); if(sensorState1 == LOW){ ready_entrer=1; }else if(sensorState2 == LOW){ ready_sortir=1; } if(ready_entrer==1 && sensorState2 == LOW){ count++; ready_entrer=0; ready_sortir=0; delay(500); }else if(ready_sortir==1 && sensorState1 == LOW){ count--; ready_sortir=0; ready_entrer=0; delay(500); } if(count0 && count
@jmangelolumactod134
@jmangelolumactod134 7 месяцев назад
Arduino: 1.8.19 (Windows 10), Board: "Arduino Uno" sketch_jan02a:1:10: fatal error: LiquidCrystal_I2C.h: No such file or directory #include ^~~~~~~~~~~~~~~~~~~~~ compilation terminated. exit status 1 LiquidCrystal_I2C.h: No such file or directory This report would have more information with "Show verbose output during compilation" option enabled in File -> Preferences. @@hassaneelmahi3761
@sirmike7619
@sirmike7619 5 месяцев назад
not working @@hassaneelmahi3761
@_9829rajulalmeena
@_9829rajulalmeena 25 дней назад
Project ke Report h kya
@rrbrother8154
@rrbrother8154 Год назад
I want to count the exact number of visitors entering and exiting my museum. Where can the parts used to make it be found? How much will the price be? How will it cost in total?
@nsnowaz
@nsnowaz 2 года назад
This is very useful logic
@mattbodycote2914
@mattbodycote2914 2 года назад
are you able to give a shopping list of items for this, its exactly what I'm looking for
@photonixenlighteningworld5026
@photonixenlighteningworld5026 3 года назад
It will be better if you explain your code in your video .
@manjunathchindi9803
@manjunathchindi9803 Год назад
I need circuit diagram for this
@Drxxx
@Drxxx 3 года назад
Great video!!
@ketsireetantiwit6033
@ketsireetantiwit6033 3 года назад
Very useful, Thanks
@andalrico4204
@andalrico4204 2 года назад
Can you make one without using arduino? Is it possible to use 7 segment, ic, ir sensor and other components to make the project?
@kawaii7054
@kawaii7054 2 года назад
Why is there a buzzer in the code?
@artawanaget2417
@artawanaget2417 2 года назад
Please share the code with one door, like in the video 🙏
@zgryx8428
@zgryx8428 2 года назад
Hello sir, your code for fixing the issue of continously counting when the person stays on the first sensor is NOT WORKING, could you please fix it sir? Thank you so much
@mohnishsharma5725
@mohnishsharma5725 2 года назад
even i cant can u help me if u can solve it
@loopfi8835
@loopfi8835 Год назад
@@mohnishsharma5725 me too
@oj_alan6014
@oj_alan6014 3 года назад
Yuo, The IR sensor is sucks, it not working for this project, Because the distant is low, only 10cm
@NahidHasan-mc8vy
@NahidHasan-mc8vy Год назад
Sir programme not running please solve
@jordanwilliams8132
@jordanwilliams8132 Год назад
Can this code be modified, to count independently by the two sensors and make a sum of count into a seven segment display?
@sirmike7619
@sirmike7619 5 месяцев назад
can you gave the original code
@karanagrawal8034
@karanagrawal8034 2 года назад
Please give the code for the sensor when we move left to right and right to left
@mohnishsharma5725
@mohnishsharma5725 2 года назад
i need that too bro please help
@loopfi8835
@loopfi8835 Год назад
@@mohnishsharma5725 me too
@mohnishsharma5725
@mohnishsharma5725 Год назад
@@loopfi8835 i have a different, code I'll send it to u by tomorrow morning
@ztech891
@ztech891 3 года назад
Please update the code ....
@boopeshkumarprabhakaran
@boopeshkumarprabhakaran 3 года назад
in my sitution it goes like -1, -2 etc in counts...how to fix the count not go less then 0
@kushalsuryawanshi9557
@kushalsuryawanshi9557 2 года назад
Can you help me by sharing the code for counting the people by sensor
@hassaneelmahi3761
@hassaneelmahi3761 Год назад
#include LiquidCrystal_I2C lcd(0x27,20,4); #define sensorPin1 13 #define sensorPin2 36 int sensorState1 = 0; int sensorState2 = 0; int count=0; int ready_entrer=0; int ready_sortir=0; void setup() { pinMode (sensorPin1,INPUT_PULLUP); pinMode (sensorPin2, INPUT_PULLUP); lcd.init(); // initialize lcd.backlight(); lcd.setCursor(4,0); lcd.print("COUNTER"); lcd.setCursor(0,1); lcd.print("No Visitors "); delay(200); } void loop() { sensorState1 = digitalRead(sensorPin1); sensorState2 = digitalRead(sensorPin2); if(sensorState1 == LOW){ ready_entrer=1; }else if(sensorState2 == LOW){ ready_sortir=1; } if(ready_entrer==1 && sensorState2 == LOW){ count++; ready_entrer=0; ready_sortir=0; delay(500); }else if(ready_sortir==1 && sensorState1 == LOW){ count--; ready_sortir=0; ready_entrer=0; delay(500); } if(count0 && count
@departmentofitinqatartechn8303
Thanks brother
Далее
Digital Object Counter Using Arduino || DIY || TexoBot
11:46
Коротко о моей жизни:
01:00
Просмотров 499 тыс.
MCP2515 CAN Module with Arduino.
10:59
Просмотров 767
Digital Object Counter using Arduino
9:31
Просмотров 20 тыс.
Bidirectional Visitor Counter Using Arduino
5:40
Просмотров 43 тыс.
Sensors - which one to use
17:06
Просмотров 1,3 млн
Automatic Visitor Counter | Arduino Projects
8:01
Просмотров 11 тыс.
Arduino Visitors Counter | Automatic Light
6:11
Просмотров 110 тыс.
EEPROM Memory - Store Anything - Arduino101
13:16
Просмотров 104 тыс.