Beyond the Basics: Automatic Gatekeeper With IR Sensor And ChatGPT Generated Arduino Code
HTML-код
- Опубликовано: 3 окт 2024
- 𝐒𝐮𝐩𝐩𝐨𝐫𝐭 𝐔𝐬 𝐎𝐧
Patreon : / coderscafetech
BuyMeACoffee : www.buymeacoff...
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
𝐌𝐞𝐞𝐭 𝐓𝐡𝐞 𝐂𝐫𝐞𝐚𝐭𝐨𝐫𝐬
Nekhil Ravi (Hardware Development, Narration)
Shebin Jose Jacob (Software Development)
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
𝐖𝐞'𝐫𝐞 𝐅𝐚𝐢𝐫𝐥𝐲 𝐒𝐨𝐜𝐢𝐚𝐥 𝐏𝐞𝐨𝐩𝐥𝐞
Facebook : / coderscafetech
Instagram : / coderscafetech
Twitter : / coderscafetech
RUclips : / @coderscafetech
Official Email : mail.coderscafe@gmail.com
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
𝐆𝐞𝐚𝐫𝐬 𝐔𝐬𝐞𝐝
Shot On: Canon M50
Microphone: Boya M1
Tripod : DigiTek DTR 520 BH
Software: Adobe Premiere | Adobe Photoshop | Adobe Audition | Adobe After Effects
- - - -
```arduino
const int irSensorPin = 2; // Connect the IR sensor to digital pin 2
const int gatePin = 3; // Connect the gate motor to digital pin 3
void setup() {
pinMode(irSensorPin, INPUT);
pinMode(gatePin, OUTPUT);
}
void loop() {
if (digitalRead(irSensorPin) == HIGH) {
// IR sensor detects an obstacle (e.g., a person or a vehicle)
openGate();
delay(5000); // Keep the gate open for 5 seconds (adjust as needed)
closeGate();
}
}
void openGate() {
digitalWrite(gatePin, HIGH); // Activate the gate motor to open
}
void closeGate() {
digitalWrite(gatePin, LOW); // Deactivate the gate motor to close
}
```
This is a coding
Please like
Thanks bro
I know from my own work that this takes a long time to code on a computer. Thanks so much for doing this from your phone. I really appreciate it. Good day sir!
Tq bro
I am a python programmer and the codes look really simmilar i will give you an example.
#are the numbers equal?
Number_1= 6
Number_2= 6 #you can change
these values
If Number_1 == Number_2:
Print("The numbers are equal")
Else:
Print("The numbers are not equal")
That's a servo motor and does not have a high and low. It has a wire which uses a PWM signal to determine what position it should be.
Don't u think that this isn't beyond basics😂 like this can be one of the thing biggner can make on his/her first week
Litterally that's right🤣
Yha I made it when I started playing with arduino😂
I'm assuming English isn't your first language...
They just chose to yap without learning English first, that's it@@Manny73211
well from the security point of view its terrible add something that will accept change.
This is a lighting sensor which name IR.It is not work in sunlight.We made a project and it failed for this sensor
Excellent
It’s cool but I’d like to see you write your own code.
It's awesome
It will help me to make a prototype if you upload the video that how you have make this , what are the thing that you have use.
Tutorial please
Используем 2 оптопары (на въезд и выезд за пределы шлагбаума), микросхему таймера ne555 для установки времени вращения ОБЫЧНОГО двигателя (можно заменить двумя дополнительными оптопарами для определения положения стрелы шлагбаума), сдвоенное реле (можно заменить двумя обычными) для переключения между режимами (открыть/закрыть), операционный усилитель для управления реле и расыпуха из линейного стабилизатора напряжения, нескольких конденсаторов и парочки резисторов. Таким образом схема управления становится в 5-6 раз дешевле и менее запарная без программирования. При этом при дополнительных расходах на потенциометры 10-100кОм - можно регулировать время перед открытием шлагбаума, время поднятия стрелы и время после отъезда машины без лишних телодвижений
How about the sensor detecting a number of cars and relative to the number of cars it detects, the time it gives also changes
gun reload sound 💀
Hola, me ayudarian mucho si pasan por el canal.
He creado un curso de programación con raspberry pico W por si alguien está interesado en aprender 😊❤
what programming language should we learn to program this
C++, arduino uses a variant of C++ and can be found here: www.arduino.cc/reference/en/
I would start to program real microcontroller just bare metal avr to understand how microcontroller work. Than you should learn prober C and try to step up to more compilcated controllers like stm32 with the cube mx and some practice another world opens up than you can try to carefully learn c++ its a rabbit hole and very complicated. For everything a little bit more advanced than just copy and pasting libarys C++ is way to complicated
❤❤❤😊
Bro need full video please
Which kind of device did you use on that gate
That's a servo motor
Details vdo ???
How to fix please help me bro this is son project
Hey why use chatgpt all needed is to know how to detect the car and send Servo.write(180);
If car detected = true and then delay 2000 Ms
What is the model of the ir sensor?
Ir sensor
Nerden satın alabilirim
Это легко сделать)
Nm I just got your email ✉️ to
nice
I like your video❤
Why have the gate at all then? 😂
❤❤❤❤ top
Arduino programming code
great 👍 keep sharing ideas like this....
Please share the vode
what sensor did you use for the motoric
Cool idea with Arduino ❤
just a kids projects . and your finger was caught at the time of cars stopping
Kasir bilang 4000, padahal cuma 3000. Udah ga ada kembalian sribu jadi goceng😂😂😂😂
code? link?
A toll booth simulation would be so much fun to watch
thats not gatekeeper thats open to all 😅
What about a black car cuz ir doesn't work on black colour
try making the remaining parking spaces automatic
அருமை யான பதிவு ஐயா செ ஆனந்தன் விஞ்ஞானி
Thats true
I need arduino program code
cpp
#include
// IR sensor pin
const int irSensorPin = 2;
// Servo motor pin
const int servoPin = 9;
// Servo angle limits
const int minAngle = 0;
const int maxAngle = 180;
// Servo motor object
Servo servoMotor;
void setup() {
// Initialize the serial communication
Serial.begin(9600);
// Attach servo to the servo pin
servoMotor.attach(servoPin);
// Set initial position of the servo
servoMotor.write(minAngle);
}
void loop() {
// Read the value from the IR sensor
int irSensorValue = digitalRead(irSensorPin);
// Check if an object is detected
if (irSensorValue == HIGH) {
// Object detected, move the servo to the maximum angle
servoMotor.write(maxAngle);
delay(1000);
// Move the servo back to the minimum angle
servoMotor.write(minAngle);
delay(1000);
}
}
Cool Diagrama de auriculares para la bocina bloetooth q no trae Conector como hacerlo?
Я би поставил на более больше расстояния
What if its a black car😂😂😂😂😂
Oscar level project 🔥
Can it be ultrasonic sensor
Yes, it can be.
@@CodersCafeTech oh thanks
@@CodersCafeTech me from india
Yes I just made one to keep my brother out of my room. It makes an annoying noise if he goes by it lol
Is servo motor is directly powered by Arduino?
Purpose of gate is to make them pay....why there would be a gate that opens automatically.
No gate is also good...
Faltou um sensor na saida🤔
May i ask sir what sensor we use to detect our bus in order to receive a message (voice message) to passenger?
You could use camera or gps or something similar depending on where you place the sensor.
You could use camera or gps or something similar depending on where you place the sensor.
in my country at bekasi they use pressure for open the gate
❤
Aa time gap chalu manam escape avvataniki
very cool !!
Ж
Steeper motor
🪫good staff
Nice.
What is the programs
Nice show
Dese tool plaza ❤❤❤
Im instarting
Sorry man my bad
👍🤗🇻🇪
Oui bien !! voilà voilà
May i ask where i can get the sensor you used for detecting the wooden stick? My ultrasonic sensor came in arduino kit is too big, so i was looking for a smaller one.
The sensor we used is an IR Sensor.
@@CodersCafeTech you are the best😊, and so are your videos. Keep up the good work!
@@Starving_pigeon Thank you☺
I teraz tak jakiego koloru była sukienka 😂
Use of servo motor❤❤
We make in our class
Wow man ❤❤❤❤❤❤❤😮😮😮😮😮😮
How I can get
Kids project, can make in 15 min without ChatGPT. 😂
Tutorial please. ..
Please mention the things that are used in this video da venna
Bro coding ❤
What is that motor ?
Servo Motor
Please can you tell the components and sensor used in this project
All the required components to make this project
Please can you elaborate this
It will be very helpful for us
Waiting for your reply
What is the name of sensor
What is the codig??????
Bro, use gpt for that monstrosity
Tutorial
Or servo
Can u explain it to us in a full video
Sir ye project mujhe bhi made karna h full video kaha milega
How to do it please send video upload please please please please
Isso e um bloqueio duplo
It isnt an ESP lol
oh
Brother can I get the codes for this ?
Item
hagu
M😊
code bro..
😊😊❤❤❤