const int echo=13; const int trig=12; int LED1=2; int LED2=3; int LED3=4; int LED4=5; 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); Serial.begin(9600); } void loop() { digitalWrite(trig,HIGH); delay(1000); digitalWrite(trig,LOW); digitalWrite(LED1,LOW); digitalWrite(LED2,LOW); digitalWrite(LED3,LOW); digitalWrite(LED4,LOW); duration=pulseIn(echo,HIGH); distance= (duration/2)/28.5; if (distance=10 && distance 20&& distance
@ericknova2989 Жыл бұрын
Buen día, se puede agregar un buzzer ¿'
@Waiduino Жыл бұрын
@@ericknova2989 Hola, no hablo muy bien español. Sí, puedes agregar un buzzer. Puedo hacer un vídeo sobre eso si estás interesado.
@ericknova2989 Жыл бұрын
@@Waiduino Hola, si, seria interesante agregar un buzzer que se active con el código que creaste.
@Waiduino Жыл бұрын
@@ericknova2989 Haré mi próximo video sobre cómo agregar un buzzer para este proyecto. Gracias por tu comentario.
@Waiduino Жыл бұрын
@@ericknova2989 Se acaba de publicar un nuevo vídeo sobre el sensor y el buzzer. ¡Disfrutar! Gracias por tu comentario
@layanshali801510 ай бұрын
Hello just wanted to say thanks, I tried this in my class, it was my first time using ultrasonic and it worked💗
@Waiduino10 ай бұрын
Yea of course! Thanks so much for your kind words.
@manjuyadav-ws4xd11 ай бұрын
Yo the channel owner is legend for replying to all comments most KZbinrs dont do that
@Waiduino11 ай бұрын
Haha thanks so much! I try to reply to every comment since I’m thankful you guys watch my videos and because I mainly wanted to help other people create and learn about circuits. I always try to reply to comments so thanks for noticing!!
@Mr.chasmishАй бұрын
You just gained a new subscriber by this video 😊😊
@WaiduinoАй бұрын
@@Mr.chasmish thank you so much! So glad you enjoyed the video!! 🥰
@ShreyashTiwari007Ай бұрын
Thank you that helped me alot in my science exhibition project
@WaiduinoАй бұрын
@@ShreyashTiwari007 of course!!! How’d it go?
@lyndalekirk68838 ай бұрын
Very well explained thanks
@Waiduino7 ай бұрын
Thank you so much! Were you able to make the circuit?
@geoffreyadudaАй бұрын
What are the components required to be used in smart home lighting control system using Arduino (audio controlled)
@WaiduinoАй бұрын
@@geoffreyaduda That sounds like an awesome idea! So essentially you wanna control all the lights of your home using Arduino? That might be a bit challenging but if you provide some more details I can help. You will likely need a bluetooth module or ESP8266.
@RixtronixLAB8 ай бұрын
Creative video, thank you :)
@Waiduino8 ай бұрын
Thank you!! Did you build the project?
@mikefranzsalvador69772 ай бұрын
One year late, but thank you!
@WaiduinoАй бұрын
@@mikefranzsalvador6977 Of course!! Thanks for watching
@industrialelectricalbd69004 ай бұрын
NICE PROJECT! THANKS A LOT SIR
@Waiduino4 ай бұрын
No problem! Were you able to build it successfully?
@turtleburglary11416 ай бұрын
Waiduino: *audio shift* Me: *tears ears off by accident*
@Waiduino6 ай бұрын
🤣🤣 underrated comment 😆😆 Did you build the circuit successfully?
@turtleburglary11416 ай бұрын
@@Waiduino I think so 🥹🥹.. nooo
@Waiduino3 ай бұрын
@@turtleburglary1141 Hahaha nice one! Did you make any new projects? I promise there are less... (maybe) audio shifts! 😁
@Sabbir-ln3bx7 ай бұрын
How do you do it with all the leds on and when you put your hands closer to the leds they turn off one by one?
@Waiduino7 ай бұрын
Hi so basically you would need to modify the code. I will do that for you right now if you would like. You just have to set the status to each LEF as on and then every second it detects a hand, it will turn off an LED by turning it off. Let me comment the code now
@Sabbir-ln3bx7 ай бұрын
@@Waiduino ok
@Waiduino7 ай бұрын
const int echo=13; const int trig=12; int LED1=2; int LED2=3; int LED3=4; int LED4=5; 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); Serial.begin(9600); } void loop() { digitalWrite(trig,HIGH); delay(1000); digitalWrite(trig,LOW); digitalWrite(LED1,HIGH); digitalWrite(LED2,HIGH); digitalWrite(LED3,HIGH); digitalWrite(LED4,HIGH); duration=pulseIn(echo,HIGH); distance= (duration/2)/28.5; if (distance=10 && distance 20&& distance
@Waiduino7 ай бұрын
Does that work? Let me know
@Sabbir-ln3bx7 ай бұрын
@@Waiduino it doesn't
@teerthkhiya73186 ай бұрын
Hello Thank you very much for this video I was hoping if you could please mention the name of the all components for this experiment
@Waiduino6 ай бұрын
Sure I found these all in the Arduino uno kit. It uses ultrasonic sensor, 3 LED, and an arduino uno. Let me know of you need it more specific.
@apicc92702 ай бұрын
Can you please help me? I used a code our teacher provided but for some reason the LCD and the sensor are not working. it lights up but there's no display. LED is constantly turned on
@Waiduino2 ай бұрын
@@apicc9270 sure would you be able to show me the code?
@paulcarsco60295 ай бұрын
I tried using the code but it didn't work because I need a value for the pulseln variable?
@Waiduino5 ай бұрын
for this project, i don’t think pulseIn is a variable, it should be a library. That’s why it has the parameters (the things inside the brackets if u look at the code). Did you copy directly from the comment?
@graemebrumfitt6668Ай бұрын
Rite Waiduino Dude, TFS, GB :)
@WaiduinoАй бұрын
@@graemebrumfitt6668 of course! thanks for watching
@arinaitwejoe19992 Жыл бұрын
Hello thanks very much , so i have an inquire how can i use an infrared sensor as a level sensor and also with like 2 indicator LED lights ???
@Waiduino Жыл бұрын
Thank you so much for your comment! It is possible to use the infrared sensor as a level sensor however it would require much more instructions than I can show here. Would you like me to create a video to show how to create this project?
@GladiatorX-te6bx7 ай бұрын
Yo. Can you tell me how to switch off two motors if the distance is less than 20 for example, and otherwise keep it on? Thanks
@Waiduino7 ай бұрын
Sure which motors are you interested in? Like servo?
@Sabbir-ln3bx7 ай бұрын
What was the resistance of the resistor you used? And how did you wire the leds, and the wires next to the led?
@Sabbir-ln3bx7 ай бұрын
oh wait nvm i think i got it.
@Waiduino7 ай бұрын
Sounds good thanks for commenting! Were you able to create the circuit?
@Sabbir-ln3bx7 ай бұрын
@@Waiduino it works thanks.
@patrickventurini54074 ай бұрын
en principe pour limiter le courant on met ne résistance de 1k en série avec la LED , mais comme la carte arduino de délivre que très peux de courant , aucu rsique , une résitance d e 330 homssuffit
@LayalAman29 күн бұрын
Can u help me please there is an error message saying pulseln was not declared in this scope
@Waiduino29 күн бұрын
@@LayalAman Hmmm did you make sure all connections were correct? What board are you using?
@vipulsingh11555 ай бұрын
what is the value of resistor for led
@Waiduino5 ай бұрын
I believe it is 500 or 1k but whatever value you use is fine. The lower the value, the brighter the LED.
@DannyYuson8 ай бұрын
endless thanks
@Waiduino8 ай бұрын
No problem! Glad you enjoyed and learned something. Did you have to make it for a school project?
@zainraza712610 ай бұрын
hey their whenever i connect to 5V my arduino shuts off plz help ASAP thanks
@Waiduino10 ай бұрын
Hi! I’ve had this issue in the past. Pay attention to where the 5v railing is and you might find the cause of the issue. Did you make sure all connections are correct?
@zainraza712610 ай бұрын
@@Waiduino im not sure if my breadboard is properly or if the video is inverted u are saying to plug in the Sensor closest to the negative side right? Sorry i have a project on this and im stressed
@Waiduino10 ай бұрын
@@zainraza7126 If you are referring to the sensor, the white wire is plugged to the rightmost pin on the sensor (the sensor circles should be pointed to the right). Is that what you are referring to?
@angelomunsayac478Ай бұрын
Do you have any code for running lights?
@WaiduinoАй бұрын
@@angelomunsayac478 Do you mean like a single running LED or like lights of your home?
@Mg28mg7 ай бұрын
Can we do this with uno and hc-sr04???
@Waiduino7 ай бұрын
Yep! If I am not mistaken, I used the hc-sr04 in my video as well as the uno. Thanks for your comment!
@mvsaikartheek633 Жыл бұрын
hello how to give connections for led positive and negative and resistor?
@Waiduino Жыл бұрын
You can find that all in the circuit diagram. The GND should connect to the railing which is connected to a resistor which connects to the negative side of the LED and the positive side connects to a pin on the Arduino designated in your code. You can find a walkthrough in my first ever video. Hope this helped!
@mvsaikartheek633 Жыл бұрын
@@Waiduino oh thank you
@Waiduino Жыл бұрын
@@mvsaikartheek633 Sure no problem! Let me know if you have any other questions.
@mvsaikartheek633 Жыл бұрын
@@Waiduino okay 👍
@ZaidQuihuis6 ай бұрын
i love you man
@Waiduino6 ай бұрын
LMAOO thanks for the support! Were you able to built it without any problems?
@LZ1SSA4 ай бұрын
Червен кабел за маса, защо? Сигурен начин да прецакаме нещо е работата под напрежение.
@Waiduino3 ай бұрын
какво имаш предвид Съжалявам за грешките, защото това беше един от ранните ми видеоклипове. Благодаря ви за коментара
@ili-sha10 ай бұрын
how many ohms resistor did you use
@Waiduino10 ай бұрын
Hi! It should be 330 ohms, I’m not entirely sure. The lower resistance, the brighter your LED is gonna be. Hope this helps!
@Ajetnahom7 ай бұрын
What is the resister number you used bro?
@Waiduino7 ай бұрын
I believed I used like 500 or 1k but feel free to use whatever you want. Lower resistance means brighter color so I normally like LEDS to shine more
@zeeshamt16957 ай бұрын
Can u tell me the number of the risistor and the wites
@Waiduino7 ай бұрын
I used a 1k ohm resistor. The higher resistance, the less bright your LED will be. What is your question about the wires?
@Mertv1237 ай бұрын
only one light blink you know why i pretty sure i put it together right
@Waiduino7 ай бұрын
You copied the code exactly, right? What pins is each individual LED connected to. Make sure they are securely in.
@Mertv1236 ай бұрын
@Waiduino yes I copied the code, but I think it is the wire, since it is kinda hard to follow since you don't show yourself connect the led but I will try again
@Waiduino6 ай бұрын
@@Mertv123 Thank you for your feedback, I will try my best to improve that for my future videos. With the LED, do you know which wires to connect it to? Remember that the shorter part of the LED should touch the resistor and the other to the wire connecting to the pin on the Arduino.
@Mertv1236 ай бұрын
@@Waiduino it works now thanks you so much
@Waiduino6 ай бұрын
@@Mertv123 No problem!! I’m so happy that you were able to make it. Is it for a school project?
@jesussaquin62665 ай бұрын
at 6:12 idk if my wiring is right but my LED is not lighting up
@Waiduino5 ай бұрын
Did you notice that one pin of the LED is longer than the other? Did you follow that part?
@jesussaquin62665 ай бұрын
@@Waiduino heal all good friend thank you :)
@Waiduino5 ай бұрын
@@jesussaquin6266 Did my advice work? Glad everything works!!
@AKarts-ef4hq Жыл бұрын
const int echo=13; const int trig=12; int LED1=2; int LED2=3; int duration=0; int distance=0; void setup() { pinMode(trig,OUTPUT); pinMode(echo,INPUT); pinMode(LED1,OUTPUT); pinMode(LED2,OUTPUT); Serial.begin(9600); } void loop() { digitalWrite(trig,HIGH); delay(1000); digitalWrite(trig,LOW); digitalWrite(LED1,LOW); digitalWrite(LED2,LOW); duration=pulseIn(echo,HIGH); distance= (duration/2)/28.5; if (distance=10 && distance 20&& distance
@missma.eugeniamartinezgonz5607 ай бұрын
Como puede tu código mandar la información a un celular, supongamos un lugar separado, como cuando separas tu lugar, prende el foco rojo y manda la información a una pantalla.
@Waiduino7 ай бұрын
Hola! Gracias por tu comentario. ¿Quieres conectar el arduino a un teléfono?
@Curiousitypathofficial Жыл бұрын
the led is not lighting up how matter I try
@Waiduino Жыл бұрын
Hmm i can assist you personally. Have you used a resistor and followed the diagram exactly? What pin did you attach it to on the Arduino?
@DanielMTB66311 ай бұрын
Yo I am new to arduino so could you tell me what app you use to put the code into the thing
@Waiduino11 ай бұрын
Yea for sure. I talked about this in my very first video but the compiler or IDE is something you have to download. Here is the link: www.arduino.cc/en/software Let me know if you have any other questions!!
@DanielMTB66311 ай бұрын
@@Waiduino Thank you 😊
@Waiduino11 ай бұрын
@@DanielMTB663 Yea of course! If you’re interested in other projects I would greatly appreciate it if you could check out some of my other videos since i’m really trying to grow my channel. Have you built any other projects?
@DanielMTB66311 ай бұрын
@@Waiduino no this is my first project as I am trying to make an RC plane. I have subscribed to see more projects. (I am using the radar to ad to the plane)
@Waiduino11 ай бұрын
@@DanielMTB663 Ohhhh that seems super interesting! Glad to see your working with the Arduino. Thank you for your support and if there’s any project ideas or assistance you need with the Arduino feel free to ask any questions!
@AisaiahTrishaLABARCA6 ай бұрын
hello, can i ask for the diagram? tysm
@Waiduino6 ай бұрын
Sure do you have an email or form of communication I can send the diagram to? Is it too confusing to follow with the physical components?
@AisaiahTrishaLABARCA6 ай бұрын
@@Waiduino I'm sorry, I am a 2nd year college taking electronics and this is one of my arduino projects. I am sorry if I am a slow learner, earlier I tried this and it works! Tysm for the vid.
@Waiduino6 ай бұрын
@@AisaiahTrishaLABARCA Of course, no problem! I just want to know how I can improve my content for the future so that’s why I was wondering if it was too confusing. Next time I will be sure to add the diagram so that it is easier to follow along. Thank you for your comment and I hope you enjoyed the video! Are you interested in continuing to make projects with the Arduino?
@AisaiahTrishaLABARCA6 ай бұрын
@@Waiduino yes I am continuing for school projects. But discovering an arduino is too early for me. Maybe in the future if I am confident enough on this one. Tysm
@Waiduino6 ай бұрын
@@AisaiahTrishaLABARCA Are you sure you don’t want to continue Arduino? I felt the same way when I started and that’s the reason I started this channel, to help others. There are wiring diagrams and in depth explanations on my other videos. Have you seen them?
@lolboqoboqo8 ай бұрын
It doesn't let me send an email here I don't know why
@Waiduino8 ай бұрын
No give me your email address so I can send you an email
@lolboqoboqo8 ай бұрын
@@Waiduino boqo lol boqo no space for email
@lolboqoboqo8 ай бұрын
@@Waiduino I couldn't send the whole email since it didn't let me and no space and no numbers
@lolboqoboqo8 ай бұрын
@@Waiduino Did you find it?
@projekter.original8 ай бұрын
Step1: Disconect Power from Arduino
@Waiduino8 ай бұрын
Oh I forgot to add that to my video 😅😅. Did you make the project?
@abgwaggo2 ай бұрын
💀🤣
@shlokjobanputra41034 ай бұрын
nice i tried
@Waiduino4 ай бұрын
@@shlokjobanputra4103 Awesome!! Did it work properly?
@douglaskiptum Жыл бұрын
are you open to innovation project. ?
@Waiduino Жыл бұрын
Yea definitely! I have been working on a few but they take really long to finish them.
@Waiduino Жыл бұрын
Also don’t forget to check out my other videos with cool projects and different Arduino modules!
@traders6485 күн бұрын
were is a code?
@Waiduino5 күн бұрын
@@traders648 check the pinned comment
@TapiokaLover19 күн бұрын
STE students be like:
@Waiduino18 күн бұрын
@@TapiokaLover Haha yea 😂🤣 Are you an STE student?
@TapiokaLover14 күн бұрын
@ YESSIRRR ‼️‼️💯💯🔥🔥
@Waiduino14 күн бұрын
@@TapiokaLover NICEEE STE students on top 💪💪 Do you study electrical engineering?
@TapiokaLover14 күн бұрын
@@Waiduino Particularly, No. Some STE schools in the Philippines start at the first year of high school. I’m still an 8th Grader 😁
@Waiduino14 күн бұрын
@ Ohhhh cool do you know what you want to study? Maybe technology?
@fkj7761 Жыл бұрын
Hi
@Waiduino Жыл бұрын
😂😂 Hi! Are you interested in Arduino
@lolboqoboqo8 ай бұрын
Awesome video bruh can you help pls? thanks!
@Waiduino8 ай бұрын
I’m glad you enjoyed the video! I can help, what seems to be the issue?
@lolboqoboqo8 ай бұрын
@@Waiduino Heyy thank you! Do you have discord account?
@lolboqoboqo8 ай бұрын
@@Waiduino Were not allowed to use arduino uno or any similar though so it's kinda a bit hard to choose but I think it's a small project since were not going to use arduino uno or any similar etc We have this type of list and I don't know which to choose for beginners raspberry pi Thanks! User Interface Basic Basic Kit (at least 2 from LEDs, Button Switches, Buzzer) Basic Bluetooth API (e.g. Blue Dot API) Basic Speech Recognition Basic Speech Output Basic e-mail Alerts Basic RFID input Basic Push Notifications to mobile using API like Instapush or Twilio Advanced Flask Server (or WebIoT) providing Web interface Advanced GUI created using TkInter or Pygame or guizero or similar Advanced Machine Learning Advanced GPIO connected Character Pad Advanced GPIO connected Joystick Advanced 74HC595 & Bar Graph LED Advanced 74HC595 & 4-digit 7-Segment Display Advanced 74HC595 & LED Matrix 8x8 or bigger Advanced Output to an IoT broker such as Thingsboard Advanced 2x16 I2C based LCD Advanced Fingerprint scanner Sensors and Actuators Basic Pi-Camera or USB Webcam for taking photos Basic PIR Infrared Motion Sensor Basic Soil Moisture Sensor Basic Rain Fall sensor Basic Relays connected to equipment such as water-pump/lights/ locks/ valves Basic CPU/Case/Graphic card temperature sensor Basic Photoresistor & LED or RGB LED with ADC module Advanced Infrared Digital Obstacle Avoidance Sensor Advanced Potentiometer & ADC module with LEDs or RGB LED Advanced Attitude Sensor MPU6050 Advanced Hygrothermograph DHT11 sensor / Barometric Pressure Sensor Advanced Wind Direction & Speed sensors Advanced Ultrasonic Distance Sensors Advanced Motor with ADC control or PWM Advanced Servo Motor/s Advanced Pi-Camera or USB Webcam with Open-CV computer vision
@lolboqoboqo8 ай бұрын
List at least 5 functionalities in total from Table 1 below (Minimum 2 of which must be advanced) for use in your project. Elements from both sections of the table (User Interface and Sensors and Actuators) must be included. Use of the same component is only allowed once, if the two components are complementary to each other and are going to be programmed separately. We need to choose atleast 5 things
@lolboqoboqo8 ай бұрын
@@Waiduino My group and I already have chosen things can you help us pls?
@fkj7761 Жыл бұрын
Hi 7:57
@Waiduino Жыл бұрын
Hi!!! Did you enjoy the video?
@lolboqoboqo8 ай бұрын
boqo lol boqo no space for email
@Waiduino8 ай бұрын
thanks! I’ll send an email when I get home
@ih8snow415 Жыл бұрын
use this code if ur buzzer sound like radioactive sound "#define trigPin 9 // Broche de déclenchement du capteur à ultrasons #define echoPin 10 // Broche d'écho du capteur à ultrasons #define ledPin 13 // Broche de la LED #define buzzerPin 11 // Broche du buzzer void setup() { pinMode(trigPin, OUTPUT); pinMode(echoPin, INPUT); pinMode(ledPin, OUTPUT); pinMode(buzzerPin, OUTPUT); Serial.begin(9600); } void loop() { long duration, distance; // Envoi d'une impulsion de déclenchement au capteur à ultrasons digitalWrite(trigPin, LOW); delayMicroseconds(2); digitalWrite(trigPin, HIGH); delayMicroseconds(10); digitalWrite(trigPin, LOW); // Lecture de la durée de l'impulsion d'écho duration = pulseIn(echoPin, HIGH); // Calcul de la distance en centimètres distance = (duration / 2) / 29.1; // Affichage de la distance dans le moniteur série Serial.print("Distance : "); Serial.print(distance); Serial.println(" cm"); // Vérification de la distance et activation de la LED et du buzzer if (distance < 20) { digitalWrite(ledPin, HIGH); // Allume la LED tone(buzzerPin, 1000); // Active le buzzer à 1 kHz } else { digitalWrite(ledPin, LOW); // Éteint la LED noTone(buzzerPin); // Désactive le buzzer } delay(100); // Attente pour éviter les fausses détections } "
@Waiduino Жыл бұрын
Thank you so much! I appreciate your input!! Do you use the Arduino often?
@ih8snow415 Жыл бұрын
@@Waiduino yes sometimes
@Waiduino Жыл бұрын
@@ih8snow415 Oh cool!! Are you new to Arduino and electronics?
@clobel558 ай бұрын
extremely confusing
@Waiduino8 ай бұрын
Thanks for your comment what did you find particularly confusing?