Nice video, but hiw can you do it when you dont want it to loop infinitely but for a specific amount of times
@Program30320 күн бұрын
where to find the code
@RMXSteel24 күн бұрын
how many ohm is the potentiometer, i m gonna usa a 25kg servo
@RixtronixLABАй бұрын
Nice video, keep it up, thanks :)
@darionmackey5090Ай бұрын
I had a problem with shaky motor around 120 deg it would start going crazy. If you have this problem you can smooth out the movement with a capacitor wired in series with the POT. In my case 100 ųF capacitor worked great.
@explorewithzaid2 ай бұрын
From where can I get the code?
@dingdong18132 ай бұрын
tried adding include servo.h and it still said its not in my directory
@abusekak19342 ай бұрын
Way too hard t understand. He doesnt even say wich pins to connect on ur arduino
@blockpost122 ай бұрын
works nicely
@davinardianto1093 ай бұрын
// Definisi pin untuk LED dan buzzer const int ledRed = 9; const int ledYellow = 10; const int ledGreen = 11; const int buzzer = 8; void setup() { // Set pin-mode untuk LED dan buzzer sebagai output pinMode(ledRed, OUTPUT); pinMode(ledYellow, OUTPUT); pinMode(ledGreen, OUTPUT); pinMode(buzzer, OUTPUT); } void loop() { // Mengatur LED merah untuk berkedip 3x for (int i = 0; i < 3; i++) { digitalWrite(ledRed, HIGH); tone(buzzer, 1000); // Bunyikan buzzer delay(500); // Tahan LED dan buzzer menyala selama 500ms digitalWrite(ledRed, LOW); noTone(buzzer); // Matikan buzzer delay(500); // Tahan LED mati selama 500ms } // Mengatur LED kuning untuk berkedip 3x for (int i = 0; i < 3; i++) { digitalWrite(ledYellow, HIGH); tone(buzzer, 1500); // Bunyikan buzzer delay(500); // Tahan LED dan buzzer menyala selama 500ms digitalWrite(ledYellow, LOW); noTone(buzzer); // Matikan buzzer delay(500); // Tahan LED mati selama 500ms } // Mengatur LED hijau untuk berkedip 3x for (int i = 0; i < 3; i++) { digitalWrite(ledGreen, HIGH); tone(buzzer, 2000); // Bunyikan buzzer delay(500); // Tahan LED dan buzzer menyala selama 500ms digitalWrite(ledGreen, LOW); noTone(buzzer); // Matikan buzzer delay(500); // Tahan LED mati selama 500ms } delay(1000); // Tahan 1 detik sebelum mengulang }
@davinardianto1093 ай бұрын
// Definisi pin untuk LED dan buzzer const int ledRed = 9; const int ledYellow = 10; const int ledGreen = 11; const int buzzer = 8; // Definisi pin untuk seven segment display (contoh menggunakan common anode) const int segmentA = 2; const int segmentB = 3; const int segmentC = 4; const int segmentD = 5; const int segmentE = 6; const int segmentF = 7; const int segmentG = 12; const int digit1 = A0; // Terserah pin analog mana yang digunakan const int digit2 = A1; // Terserah pin analog mana yang digunakan void setup() { // Set pin-mode untuk LED, buzzer, dan seven segment display sebagai output pinMode(ledRed, OUTPUT); pinMode(ledYellow, OUTPUT); pinMode(ledGreen, OUTPUT); pinMode(buzzer, OUTPUT); pinMode(segmentA, OUTPUT); pinMode(segmentB, OUTPUT); pinMode(segmentC, OUTPUT); pinMode(segmentD, OUTPUT); pinMode(segmentE, OUTPUT); pinMode(segmentF, OUTPUT); pinMode(segmentG, OUTPUT); pinMode(digit1, OUTPUT); pinMode(digit2, OUTPUT); } void displayDigit(int digit) { // Kode untuk menampilkan angka di seven segment display switch (digit) { case 0: digitalWrite(segmentA, HIGH); digitalWrite(segmentB, HIGH); digitalWrite(segmentC, HIGH); digitalWrite(segmentD, HIGH); digitalWrite(segmentE, HIGH); digitalWrite(segmentF, HIGH); digitalWrite(segmentG, LOW); break; case 1: digitalWrite(segmentA, LOW); digitalWrite(segmentB, HIGH); digitalWrite(segmentC, HIGH); digitalWrite(segmentD, LOW); digitalWrite(segmentE, LOW); digitalWrite(segmentF, LOW); digitalWrite(segmentG, LOW); break; case 2: // Implementasikan untuk angka 2 break; // Implementasikan untuk angka 3, 4, 5, 6, 7, 8, 9 default: // Matikan semua segment jika tidak ada angka yang cocok digitalWrite(segmentA, LOW); digitalWrite(segmentB, LOW); digitalWrite(segmentC, LOW); digitalWrite(segmentD, LOW); digitalWrite(segmentE, LOW); digitalWrite(segmentF, LOW); digitalWrite(segmentG, LOW); break; } } void loop() { // Mengatur LED merah untuk berkedip 3x for (int i = 0; i < 3; i++) { digitalWrite(ledRed, HIGH); tone(buzzer, 1000); // Bunyikan buzzer displayDigit(8); // Tampilkan angka 8 pada seven segment delay(500); // Tahan LED dan buzzer menyala selama 500ms digitalWrite(ledRed, LOW); noTone(buzzer); // Matikan buzzer displayDigit(-1); // Matikan seven segment delay(500); // Tahan LED mati selama 500ms } // Mengatur LED kuning untuk berkedip 3x for (int i = 0; i < 3; i++) { digitalWrite(ledYellow, HIGH); tone(buzzer, 1500); // Bunyikan buzzer displayDigit(5); // Tampilkan angka 5 pada seven segment delay(500); // Tahan LED dan buzzer menyala selama 500ms digitalWrite(ledYellow, LOW); noTone(buzzer); // Matikan buzzer displayDigit(-1); // Matikan seven segment delay(500); // Tahan LED mati selama 500ms } // Mengatur LED hijau untuk berkedip 3x for (int i = 0; i < 3; i++) { digitalWrite(ledGreen, HIGH); tone(buzzer, 2000); // Bunyikan buzzer displayDigit(2); // Tampilkan angka 2 pada seven segment delay(500); // Tahan LED dan buzzer menyala selama 500ms digitalWrite(ledGreen, LOW); noTone(buzzer); // Matikan buzzer displayDigit(-1); // Matikan seven segment delay(500); // Tahan LED mati selama 500ms } delay(1000); // Tahan 1 detik sebelum mengulang }
@ran91933 ай бұрын
Why does only pin 13 work on my arudino?
@HaziqMsuiii3 ай бұрын
YOOOOOO I ACTUALLY WORKS I SUBSCRIBING!!!!!🎉🎉🎉🎉🎉🎉🎉🎉🎉🎉😮😮😮😮😮
@noahbumvr3 ай бұрын
bro you said you where gonna link the code in the desc
@vlqdus_mdd3 ай бұрын
nice vid but my arduino uno R3 ATMEGA328P (CH340G) has its 13 pin linked to the onboard LED so not the LED on the breadboard is blinking but the onboard led, of course i can just change the code to pins 12 11 and 10 and everything works. Great tutorial for me man
@xyz.55123 ай бұрын
this is very well explained. i needed breakdown for my project of "robotic arm using servo and POT" and this provided me everything i needed to know. thanks!
@LIJOYDesininja2 ай бұрын
how much code full with the bround caulour also or only colered
@harakihushbee16293 ай бұрын
#include <Servo.h> //accesses the Arduino Servo Library Servo myservo; // creates servo object to control a servo int val; // variable to read the value from the analog pin void setup() { myservo.attach(9); // ensures output to servo on pin 9 } void loop() { val= analogRead(1); val= map(val, 0, 1023, 0, 180); myservo.write(val); delay(15); // reads the value of the potentiometer from Al (value between 0 and 1023) // converts reading from potentiometer to an output value in degrees of rotation that the servo can understand // sets the servo position according to the input from the potentiometer // waits 15ms for the servo to get to set position }
@muhammadsteinberg4 ай бұрын
I highly advise that you use the vertical stabilizer screws to tap out vertical stabilizer before installing. The screws are very hard to screw in with parts assembled. High probability you will strip out screw head if you don't tap out 1st.
@maharyfekede4 ай бұрын
Thank you so much for helping me 😇👌
@Lil_chad24 ай бұрын
finaly i can finish the led cock
@adammachacek85364 ай бұрын
idk why it isnt working :(
@traeleon56663 ай бұрын
Because he gave you the wrong information. It didn’t work for me neither. I had to follow another vid.
@vlqdus_mdd3 ай бұрын
mine works, just change the code because the 13th pin on arduino uno's newer versions the pin 13 is connected to the led onboard, so just change the pins to: 12,11 and 10 and everything should work
Exactly what I needed for my project! Thank you so much! Is there any way to make the LED's fade into each other rather than blink?
@MarcoQuintana-r4p4 ай бұрын
The project works for me, Thank you very much.
@des26105 ай бұрын
Nice presentation! Exactly what I need to know. thanks.
@sherryshah-iw4bg6 ай бұрын
Its says "cant access sketch"
@jacquelinewalker63576 ай бұрын
This is why i wish i was there, my blue and green came on -went off right away and finally got the red to work and it blink off and on. so is it post to happen like this.
@AbigaelGodinez6 ай бұрын
Thank you so much for your tuturial sir ❤ we are already done with our activities this helps us very much💗
@cookiedoughplays-by1qi6 ай бұрын
kindly share the block code
@op-kr9iy7 ай бұрын
<3
@op-kr9iy7 ай бұрын
she yle pedarasto iolad geqna prowo
@TempleGuitars7 ай бұрын
Hello! Thank you for this clear tutorial! I want to ask you, is it possible to buy an arduino with more outputs, and change the code so on a chain of maybe 20 LEDs, the two outside LED's activate first, then the next two etc, until they meet in the middle, then reverse until they reach the outside pair again on loop? What would that code look like?
@MyWatchP17 ай бұрын
I am from Ghana 🇬🇭. Trying to learn Uno. I hope I am at the right place
@pusska08 ай бұрын
Hi, Awsome video. How would I Add another potentiometer to this circut? So I can control one servo from two potentiometers. I have managed to get one servo opperating with one pot but not two. thanks for any feedback provided.
@AnaPerez-bu6uu8 ай бұрын
Nice tutorial, thank you 🥰
@Panchothefatcat8 ай бұрын
I have depount cables bit what color matches the green one
@WxstedZez_8 ай бұрын
Can you do this in the small breadboard?
@harinandanaprajeesh66264 ай бұрын
yes
@tahooraahmadi14178 ай бұрын
can you write the code for this project and not using the servo library but instead use micros and millis
@RobloxDevOriginal8 ай бұрын
Very Nice! Thx
@appuedits9738 ай бұрын
There is no port option
@ilay71179 ай бұрын
IT WORKED!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! GIMME A HUG MY MAN
@alexvrenando-b7l11 ай бұрын
this is boring
@christopherchavez63111 ай бұрын
would this work for multiple LEDs? For example, I am trying to make a circuit where the LEDs spell out "I <3 U" where the I turns on, the <3 turns on, and then the U turns on. How would I make sure that each LED is connected to its respective resistor?
@mohdfaridrozali3319 Жыл бұрын
Thanks for your guide😊
@yemom1664 Жыл бұрын
its going in reverse somebody please help
@AqmolsAdudu Жыл бұрын
I like balls
@bangucedrick-ig7qw Жыл бұрын
Was a great one ❤
@andrew.k3002 Жыл бұрын
why does my servo motor just go crazy when i turn the potentiometer to the right?
@arenh8767 Жыл бұрын
Hi ah when i plug my jumper cable only 13 work ah 12 or 11 didnt turn on with the corresponding light when i put it the exact way you did it