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
    - - - - -
  • Наука та технологія

КОМЕНТАРІ • 124

  • @Shubham1906
    @Shubham1906 7 місяців тому +132

    ```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

    • @user-ju8cr4dy5t
      @user-ju8cr4dy5t 7 місяців тому +2

      Thanks bro

    • @simplyelectronic4840
      @simplyelectronic4840 7 місяців тому +2

      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!

    • @GaneshVernekar-rp7sk
      @GaneshVernekar-rp7sk 7 місяців тому

      Tq bro

    • @killertiger5499
      @killertiger5499 6 місяців тому +2

      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")

    • @JustRollin
      @JustRollin 6 місяців тому +2

      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.

  • @user-ni1pf9or8j
    @user-ni1pf9or8j 29 днів тому +2

    Используем 2 оптопары (на въезд и выезд за пределы шлагбаума), микросхему таймера ne555 для установки времени вращения ОБЫЧНОГО двигателя (можно заменить двумя дополнительными оптопарами для определения положения стрелы шлагбаума), сдвоенное реле (можно заменить двумя обычными) для переключения между режимами (открыть/закрыть), операционный усилитель для управления реле и расыпуха из линейного стабилизатора напряжения, нескольких конденсаторов и парочки резисторов. Таким образом схема управления становится в 5-6 раз дешевле и менее запарная без программирования. При этом при дополнительных расходах на потенциометры 10-100кОм - можно регулировать время перед открытием шлагбаума, время поднятия стрелы и время после отъезда машины без лишних телодвижений

  • @pythoncreators7090
    @pythoncreators7090 4 місяці тому +26

    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

    • @shouryaupadhyay7329
      @shouryaupadhyay7329 4 місяці тому +2

      Litterally that's right🤣

    • @shorthunt2460
      @shorthunt2460 4 місяці тому +3

      Yha I made it when I started playing with arduino😂

    • @Manny73211
      @Manny73211 26 днів тому

      I'm assuming English isn't your first language...

  • @Artiography3900
    @Artiography3900 11 місяців тому +20

    Tutorial please

  • @monilworld
    @monilworld 8 місяців тому +9

    gun reload sound 💀

  • @ananthandhangam3823
    @ananthandhangam3823 6 місяців тому +2

    அருமை யான பதிவு ஐயா செ ஆனந்தன் விஞ்ஞானி

  • @DIYMachineYT
    @DIYMachineYT 9 місяців тому +2

    Cool idea with Arduino ❤

  • @MacherlaDeepak
    @MacherlaDeepak Рік тому +4

    Excellent

  • @abr2736
    @abr2736 7 місяців тому +1

    Oscar level project 🔥

  • @kartik3881
    @kartik3881 8 місяців тому +2

    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.

  • @StrayKittenLove
    @StrayKittenLove 4 місяці тому

    A toll booth simulation would be so much fun to watch

  • @malikaamir6412
    @malikaamir6412 8 місяців тому

    great 👍 keep sharing ideas like this....

  • @user-ow8es7fu9t
    @user-ow8es7fu9t 6 місяців тому +1

    Bro need full video please

  • @abiralhossain
    @abiralhossain 6 місяців тому +2

    This is a lighting sensor which name IR.It is not work in sunlight.We made a project and it failed for this sensor

  • @Mr.Electronics9898
    @Mr.Electronics9898 7 місяців тому +1

    I like your video❤

  • @nikodemgorka834
    @nikodemgorka834 6 місяців тому +2

    well from the security point of view its terrible add something that will accept change.

  • @Get_Rus
    @Get_Rus 4 місяці тому +1

    Это легко сделать)

  • @XueJoy
    @XueJoy Місяць тому

    Nice show

  • @user-ef4ul7xv9k
    @user-ef4ul7xv9k 7 місяців тому +1

    nice

  • @CorporalOp99
    @CorporalOp99 8 місяців тому +2

    Details vdo ???

  • @dreadwharf
    @dreadwharf 13 днів тому +1

    It’s cool but I’d like to see you write your own code.

  • @krazyylatch9171
    @krazyylatch9171 7 місяців тому +1

    How about the sensor detecting a number of cars and relative to the number of cars it detects, the time it gives also changes

  • @vasu4177
    @vasu4177 9 місяців тому +1

    Is servo motor is directly powered by Arduino?

  • @dreew738
    @dreew738 8 місяців тому

    in my country at bekasi they use pressure for open the gate

  • @WIZZY_OFFICIAL_XD69
    @WIZZY_OFFICIAL_XD69 Рік тому +2

    Wow man ❤❤❤❤❤❤❤😮😮😮😮😮😮

  • @Drxxx
    @Drxxx Рік тому +2

    ❤❤❤❤ top

  • @havefun4free615
    @havefun4free615 Місяць тому

    Which kind of device did you use on that gate

  • @Omar-se7qz
    @Omar-se7qz Місяць тому

    Cool Diagrama de auriculares para la bocina bloetooth q no trae Conector como hacerlo?

  • @anhhoangminh9474
    @anhhoangminh9474 Місяць тому

    Nice.

  • @user-tk5wd6lh1g
    @user-tk5wd6lh1g 2 місяці тому

    I teraz tak jakiego koloru była sukienka 😂

  • @lukaschabotier4097
    @lukaschabotier4097 6 місяців тому

    Oui bien !! voilà voilà

  • @marvysegarra1795
    @marvysegarra1795 10 місяців тому +1

    code? link?

  • @AnvithArun
    @AnvithArun 11 місяців тому

    What is the programs

  • @ajaycreations2791
    @ajaycreations2791 8 місяців тому

    Use of servo motor❤❤

  • @abhishekjadhav2250
    @abhishekjadhav2250 8 місяців тому +3

    what programming language should we learn to program this

    • @CodersCafeTech
      @CodersCafeTech  8 місяців тому +2

      C++, arduino uses a variant of C++ and can be found here: www.arduino.cc/reference/en/

    • @remexyt2584
      @remexyt2584 8 місяців тому

      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

  • @mohamedheshame470
    @mohamedheshame470 Рік тому +3

    Arduino programming code

  • @estudiobrasil8533
    @estudiobrasil8533 25 днів тому

    Faltou um sensor na saida🤔

  • @manishabhandari4241
    @manishabhandari4241 10 місяців тому

    Im instarting

  • @Halocn.
    @Halocn. Рік тому +3

    What is the model of the ir sensor?

  • @yusufsahintas46
    @yusufsahintas46 4 місяці тому

    Nerden satın alabilirim

  • @warrenmontebon6536
    @warrenmontebon6536 10 місяців тому +4

    May i ask sir what sensor we use to detect our bus in order to receive a message (voice message) to passenger?

    • @CodersCafeTech
      @CodersCafeTech  10 місяців тому

      You could use camera or gps or something similar depending on where you place the sensor.

    • @CodersCafeTech
      @CodersCafeTech  10 місяців тому

      You could use camera or gps or something similar depending on where you place the sensor.

  • @Bogdan-2002
    @Bogdan-2002 Рік тому +1

    Я би поставил на более больше расстояния

  • @tamilanimeedits7902
    @tamilanimeedits7902 Рік тому

    Please mention the things that are used in this video da venna

  • @MythicScienceOfficial
    @MythicScienceOfficial 11 місяців тому +7

    Can it be ultrasonic sensor

  • @A1facts06
    @A1facts06 8 місяців тому

    Sir ye project mujhe bhi made karna h full video kaha milega

  • @tusabih0218
    @tusabih0218 5 місяців тому

    try making the remaining parking spaces automatic

  • @shashankab1394
    @shashankab1394 10 місяців тому

    Brother can I get the codes for this ?

  • @mahmoudtaha8265
    @mahmoudtaha8265 2 місяці тому

    How I can get

  • @pendrive3732
    @pendrive3732 8 місяців тому

    Isso e um bloqueio duplo

  • @sudarsanhot
    @sudarsanhot 2 місяці тому

    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

  • @gopiragastya1689
    @gopiragastya1689 28 днів тому

    Please share the vode

  • @cartoonsmation
    @cartoonsmation 7 місяців тому

    just a kids projects . and your finger was caught at the time of cars stopping

  • @Samjain123
    @Samjain123 6 місяців тому

    What is the name of sensor

  • @got-to-code
    @got-to-code 5 місяців тому

    What about a black car cuz ir doesn't work on black colour

  • @user-xz9zb8dx8z
    @user-xz9zb8dx8z Рік тому

    How to do it please send video upload please please please please

  • @changed55555
    @changed55555 7 місяців тому

    Aa time gap chalu manam escape avvataniki

  • @user-mn6xs7ur8o
    @user-mn6xs7ur8o 11 місяців тому

    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.

    • @CodersCafeTech
      @CodersCafeTech  11 місяців тому

      The sensor we used is an IR Sensor.

    • @user-mn6xs7ur8o
      @user-mn6xs7ur8o 11 місяців тому +1

      @@CodersCafeTech you are the best😊, and so are your videos. Keep up the good work!

    • @CodersCafeTech
      @CodersCafeTech  11 місяців тому

      @@user-mn6xs7ur8o Thank you☺

  • @rajeshsonkar-kt1ri
    @rajeshsonkar-kt1ri 4 місяці тому

    Dese tool plaza ❤❤❤

  • @carrenoh2008
    @carrenoh2008 Рік тому +1

    👍🤗🇻🇪

  • @ZEALANELECTRONICSHKINTLLIMITED

  • @cinthyad5099
    @cinthyad5099 8 місяців тому

    What is the codig??????

  • @yugalsharma13
    @yugalsharma13 3 місяці тому

    Why have the gate at all then? 😂

  • @animetoon1192
    @animetoon1192 7 місяців тому

    Steeper motor

  • @gonakl
    @gonakl Рік тому

    code bro..

  • @animetoon1192
    @animetoon1192 7 місяців тому

    Or servo

  • @kollywoodtrends8578
    @kollywoodtrends8578 4 місяці тому

    How to fix please help me bro this is son project

  • @Hokphaiduy
    @Hokphaiduy 5 місяців тому

    oh

  • @nisoalaxshan4946
    @nisoalaxshan4946 10 місяців тому +1

    I need arduino program code

    • @xhorizon94x
      @xhorizon94x 10 місяців тому +1

      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);
      }
      }

  • @user-fc9zj1kz9i
    @user-fc9zj1kz9i 4 місяці тому

    Tutorial

  • @alig.faizanazam5672
    @alig.faizanazam5672 7 місяців тому

    thats not gatekeeper thats open to all 😅

  • @Ras_188
    @Ras_188 3 місяці тому

    Bro, use gpt for that monstrosity

  • @zainulkhotim7001
    @zainulkhotim7001 7 місяців тому

    Kasir bilang 4000, padahal cuma 3000. Udah ga ada kembalian sribu jadi goceng😂😂😂😂

  • @Guiltfreedelight
    @Guiltfreedelight 8 місяців тому

    Purpose of gate is to make them pay....why there would be a gate that opens automatically.
    No gate is also good...

  • @satishrajp1934
    @satishrajp1934 7 місяців тому

    What if its a black car😂😂😂😂😂

  • @gandalf1783
    @gandalf1783 3 місяці тому

    It isnt an ESP lol

  • @phanimaheswar
    @phanimaheswar Рік тому +1

    Tutorial please. ..

  • @user-jv3ov3rl3u
    @user-jv3ov3rl3u 8 місяців тому

    🪫good staff

  • @anlonjs517
    @anlonjs517 10 місяців тому +1

    What is that motor ?

  • @tamilanimeedits7902
    @tamilanimeedits7902 Рік тому

    Sorry man my bad

  • @MdArafat-qy9xj
    @MdArafat-qy9xj 2 місяці тому

    Nm I just got your email ✉️ to

  • @sr.codeScript
    @sr.codeScript Місяць тому

    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 😊❤

  • @Task_Force_141
    @Task_Force_141 8 місяців тому +3

    Kids project, can make in 15 min without ChatGPT. 😂

  • @AkrurMahapatra
    @AkrurMahapatra 21 день тому

    Item

  • @abubakarsiddique5507
    @abubakarsiddique5507 7 місяців тому

    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

  • @BK_EDITZ_006
    @BK_EDITZ_006 9 місяців тому +1

    Bro coding ❤

  • @ImronIim-du8yf
    @ImronIim-du8yf 15 днів тому

    M😊

  • @shirinkamal788
    @shirinkamal788 7 місяців тому

    Can u explain it to us in a full video

  • @Antonio.italian
    @Antonio.italian 6 місяців тому

    Ж