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

Комментарии • 135

  • @Shubham1906
    @Shubham1906 10 месяцев назад +172

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

    • @RukshanJifriy
      @RukshanJifriy 10 месяцев назад +2

      Thanks bro

    • @simplyelectronic4840
      @simplyelectronic4840 10 месяцев назад +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 9 месяцев назад

      Tq bro

    • @killertiger5499
      @killertiger5499 9 месяцев назад +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 8 месяцев назад +3

      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.

  • @pythoncreators7090
    @pythoncreators7090 7 месяцев назад +40

    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

    • @Cossmic_Snapshots
      @Cossmic_Snapshots 7 месяцев назад +2

      Litterally that's right🤣

    • @shorthunt2460
      @shorthunt2460 7 месяцев назад +4

      Yha I made it when I started playing with arduino😂

    • @Manny73211
      @Manny73211 3 месяца назад +1

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

    • @DvN-_-Mk99
      @DvN-_-Mk99 2 месяца назад

      They just chose to yap without learning English first, that's it​@@Manny73211

  • @nikodemgorka834
    @nikodemgorka834 9 месяцев назад +2

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

  • @abiralhossain
    @abiralhossain 9 месяцев назад +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

  • @MacherlaDeepak
    @MacherlaDeepak Год назад +4

    Excellent

  • @dreadwharf
    @dreadwharf 3 месяца назад +1

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

  • @kartik3881
    @kartik3881 11 месяцев назад +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.

  • @Artiography3900
    @Artiography3900 Год назад +20

    Tutorial please

  • @ЁжикПодчебоксарский
    @ЁжикПодчебоксарский 3 месяца назад +3

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

  • @krazyylatch9171
    @krazyylatch9171 10 месяцев назад +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

  • @monilworld
    @monilworld 11 месяцев назад +9

    gun reload sound 💀

  • @sr.codeScript
    @sr.codeScript 3 месяца назад

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

  • @abhishekjadhav2250
    @abhishekjadhav2250 11 месяцев назад +3

    what programming language should we learn to program this

    • @CodersCafeTech
      @CodersCafeTech  11 месяцев назад +2

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

    • @remexyt2584
      @remexyt2584 11 месяцев назад

      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

  • @TechBox2026
    @TechBox2026 Месяц назад +1

    ❤❤❤😊

  • @RuhailKhan-q7u
    @RuhailKhan-q7u 9 месяцев назад +1

    Bro need full video please

  • @havefun4free615
    @havefun4free615 4 месяца назад +1

    Which kind of device did you use on that gate

  • @CorporalOp99
    @CorporalOp99 11 месяцев назад +2

    Details vdo ???

  • @kollywoodtrends8578
    @kollywoodtrends8578 7 месяцев назад

    How to fix please help me bro this is son project

  • @sudarsanhot
    @sudarsanhot 5 месяцев назад

    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

  • @Halocn.
    @Halocn. Год назад +3

    What is the model of the ir sensor?

  • @yusufsahintas46
    @yusufsahintas46 7 месяцев назад

    Nerden satın alabilirim

  • @Get_Rus
    @Get_Rus 7 месяцев назад +1

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

  • @MdArafat-qy9xj
    @MdArafat-qy9xj 5 месяцев назад

    Nm I just got your email ✉️ to

  • @葉志宏-r1x
    @葉志宏-r1x 10 месяцев назад +1

    nice

  • @Mr.Electronics9898
    @Mr.Electronics9898 10 месяцев назад +1

    I like your video❤

  • @yugalsharma13
    @yugalsharma13 6 месяцев назад

    Why have the gate at all then? 😂

  • @Drxxx
    @Drxxx Год назад +2

    ❤❤❤❤ top

  • @mohamedheshame470
    @mohamedheshame470 Год назад +3

    Arduino programming code

  • @malikaamir6412
    @malikaamir6412 11 месяцев назад

    great 👍 keep sharing ideas like this....

  • @gopiragastya1689
    @gopiragastya1689 3 месяца назад

    Please share the vode

  • @muhamadfarizramadhan7311
    @muhamadfarizramadhan7311 Месяц назад

    what sensor did you use for the motoric

  • @DIYMachineYT
    @DIYMachineYT Год назад +2

    Cool idea with Arduino ❤

  • @cartoonsmation
    @cartoonsmation 10 месяцев назад

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

  • @zainulkhotim7001
    @zainulkhotim7001 10 месяцев назад

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

  • @marvysegarra1795
    @marvysegarra1795 Год назад +1

    code? link?

  • @StrayKittenLove
    @StrayKittenLove 6 месяцев назад +1

    A toll booth simulation would be so much fun to watch

  • @alig.faizanazam5672
    @alig.faizanazam5672 10 месяцев назад

    thats not gatekeeper thats open to all 😅

  • @got-to-code
    @got-to-code 7 месяцев назад

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

  • @tusabih0218
    @tusabih0218 7 месяцев назад

    try making the remaining parking spaces automatic

  • @ananthandhangam3823
    @ananthandhangam3823 9 месяцев назад +2

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

  • @nisoalaxshan4946
    @nisoalaxshan4946 Год назад +1

    I need arduino program code

    • @xhorizon94x
      @xhorizon94x Год назад +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);
      }
      }

  • @Omar-se7qz
    @Omar-se7qz 3 месяца назад

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

  • @Bogdan-2002
    @Bogdan-2002 Год назад +1

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

  • @satishrajp1934
    @satishrajp1934 9 месяцев назад

    What if its a black car😂😂😂😂😂

  • @abr2736
    @abr2736 10 месяцев назад +1

    Oscar level project 🔥

  • @CertifiedCensored
    @CertifiedCensored Год назад +7

    Can it be ultrasonic sensor

  • @Villian4177
    @Villian4177 Год назад +1

    Is servo motor is directly powered by Arduino?

  • @Guiltfreedelight
    @Guiltfreedelight 11 месяцев назад

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

  • @estudiobrasil85
    @estudiobrasil85 3 месяца назад

    Faltou um sensor na saida🤔

  • @warrenmontebon6536
    @warrenmontebon6536 Год назад +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  Год назад

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

    • @CodersCafeTech
      @CodersCafeTech  Год назад

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

  • @dreew738
    @dreew738 11 месяцев назад

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

  • @ZEALANELECTRONICSHKINTLLIMITED
    @ZEALANELECTRONICSHKINTLLIMITED 3 месяца назад

  • @changed55555
    @changed55555 10 месяцев назад

    Aa time gap chalu manam escape avvataniki

  • @txga2005
    @txga2005 2 месяца назад

    very cool !!

  • @Antonio.italian
    @Antonio.italian 8 месяцев назад

    Ж

  • @animetoon1192
    @animetoon1192 10 месяцев назад

    Steeper motor

  • @PedroPerez-d6o
    @PedroPerez-d6o 11 месяцев назад

    🪫good staff

  • @anhhoangminh9474
    @anhhoangminh9474 4 месяца назад

    Nice.

  • @AnvithArun
    @AnvithArun Год назад

    What is the programs

  • @XueJoy
    @XueJoy 4 месяца назад

    Nice show

  • @rajeshsonkar-kt1ri
    @rajeshsonkar-kt1ri 7 месяцев назад

    Dese tool plaza ❤❤❤

  • @manishabhandari4241
    @manishabhandari4241 Год назад

    Im instarting

  • @tamilanimeedits7902
    @tamilanimeedits7902 Год назад

    Sorry man my bad

  • @carrenoh2008
    @carrenoh2008 Год назад +1

    👍🤗🇻🇪

  • @lukaschabotier4097
    @lukaschabotier4097 9 месяцев назад

    Oui bien !! voilà voilà

  • @Starving_pigeon
    @Starving_pigeon Год назад

    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  Год назад

      The sensor we used is an IR Sensor.

    • @Starving_pigeon
      @Starving_pigeon Год назад +1

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

    • @CodersCafeTech
      @CodersCafeTech  Год назад

      @@Starving_pigeon Thank you☺

  • @JanKędzierski-z8f
    @JanKędzierski-z8f 5 месяцев назад

    I teraz tak jakiego koloru była sukienka 😂

  • @ajaycreations2791
    @ajaycreations2791 11 месяцев назад

    Use of servo motor❤❤

  • @RamchandraPatil-f3q
    @RamchandraPatil-f3q 5 дней назад

    We make in our class

  • @WIZZY_OFFICIAL_XD69
    @WIZZY_OFFICIAL_XD69 Год назад +2

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

  • @mahmoudtaha8265
    @mahmoudtaha8265 5 месяцев назад

    How I can get

  • @Task_Force_141
    @Task_Force_141 10 месяцев назад +3

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

  • @phanimaheswar
    @phanimaheswar Год назад +1

    Tutorial please. ..

  • @tamilanimeedits7902
    @tamilanimeedits7902 Год назад

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

  • @BK_EDITZ_006
    @BK_EDITZ_006 Год назад +1

    Bro coding ❤

  • @anlonjs517
    @anlonjs517 Год назад +1

    What is that motor ?

  • @abubakarsiddique5507
    @abubakarsiddique5507 10 месяцев назад

    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

  • @Samjain123
    @Samjain123 8 месяцев назад

    What is the name of sensor

  • @cinthyad5099
    @cinthyad5099 10 месяцев назад

    What is the codig??????

  • @Ras_188
    @Ras_188 6 месяцев назад

    Bro, use gpt for that monstrosity

  • @OmkarshindeShinde-f2m
    @OmkarshindeShinde-f2m 7 месяцев назад

    Tutorial

  • @animetoon1192
    @animetoon1192 10 месяцев назад

    Or servo

  • @shirinkamal788
    @shirinkamal788 10 месяцев назад

    Can u explain it to us in a full video

  • @A1facts06
    @A1facts06 11 месяцев назад

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

  • @AjuAju-e9m
    @AjuAju-e9m Год назад

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

  • @pendrive3732
    @pendrive3732 11 месяцев назад

    Isso e um bloqueio duplo

  • @gandalf1783
    @gandalf1783 6 месяцев назад

    It isnt an ESP lol

  • @Hokphaiduy
    @Hokphaiduy 8 месяцев назад

    oh

  • @shashankab1394
    @shashankab1394 Год назад

    Brother can I get the codes for this ?

  • @AkrurMahapatra
    @AkrurMahapatra 3 месяца назад

    Item

  • @tinkeringlab6431
    @tinkeringlab6431 2 месяца назад

    hagu

  • @ImronIim-du8yf
    @ImronIim-du8yf 3 месяца назад

    M😊

  • @gonakl
    @gonakl Год назад

    code bro..

  • @GabrielaVillaruel
    @GabrielaVillaruel Месяц назад +1

    😊😊❤❤❤