Beyond the Basics: Automatic Gatekeeper With IR Sensor And ChatGPT Generated Arduino Code
Вставка
- Опубліковано 2 кві 2023
- 𝐒𝐮𝐩𝐩𝐨𝐫𝐭 𝐔𝐬 𝐎𝐧
Patreon : / coderscafetech
BuyMeACoffee : www.buymeacoffee.com/codersca...
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
𝐌𝐞𝐞𝐭 𝐓𝐡𝐞 𝐂𝐫𝐞𝐚𝐭𝐨𝐫𝐬
Nekhil Ravi (Hardware Development, Narration)
Shebin Jose Jacob (Software Development)
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
𝐖𝐞'𝐫𝐞 𝐅𝐚𝐢𝐫𝐥𝐲 𝐒𝐨𝐜𝐢𝐚𝐥 𝐏𝐞𝐨𝐩𝐥𝐞
Facebook : / coderscafetech
Instagram : / coderscafetech
Twitter : / coderscafetech
UA-cam : / @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.
Используем 2 оптопары (на въезд и выезд за пределы шлагбаума), микросхему таймера ne555 для установки времени вращения ОБЫЧНОГО двигателя (можно заменить двумя дополнительными оптопарами для определения положения стрелы шлагбаума), сдвоенное реле (можно заменить двумя обычными) для переключения между режимами (открыть/закрыть), операционный усилитель для управления реле и расыпуха из линейного стабилизатора напряжения, нескольких конденсаторов и парочки резисторов. Таким образом схема управления становится в 5-6 раз дешевле и менее запарная без программирования. При этом при дополнительных расходах на потенциометры 10-100кОм - можно регулировать время перед открытием шлагбаума, время поднятия стрелы и время после отъезда машины без лишних телодвижений
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...
Tutorial please
gun reload sound 💀
அருமை யான பதிவு ஐயா செ ஆனந்தன் விஞ்ஞானி
Thats true
Cool idea with Arduino ❤
Excellent
Oscar level project 🔥
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.
A toll booth simulation would be so much fun to watch
great 👍 keep sharing ideas like this....
Bro need full video please
This is a lighting sensor which name IR.It is not work in sunlight.We made a project and it failed for this sensor
I like your video❤
well from the security point of view its terrible add something that will accept change.
Это легко сделать)
Nice show
nice
Details vdo ???
It’s cool but I’d like to see you write your own code.
How about the sensor detecting a number of cars and relative to the number of cars it detects, the time it gives also changes
Is servo motor is directly powered by Arduino?
in my country at bekasi they use pressure for open the gate
Wow man ❤❤❤❤❤❤❤😮😮😮😮😮😮
❤❤❤❤ top
Which kind of device did you use on that gate
Cool Diagrama de auriculares para la bocina bloetooth q no trae Conector como hacerlo?
Nice.
I teraz tak jakiego koloru była sukienka 😂
Oui bien !! voilà voilà
code? link?
What is the programs
Use of servo motor❤❤
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
Arduino programming code
Faltou um sensor na saida🤔
Im instarting
What is the model of the ir sensor?
Ir sensor
Nerden satın alabilirim
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.
Я би поставил на более больше расстояния
Please mention the things that are used in this video da venna
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
Sir ye project mujhe bhi made karna h full video kaha milega
try making the remaining parking spaces automatic
Brother can I get the codes for this ?
How I can get
Isso e um bloqueio duplo
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
Please share the vode
just a kids projects . and your finger was caught at the time of cars stopping
What is the name of sensor
What about a black car cuz ir doesn't work on black colour
How to do it please send video upload please please please please
Aa time gap chalu manam escape avvataniki
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!
@@user-mn6xs7ur8o Thank you☺
Dese tool plaza ❤❤❤
👍🤗🇻🇪
❤
What is the codig??????
Why have the gate at all then? 😂
Steeper motor
code bro..
Or servo
How to fix please help me bro this is son project
oh
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);
}
}
Tutorial
thats not gatekeeper thats open to all 😅
Bro, use gpt for that monstrosity
Kasir bilang 4000, padahal cuma 3000. Udah ga ada kembalian sribu jadi goceng😂😂😂😂
Purpose of gate is to make them pay....why there would be a gate that opens automatically.
No gate is also good...
What if its a black car😂😂😂😂😂
It isnt an ESP lol
Tutorial please. ..
🪫good staff
What is that motor ?
Servo Motor
Sorry man my bad
Nm I just got your email ✉️ to
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 😊❤
Kids project, can make in 15 min without ChatGPT. 😂
Item
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
Bro coding ❤
M😊
Can u explain it to us in a full video
Ж