Arduino ultrasonic sensor led projects | Hc-sr04 Ultrasonic sensor

แชร์
ฝัง
  • เผยแพร่เมื่อ 17 พ.ย. 2024

ความคิดเห็น • 963

  • @ugurertugrul6070
    @ugurertugrul6070 5 ปีที่แล้ว +33

    Thanks for video. But I have a question . How Can I do this project with use active buzzer? How should be the circuit diagram and code?

    • @MrElectroUino
      @MrElectroUino  5 ปีที่แล้ว +7

      if you want circuit diagram and code so send your Gmail id and do subscribe to my channel💖.

    • @shahrozKhan4u
      @shahrozKhan4u 4 ปีที่แล้ว

      Shahrozgandapur@gmail.com

    • @shahrozKhan4u
      @shahrozKhan4u 4 ปีที่แล้ว

      Send the code

    • @MrElectroUino
      @MrElectroUino  4 ปีที่แล้ว +2

      @@shahrozKhan4u Check your email i have sent the code and circuit.

    • @dikasaputra4548
      @dikasaputra4548 4 ปีที่แล้ว +2

      dikawirasaputra@gmail.com :) please gift me code.

  • @elxr8335
    @elxr8335 2 ปีที่แล้ว +5

    thank you so much for this video, Mr. ElectroUino! you're literally a lifesaver. now, I can use this as a guide for my upcoming Arduino project. thank you again and have a nice day!!

  • @NGCgalaxy
    @NGCgalaxy 4 ปีที่แล้ว +4

    thank you!
    I found out that taking the absolute value of the "duration" making it works much better. for some reason negative values pop out randomly in my setup

    • @MrElectroUino
      @MrElectroUino  4 ปีที่แล้ว

      Excellent!

    • @maishasfishingzone634
      @maishasfishingzone634 3 ปีที่แล้ว

      @@MrElectroUino Mr ElectroUino Can you Send me The code and diagram please? . I need the code urgently

  • @Sniper9401
    @Sniper9401 4 ปีที่แล้ว +4

    Amazing video, highly recommend, well explained and works perfectly. Thanks a lot

    • @MrElectroUino
      @MrElectroUino  4 ปีที่แล้ว

      Thanks for watching 😊😊💖💙

  • @karenkim3177
    @karenkim3177 8 หลายเดือนก่อน

    Very good tutorial and project! I was able to follow your directions and got it to work properly. I was trying to add a function where the LED would turn off after 30 seconds of no movement and then reset/loop back but having trouble. I can get the LED to turn off after no movement for 30 seconds but I can't turn it back on when the sensor detects movement. I would appreciate any feedback.

    • @MrElectroUino
      @MrElectroUino  8 หลายเดือนก่อน

      Glad it helped!, can you contact me on Instagram: _mr_electrouino

  • @LouisNg-ty7iy
    @LouisNg-ty7iy ปีที่แล้ว +2

    Nice Video! if let's say I want to add on the Active buzzer, can you show me the circuit diagram and code?

  • @zogamthangboi
    @zogamthangboi 4 ปีที่แล้ว +3

    duration = pulseIn(echo , HIGH);
    distance = (duration/2) / 28.5 ;
    Serial.println(distance);
    Hi Sir. Above code are taken from your arduino program. May i know what is 28.5 means? Thanks.

    • @MrElectroUino
      @MrElectroUino  4 ปีที่แล้ว +1

      Visit my website for detail code explanation and don't forget to subscribe to my channel✔💙. Link👇
      mrelectrouino.blogspot.com/2020/07/arduino-ultrasonic-sensor-with-leds.html?m=1

    • @RajKairi-j7m
      @RajKairi-j7m 5 หลายเดือนก่อน

      J

  • @noreentaher7113
    @noreentaher7113 3 ปีที่แล้ว +1

    please I need your help !
    What if you want to make it with one Led that works when you place your hand in front of it at what distance(without distance measure)? how is the circuit and codes? And do I need a relay module? knowing that it takes its energy from a solar cell not a battery.

  • @WhyuhereE
    @WhyuhereE 2 ปีที่แล้ว +2

    Can you give me the code for using and OLED i2c Display to show distance with this project, It will be very helpful.
    Great Video Anyways!!

  • @mebanteisalahe985
    @mebanteisalahe985 3 ปีที่แล้ว +1

    you're the kind of teacher that I want which always come to the point without wasting our time 🥰 thankyou for this video

  • @cxndy001
    @cxndy001 ปีที่แล้ว

    Hi, loved your work
    Am trying it but My led won't stop blinking. It's blinking every second it takes reading.
    Apparent from that its working fine
    Can you please help.

  • @prov8570
    @prov8570 4 ปีที่แล้ว +1

    You deserve a like my guy

    • @MrElectroUino
      @MrElectroUino  4 ปีที่แล้ว

      Thanks man💖💙 and don't forget to subscribe to my channel✔.

  • @saptarshisinha4767
    @saptarshisinha4767 ปีที่แล้ว +1

    Can you give the code for per distance 30 cm... please...means the led will glow after every 30 cm

    • @MrElectroUino
      @MrElectroUino  ปีที่แล้ว

      For that just set the if statement to distance > 30.

    • @saptarshisinha4767
      @saptarshisinha4767 ปีที่แล้ว

      @@MrElectroUino you mean if ( distance

  • @sirvix9024
    @sirvix9024 4 ปีที่แล้ว

    BROOOO THANK UUU SOOO MUCHH i was trying 2 do this but it never worked cuz the coding was wrong and the ppl on utube, ur the 1st person to make me get successful with this, i nearly threw away this perfectly good sensor cuz i never got it 2 work

    • @MrElectroUino
      @MrElectroUino  4 ปีที่แล้ว +1

      Glad I could help

    • @saminaalam2416
      @saminaalam2416 2 ปีที่แล้ว

      my code is not uploading the same code i have used

    • @sirvix9024
      @sirvix9024 2 ปีที่แล้ว

      @@saminaalam2416 really?

    • @saminaalam2416
      @saminaalam2416 2 ปีที่แล้ว

      Yes kindly help

    • @sirvix9024
      @sirvix9024 2 ปีที่แล้ว

      @@saminaalam2416 im a bit unsure since a year ago ive been programming with arduino and now i havent done much with it

  • @lilchocolate.gurl2023
    @lilchocolate.gurl2023 ปีที่แล้ว

    If we want a buzzer also to buzz and a single light will only glow , then what will be the circute diagram and the code ?

  • @arpanajain2787
    @arpanajain2787 4 ปีที่แล้ว +2

    awesome man!!!!!!!!
    very good idea

  • @jomfawad9255
    @jomfawad9255 5 หลายเดือนก่อน

    does it work outdoor if theres sunlight?

  • @cyphrsphyr
    @cyphrsphyr 4 ปีที่แล้ว

    Sweet...first if/else statement project complete! Thanks

    • @MrElectroUino
      @MrElectroUino  4 ปีที่แล้ว +1

      Thanks for watching 💙💙
      & don't forget to subscribe👍👍

  • @wanhanissuffia9899
    @wanhanissuffia9899 2 ปีที่แล้ว

    Great video! I would like to ask if I don’t have the male to male jumper wire can i use the general purpose wire?

  • @NiranjanNDalapathi
    @NiranjanNDalapathi 7 หลายเดือนก่อน

    Really...it was helpful for me.....Please sir could u share the code....it's very urgent...Tomorrow is the last date for project submission

    • @MrElectroUino
      @MrElectroUino  7 หลายเดือนก่อน

      Can you please check the video description for code link

  • @MarcosGarcia-bn4lm
    @MarcosGarcia-bn4lm 3 ปีที่แล้ว +1

    in the second arduino screen did you only add those commands shown in the video? very cool the project, thanks for upload it

  • @stephentangerine3779
    @stephentangerine3779 4 ปีที่แล้ว

    Thank you man, it work 100%
    DO you have any idea how to insert displey on board and read the value , it's about LED DISPLAY MAX7219?

  • @PathwaytoEngineeringDegree
    @PathwaytoEngineeringDegree 3 ปีที่แล้ว +1

    Can I get the full code to this project please, thanks!

  • @joseramonsalgadobetanzos9846
    @joseramonsalgadobetanzos9846 2 ปีที่แล้ว

    Hello, nice video. I am from Mexico, I would like to know the code of the project with the buzzer and the LEDs

    • @MrElectroUino
      @MrElectroUino  2 ปีที่แล้ว

      Ohh Thanks. Can you send me the email address.

  • @aryanbiswal9735
    @aryanbiswal9735 ปีที่แล้ว +1

    Hi brother Its a very good project. But I want to do some modification like I want to add two sensor and differnt light for another sensor. Can u pls help me out. I would really appreciate it. Again thanks for the idea and I also subscribed to ur channel

    • @MrElectroUino
      @MrElectroUino  ปีที่แล้ว

      The same way you can do it. Just duplicate the code and change the pin defination.

  • @haneesha_shaik
    @haneesha_shaik 3 ปีที่แล้ว

    Can u add code for both parts in description, which would help better and y is buzzer used

    • @MrElectroUino
      @MrElectroUino  3 ปีที่แล้ว

      Kindly check the description for code link.

  • @supriyadi.eve18
    @supriyadi.eve18 9 หลายเดือนก่อน

    Is it possible if you don't use a breadboard, but use a decoder? and the lights use a 10 segment graph LED bar ?

  • @hammadkhan2926
    @hammadkhan2926 3 ปีที่แล้ว +1

    Can you tell me the abstract and future enhancement of 2nd project?

  • @Milanus1s
    @Milanus1s 4 หลายเดือนก่อน +1

    thank you very much everything is great

    • @MrElectroUino
      @MrElectroUino  4 หลายเดือนก่อน

      Glad you like it!

  • @MegaYuas
    @MegaYuas 3 ปีที่แล้ว

    thanks sir
    this is the first project which code is in working condition.

    • @MrElectroUino
      @MrElectroUino  3 ปีที่แล้ว

      Ohh thanks💖💖
      Do subscribe😊😊

  • @DavidAchukwu-ui6gm
    @DavidAchukwu-ui6gm 5 หลายเดือนก่อน +1

    good video thanks for you

  • @NenesHusbandNo
    @NenesHusbandNo 9 หลายเดือนก่อน

    Hellooo, I hope you'll notice this comment. I was wondering why my components are blinking when I copied your code, but in the video it isn't. Have I done something wrong? Your reply would be greatly appreciated ^-^

    • @MrElectroUino
      @MrElectroUino  9 หลายเดือนก่อน

      Can you send the serial monitor, I think your sensor might not work. I need more information to point out the issue.
      Contact me on instagram _mr_electrouino

  • @Preethi-yn6vy
    @Preethi-yn6vy 9 วันที่ผ่านมา

    Will it sense only mobile phone or anything that comes closer

    • @MrElectroUino
      @MrElectroUino  7 วันที่ผ่านมา

      Its worked with other things as well

  • @DavidAchukwu-ui6gm
    @DavidAchukwu-ui6gm 5 หลายเดือนก่อน +1

    Amazing making many vido

  • @yogeshagre2761
    @yogeshagre2761 3 ปีที่แล้ว

    Really thank you so much
    you saved my life

  • @SHARWINXAVIERRIT
    @SHARWINXAVIERRIT 4 ปีที่แล้ว +1

    can we do the same without resistors?

    • @MrElectroUino
      @MrElectroUino  4 ปีที่แล้ว

      Yes, you can do that, but the resistor is used for protecting the LEDs. Without a resistor, the LED draws too much current and burns out. You can easily found a resistor in some old electronics components but make sure the values and don't forget to subscribe to my channel✔💙

  • @sungpll7756
    @sungpll7756 10 หลายเดือนก่อน

    Thank you for this video !! can you give me the coding and diagram for ultrasonic sensor led project? because i want use this as a guide for my final exam ..

    • @MrElectroUino
      @MrElectroUino  10 หลายเดือนก่อน

      Hello, I’m glad to here it. For code, check out the video description.

  • @howidamostafa8789
    @howidamostafa8789 4 ปีที่แล้ว +1

    when i do the first part without led the distance = 0 why ?

    • @MrElectroUino
      @MrElectroUino  4 ปีที่แล้ว

      I think your ultrasonic sensor is not working.

  • @alejandroarreguin3628
    @alejandroarreguin3628 3 ปีที่แล้ว +1

    Thank you it was truly very fun to make and helps learn coding arduino

    • @MrElectroUino
      @MrElectroUino  3 ปีที่แล้ว +1

      Glad you liked it!

    • @alejandroarreguin3628
      @alejandroarreguin3628 3 ปีที่แล้ว +1

      @@MrElectroUino I used this project's circuit set up to help me make another one I called "Traffic Lights". This really helped me make it = ).

  • @lexjuris432
    @lexjuris432 ปีที่แล้ว

    Can you put it a lcd display to show the results on screen

  • @bhagyabiradar43
    @bhagyabiradar43 2 ปีที่แล้ว

    Thnkx for the vedio but can u plz share the circuit diagram and code

    • @MrElectroUino
      @MrElectroUino  2 ปีที่แล้ว

      Check out my website for code and circuit diagram. www.mrelectrouino.com

  • @terryroe2023
    @terryroe2023 5 ปีที่แล้ว

    What colour and size LEDs did you use? What was their voltage? How easy to add arduino speaker module into this project?

    • @MrElectroUino
      @MrElectroUino  5 ปีที่แล้ว

      5mm size and Round Red, Green, Blue, Yellow, White Color. It requires 2 to 3V dc power supply. For more information and buy visit this link: www.banggood.in/custlink/m3vD4vsnhu
      For the speaker connection, connect a positive terminal of speaker to Arduino pin 11 and negative terminal to Arduino pin ground(GND) and update the code and upload it. #subscribe it for more video......
      if you getting any problem you can also contact me on Instagram:
      instagram.com/_mr_electrouino_/?igshid=isb2pw365odq

    • @terryroe2023
      @terryroe2023 5 ปีที่แล้ว

      @@MrElectroUino I only asked as I am currently ordering the parts to build one. I am going to use it as an ITC device if I can.

    • @MrElectroUino
      @MrElectroUino  5 ปีที่แล้ว +1

      Okk
      First tell me what is the meaning of ITC device

    • @terryroe2023
      @terryroe2023 5 ปีที่แล้ว

      @@MrElectroUino its a device that can interact with spirits. I chase EVP, Electronic Voice Phenomenon, ITC is Instrumental Trans-Communication. I recently built a Rem Pod too.

    • @MrElectroUino
      @MrElectroUino  5 ปีที่แล้ว

      Watch this video:-
      th-cam.com/video/setjiVH0_IY/w-d-xo.html

  • @littleengineer8496
    @littleengineer8496 4 ปีที่แล้ว +1

    Can we use led bulb instead of Buzer❔❓❔

    • @MrElectroUino
      @MrElectroUino  4 ปีที่แล้ว +1

      Yes You can, but you have to add a relay for the bulb.

    • @littleengineer8496
      @littleengineer8496 4 ปีที่แล้ว +1

      @@MrElectroUino ok thanks 😎👍🏻

    • @littleengineer8496
      @littleengineer8496 4 ปีที่แล้ว +1

      @@MrElectroUino I am making this using home made cirkut can I use 3 led bulbs

    • @littleengineer8496
      @littleengineer8496 4 ปีที่แล้ว +1

      @@MrElectroUino relay means the base you used❔❓❔

    • @MrElectroUino
      @MrElectroUino  4 ปีที่แล้ว +1

      @@littleengineer8496 Relay is a electrical switch. It's use for high current appliances.
      arduino only supply 5v, So we can use a relay to switch between 230v bulb AC.

  • @pamuruchethan2903
    @pamuruchethan2903 3 ปีที่แล้ว

    You are doing a lot of experiments well and you have to do lot of projects for everyone

    • @MrElectroUino
      @MrElectroUino  3 ปีที่แล้ว

      Yaa I'm working on it😊😊
      Thanks

  • @Kirti_Mankar
    @Kirti_Mankar 4 ปีที่แล้ว +2

    Thanks for this video... 😀..

  • @hammadkhan2926
    @hammadkhan2926 3 ปีที่แล้ว

    Should I do coding first on arduino? or make the complete circuit then do coding on arduino

    • @MrElectroUino
      @MrElectroUino  3 ปีที่แล้ว

      Make the circuit and upload the code.

  • @kemaketseforkssebitiela3089
    @kemaketseforkssebitiela3089 11 หลายเดือนก่อน

    Too good but the problem is the last part of your code for leds passes quickly moreover "upload the code" those words causes obstruction i can see clearly. Where can i get clean code?

    • @SomethingIdk-rp9ew
      @SomethingIdk-rp9ew 7 หลายเดือนก่อน

      yyeeesss thank uuuuu

    • @SomethingIdk-rp9ew
      @SomethingIdk-rp9ew 7 หลายเดือนก่อน

      FOUND IT

    • @SomethingIdk-rp9ew
      @SomethingIdk-rp9ew 7 หลายเดือนก่อน +1

      const int trig = 12;
      const int echo = 13;
      const int LED1 = 8;
      const int LED2 = 7;
      const int LED3 = 6;
      const int LED4 = 5;
      const int LED5 = 4;
      const int LED6 = 3;
      const int LED7 = 2;
      int duration = 0;
      int distance = 0;
      void setup()
      {
      pinMode(trig , OUTPUT);
      pinMode(echo , INPUT);

      pinMode(LED1 , OUTPUT);
      pinMode(LED2 , OUTPUT);
      pinMode(LED3 , OUTPUT);
      pinMode(LED4 , OUTPUT);
      pinMode(LED5 , OUTPUT);
      pinMode(LED6 , OUTPUT);
      pinMode(LED7 , OUTPUT);

      Serial.begin(9600);
      }
      void loop()
      {
      digitalWrite(trig , HIGH);
      delayMicroseconds(1000);
      digitalWrite(trig , LOW);
      duration = pulseIn(echo , HIGH);
      distance = (duration/2) / 28.5 ;
      Serial.println(distance);

      if ( distance

    • @abgwaggo
      @abgwaggo 2 หลายเดือนก่อน

      Nice

  • @livinsebi3692
    @livinsebi3692 2 ปีที่แล้ว

    Sir i have a doubt
    Can i use arduino nano instead of uno??
    Isn't both same???
    Does this same code works on nano also???

    • @MrElectroUino
      @MrElectroUino  2 ปีที่แล้ว

      Yes it will work same for arduino nano.

  • @Fahimbkt
    @Fahimbkt ปีที่แล้ว

    Hi, I’m not sure if you are still looking at the comment but I’m doing a project like this but making it work with a dmx light.
    The ultrasonic sensor was not powerful enough to detect someone from a range so I’m going to be using a vl530x. I’m wondering how I can do the same project able to control the light power depending on distance with the vl530x

    • @MrElectroUino
      @MrElectroUino  ปีที่แล้ว

      Hii, Yes you can do this project with this module. There is library for this sensor you need to use for do this project.

    • @Fahimbkt
      @Fahimbkt ปีที่แล้ว

      @@MrElectroUino hi I got to making the sensor work on its own now I’m just trying to figure out how to make the dmx shield and the vl530x work together. If

    • @MrElectroUino
      @MrElectroUino  ปีที่แล้ว

      @@Fahimbkt sorry but I don't know much about dmx shield.

  • @vaishnavibabar18
    @vaishnavibabar18 ปีที่แล้ว

    Thank you so much this really helped ❤️

  • @Yalmamri
    @Yalmamri 6 หลายเดือนก่อน

    It fails to upload what is the problem? + I can’t find the port COM5

  • @AGMixArnavGupta
    @AGMixArnavGupta 4 ปีที่แล้ว +1

    Very Good...
    👌👌👌👌

    • @MrElectroUino
      @MrElectroUino  4 ปีที่แล้ว

      Thanks😊😊

    • @AGMixArnavGupta
      @AGMixArnavGupta 4 ปีที่แล้ว

      @@MrElectroUino Welcome, Please see my videos also

  • @tyreehornbeck2852
    @tyreehornbeck2852 4 ปีที่แล้ว

    Is there a reason why , when I change the power source from the blue wire to the 9v battery it no longer functions like it's supposed to ? It only glows

    • @MrElectroUino
      @MrElectroUino  4 ปีที่แล้ว

      It depends on how would you connect 9v battery to Arduino.🔌

  • @muhammadafif9396
    @muhammadafif9396 2 ปีที่แล้ว

    Thank you sir you help me a lot

    • @MrElectroUino
      @MrElectroUino  2 ปีที่แล้ว

      I glad to help you 😊👍.❤️

  • @RixtronixLAB
    @RixtronixLAB ปีที่แล้ว

    Nice info, thanks for sharing it :)

  • @MrBomer213
    @MrBomer213 4 ปีที่แล้ว +1

    Great video 🤓🤓
    I have a question, why did you divide by 28.5 ??

    • @MrElectroUino
      @MrElectroUino  4 ปีที่แล้ว

      For getting the distance in cm.
      Thanks for watching...💖😎

  • @nurfatninsahnun4326
    @nurfatninsahnun4326 2 ปีที่แล้ว

    Why when it come to hardware, my led become dim?

  • @AvighnaDaruka
    @AvighnaDaruka 2 ปีที่แล้ว

    bro please help it isnt working for me, only 5 LEDS are working and its just stationary it isnt blinking. It is just on and not moving

    • @MrElectroUino
      @MrElectroUino  2 ปีที่แล้ว

      Contact me on instagram: _mr_electrouino

  • @mohammadhammad6227
    @mohammadhammad6227 3 ปีที่แล้ว

    This project is great, but how can I get the code for this project ?

  • @prov8570
    @prov8570 4 ปีที่แล้ว

    i have a doubt what is the range 9600 is that mean the range of the serial monitor
    that can tally?

    • @MrElectroUino
      @MrElectroUino  4 ปีที่แล้ว

      Yes it's use for serial monitor to communicate with arduino uno.

  • @ΚλεάνθηςΛαζανάς
    @ΚλεάνθηςΛαζανάς 2 ปีที่แล้ว

    how could i reeplace the leds with a 7 segment display?

    • @MrElectroUino
      @MrElectroUino  2 ปีที่แล้ว

      Hello 👋
      If you want to connect the lcd then check out my website. I already made a tutorial on it.

  • @MuhammadIrfan-ez9ij
    @MuhammadIrfan-ez9ij 3 ปีที่แล้ว +1

    Bro can i ask you I follow you copy you code but why still wrong?

    • @MrElectroUino
      @MrElectroUino  3 ปีที่แล้ว

      Have you getting any error?
      you can contact me on instagram: _mr_electrouino

  • @nisietranding834
    @nisietranding834 4 ปีที่แล้ว +1

    Hi Sir,I will make this project. code was working,led was was showing distances.but one problem,all led was blinking I will put obstacle opposite of senser led was not blink.what is the problem of blinking?

    • @MrElectroUino
      @MrElectroUino  4 ปีที่แล้ว

      Contact me on instagram..._mr_electrouino_

    • @DavidAchukwu-ui6gm
      @DavidAchukwu-ui6gm 5 หลายเดือนก่อน +1

      what is that mean

  • @TinytotsWorld16
    @TinytotsWorld16 2 ปีที่แล้ว +1

    Can I have the complete code sir

    • @MrElectroUino
      @MrElectroUino  2 ปีที่แล้ว

      Check the video description for code or visit mrelectrouino.com

  • @antonolivermendez5000
    @antonolivermendez5000 4 ปีที่แล้ว

    the 2nd one with leds are coded using hard coding, right? is it possible to code the same program using arrays, if statements and for loops?

    • @MrElectroUino
      @MrElectroUino  4 ปีที่แล้ว +1

      Yaa it's possible with this...

    • @antonolivermendez5000
      @antonolivermendez5000 4 ปีที่แล้ว

      @@MrElectroUino may i have insight to how that way of coding works. i tried but got confused halfway through the code, Thank you!

  • @muhammadzaid532
    @muhammadzaid532 4 ปีที่แล้ว +1

    what if we dont use resistors? cz i dont have resistors

    • @MrElectroUino
      @MrElectroUino  4 ปีที่แล้ว

      Hey there, Resistor is use for protecting the leds.Without resistor the LED draws too much current and burns out. You can easy found a resistor in some old electronics component but make sure the values.

  • @justkamil8004
    @justkamil8004 4 ปีที่แล้ว

    I just need it so when you go close up, It'll have a red light, and when the sensor senses nothing, it has a green light. Can you tell me how to do that, please?

    • @MrElectroUino
      @MrElectroUino  4 ปีที่แล้ว

      Just set the distance for leds. when to off and on.

  • @rajdeep.saha_
    @rajdeep.saha_ 3 ปีที่แล้ว

    in my serial monitor only "0" i bing diplayed repeatedly. What to do?

    • @MrElectroUino
      @MrElectroUino  3 ปีที่แล้ว

      Maybe your sensor is broken or you did some thing wrong.
      Check your circuit again.

  • @Alrasite
    @Alrasite 2 ปีที่แล้ว

    maybe using rgb led saves some digitalPins ,becuz it can be green red blue or wahtever color in just one led

    • @MrElectroUino
      @MrElectroUino  2 ปีที่แล้ว

      Yes you are right if you want to add more components else having multiple leds is good way to understand the distance between an object.

  • @Sore_YT
    @Sore_YT 2 ปีที่แล้ว

    Hi Will This Work With 100 Ohm Resistors?

    • @MrElectroUino
      @MrElectroUino  2 ปีที่แล้ว

      Yes It will work but it can be damage the led if led is turn on for long time. So I suggest you to use high ohm resistor.

  • @tanushreebiswas5141
    @tanushreebiswas5141 4 ปีที่แล้ว

    I am doing the same thing with one led light, so when the sensor will find a object placed within less than 10 cm then it will turn on the light bt when i am connecting the circuit the led is glowing and when i am putting a object in front of the sensor the led is turned off why? But i have distance written "if(distance

    • @MrElectroUino
      @MrElectroUino  4 ปีที่แล้ว

      Could you send me your code So First I have to check it.

  • @DONATION799
    @DONATION799 8 หลายเดือนก่อน

    Arduino Uno R3 able working this project ?

    • @MrElectroUino
      @MrElectroUino  8 หลายเดือนก่อน

      Yes it will work

  • @saffanhal-turki6522
    @saffanhal-turki6522 4 ปีที่แล้ว

    Q: does the sensor works if pointed upwards ?

    • @MrElectroUino
      @MrElectroUino  4 ปีที่แล้ว

      Yes its work but you have to change the sensor direction in upwards.

  • @askariwaqar
    @askariwaqar 11 หลายเดือนก่อน

    sir how we get the code and circuit diagram in which one buzzer is also active;

    • @MrElectroUino
      @MrElectroUino  11 หลายเดือนก่อน

      Check out my website. I have written a blog on it. There you will find code with circuit diagram

  • @arifmohammad6509
    @arifmohammad6509 2 ปีที่แล้ว

    Brother can we use Mobile to give code. Is the code available in online?

    • @MrElectroUino
      @MrElectroUino  2 ปีที่แล้ว

      Yes you can, You can use arduinoDroid app for upload the code. Its Avaliable on playstore.
      The code link is onto my website.

  • @amartechs9267
    @amartechs9267 3 ปีที่แล้ว

    Can I use 480ohm resistor?

    • @MrElectroUino
      @MrElectroUino  3 ปีที่แล้ว

      Yes, you can but the bright of the leds is low.

    • @amartechs9267
      @amartechs9267 3 ปีที่แล้ว

      @@MrElectroUino Ok thanks

  • @maplexd2829
    @maplexd2829 3 ปีที่แล้ว

    2:14 I have an error shows "duration" was not declared in this scope. May I know what's the problem?

    • @MrElectroUino
      @MrElectroUino  3 ปีที่แล้ว

      Plz copy full code from the link.

  • @ProtecXRL
    @ProtecXRL 10 หลายเดือนก่อน +1

    bro i want all the code please

    • @MrElectroUino
      @MrElectroUino  10 หลายเดือนก่อน +1

      Please check description for code link

    • @ProtecXRL
      @ProtecXRL 10 หลายเดือนก่อน +2

      Thank you bro@@MrElectroUino

  • @DailyDeepFacts1_
    @DailyDeepFacts1_ 4 ปีที่แล้ว

    I finished the code and uploaded but what app do you use to chck the sensor?
    the same as the coding app?

    • @MrElectroUino
      @MrElectroUino  4 ปีที่แล้ว

      Same arduino IDE used to check the sensor value.
      For that Goto and click on serial monitor
      Don't forget to subscribe💖✌

  • @calebterrill9014
    @calebterrill9014 3 ปีที่แล้ว

    i keep getting zero for distance even though the wiring and coding is the same :( is my sensor broken???

    • @MrElectroUino
      @MrElectroUino  3 ปีที่แล้ว

      Maybe your sensor is broken or you did some thing wrong.

  • @santosharu3577
    @santosharu3577 2 ปีที่แล้ว

    Nice. How to control water tank level with motor output.

    • @MrElectroUino
      @MrElectroUino  2 ปีที่แล้ว

      Hii, The same way you can use it as water level indicator.

  • @Joshi_aarya
    @Joshi_aarya 3 ปีที่แล้ว

    Hello if I want to do the same thing using RaspberryPi and in python programming give me suggestions!!

    • @MrElectroUino
      @MrElectroUino  3 ปีที่แล้ว

      th-cam.com/video/L90WS-ptnvI/w-d-xo.html
      Visit this link for get the distance of an object after that use if loop for comparing the distance and turn on/off the led.

    • @Joshi_aarya
      @Joshi_aarya 3 ปีที่แล้ว

      @@MrElectroUino can u just explain me the code!

    • @MrElectroUino
      @MrElectroUino  3 ปีที่แล้ว

      @@Joshi_aarya How can i do that.
      visit this link for understand the code.
      pimylifeup.com/raspberry-pi-distance-sensor/

    • @Joshi_aarya
      @Joshi_aarya 3 ปีที่แล้ว

      @@MrElectroUino explain means just write it down!! Btw now I got it thank you so much 👍

    • @MrElectroUino
      @MrElectroUino  3 ปีที่แล้ว

      @@Joshi_aarya My pleasure : )

  • @sathishkumar-fp1qn
    @sathishkumar-fp1qn 2 ปีที่แล้ว

    Fantastic bro

    • @MrElectroUino
      @MrElectroUino  2 ปีที่แล้ว

      I'm glad you like it 😊❤️❤️

  • @nitinjaiswal04
    @nitinjaiswal04 ปีที่แล้ว

    Wonderful but I can't get the code plz help me in code sir

    • @MrElectroUino
      @MrElectroUino  ปีที่แล้ว

      Hey, Check out my website for the code.

  • @saumitrachaubey7935
    @saumitrachaubey7935 ปีที่แล้ว

    I also want to add that LCD distance showing screen with this LED light structure can u help me with that

    • @MrElectroUino
      @MrElectroUino  ปีที่แล้ว

      I already written a blog on this topic. So check out my website for code.

  • @co_lyrics216
    @co_lyrics216 ปีที่แล้ว

    How much cost for all the material required in this

    • @curly-hairedassassin5233
      @curly-hairedassassin5233 7 หลายเดือนก่อน

      This whole project can be achieved with the elegoo arduino super starter kit. That is around $30-40 USD.

  • @asjadelahi581
    @asjadelahi581 2 ปีที่แล้ว

    Can i get the programing it was not clear to me please🤗🤗i need it imidiatly...❤

  • @hamzakhanzz2420
    @hamzakhanzz2420 ปีที่แล้ว

    Hi I am actually trying out this project but it ain’t working for me can u pls help😢

    • @MrElectroUino
      @MrElectroUino  ปีที่แล้ว

      Yea sure... You can contact me on Instagram _mr_electrouino

  • @Muszti1
    @Muszti1 2 ปีที่แล้ว

    Can you send me a program to this Project because i cant swe what is on your screen?

    • @MrElectroUino
      @MrElectroUino  2 ปีที่แล้ว

      Thanks for watching.
      Code link is in video description.

  • @sayedharshlip5387
    @sayedharshlip5387 3 ปีที่แล้ว

    hi I have subscribed to your channel, can I get the Arduino code for this project please

    • @MrElectroUino
      @MrElectroUino  3 ปีที่แล้ว

      Thanks for subscribe 💙💙💙
      Check description for code you will find a link.

  • @ne1kncode683
    @ne1kncode683 ปีที่แล้ว

    Thank you so much

  • @firhanrizani96
    @firhanrizani96 4 ปีที่แล้ว

    why my serial monitor not showing the distance? it keep showing 0 value. i follow all your instructions and your coding but still not get it. even i try only the sensor.

    • @MrElectroUino
      @MrElectroUino  4 ปีที่แล้ว

      Check the circuit connection.

    • @firhanrizani96
      @firhanrizani96 4 ปีที่แล้ว

      @@MrElectroUino i follow absolutely like yours. the simple circuit. not show the distance at my serial monitor.

  • @mihaighitun4409
    @mihaighitun4409 4 ปีที่แล้ว

    Hi .In ur code the distance is messured in cm?

  • @kacperbator7475
    @kacperbator7475 3 ปีที่แล้ว

    sensor all the time returns 0, what can be wrong?

  • @muhammadnajmi865
    @muhammadnajmi865 4 ปีที่แล้ว

    I want to ask why you put it on 13 and 12 pin and not in analog pin

    • @MrElectroUino
      @MrElectroUino  4 ปีที่แล้ว

      That's because the echo pin of HC-SR04 receives a pulse of very short duration,a pulse that has a value of 5v. Its not possible to get a pulse with analog pin.

  • @yassinsaid4042
    @yassinsaid4042 3 ปีที่แล้ว +1

    What letter is after print

  • @sairampolisetty2059
    @sairampolisetty2059 2 ปีที่แล้ว

    Where is the code and circuit diagram ???
    It's better to keep in description

    • @MrElectroUino
      @MrElectroUino  2 ปีที่แล้ว

      The code is already in the description.

  • @saptarshisinha4767
    @saptarshisinha4767 ปีที่แล้ว

    What is the resistance of the resistors?

  • @mikemumbo7317
    @mikemumbo7317 4 ปีที่แล้ว

    Is there anyone here getting this error code here?
    Arduino: 1.8.13 (Windows 7), Board: "Arduino Uno"
    Sketch uses 3234 bytes (10%) of program storage space. Maximum is 32256 bytes.
    Global variables use 190 bytes (9%) of dynamic memory, leaving 1858 bytes for local variables. Maximum is 2048 bytes.
    An error occurred while uploading the sketch
    avrdude: ser_open(): can't open device "\\.\COM3": Access is denied.

    • @MrElectroUino
      @MrElectroUino  4 ปีที่แล้ว

      The first step is to verify the Uno is presented on COM3. Remove the Uno. Start Device Manager. What serial ports are listed? Insert the Uno. Wait a few seconds. What serial ports are listed?

  • @ElleBas
    @ElleBas 9 หลายเดือนก่อน

    Hello! Can I ask a question?

    • @MrElectroUino
      @MrElectroUino  9 หลายเดือนก่อน

      Hello, yeah sure