I love how I am learning about the components but also how to be clever with a breadboard. Great vid. Please keep making more.
@akkirinnovatetechnologies14384 жыл бұрын
Hi , i also create some content about electronic..take a look and subscribe ...thanks
@xyz.55125 ай бұрын
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!
@LIJOYDesininja4 ай бұрын
how much code full with the bround caulour also or only colered
@wwabete20093 жыл бұрын
I have just started Arduino and your tutorial was just exceptional!! Thank you and keep on doing the good job.
@TimRoot-dotcom8 жыл бұрын
excellent. you have a great teaching style. im hoping you make more arduino tutorials!
@DroneHow8 жыл бұрын
+Tim Root Thanks, Tim. Stayed tuned for more such tutorials
@junkstudios87748 жыл бұрын
I should accept in that
@chintan9657 жыл бұрын
Drone How I don't know why my servo keeps shaking and acting weird. Can you please help me out
@oscarking4547 жыл бұрын
EONGTX GAMER what is your delay set at ?
@chinchin10797 жыл бұрын
Servo_Pot_Control:8: error: redefinition of 'void setup()' void setup() ^ Blink:18: error: 'void setup()' previously defined here void setup() { ^ C:\Users\Kevin\Desktop\arduino-nightly\examples\01.Basics\Blink\Servo_Pot_Control.ino: In function 'void loop()': Servo_Pot_Control:13: error: redefinition of 'void loop()' void loop() ^ Blink:24: error: 'void loop()' previously defined here void loop() { ^ exit status 1 redefinition of 'void setup()' This report would have more information with "Show verbose output during compilation" option enabled in File -> Preferences.
@MadGod-ju5gr6 жыл бұрын
The best totural i have ever seen this helped in my science project with an A+
@rajoak30978 жыл бұрын
Hey really nice video, initially it was not working so I changed the theta to zero and now it's working well!
@corado99235 жыл бұрын
It's not working for me rn, can you explain?
@cheskaabarro46585 жыл бұрын
More tutorials please. I'm new to arduino and your video is really helping me. You are great in teaching! More tutorial pleaseeeee
@marcusfunchar70607 жыл бұрын
Please do more arduino videos they are so clear to understand even the code is easy to get. I just got my arduino starter kit today and I know nothings about arduinos but your videos helped me start playing with it. Thanks so much
@HamidSBaig7 жыл бұрын
Nice explanation for an Arduino beginner like me. Thanks.
@harakihushbee16295 ай бұрын
#include //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 }
@lucasolivo278512 күн бұрын
THANK YOU
@xx8033 жыл бұрын
code #include //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); // reads the value of the potentiometer from A1 (value between 0 and 1023) val = map(val, 0, 1023, 0, 180); // converts reading from potentiometer to an output value in degrees of rotation that the servo can understand myservo.write(val); // sets the servo position according to the input from the potentiometer delay(15); // waits 15ms for the servo to get to set position }
@daydreamer9972 жыл бұрын
What if i have to use 4 servos at once
@bridgetteh83727 жыл бұрын
Thank you! I really hope you do more arduino tutorials! Yours are the easiest to follow!
@DroneHow7 жыл бұрын
+Bridgette H Thank you very much.
@MrYeshwanthln7 жыл бұрын
Presentation is perfect ! very clear and to the point (Y)
@DroneHow7 жыл бұрын
Thank you!
@darionmackey50903 ай бұрын
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.
@corbintriano61488 жыл бұрын
Excellent video. I found it holding my interest while being able to easily follow along=)
@DroneHow8 жыл бұрын
+Corbin Triano Thanks for the comment. Glad it was helpful. Please subscribe for more how-to videos.
@grimr276 жыл бұрын
thank you for this tutorial. You do a great job and are easy to follow along with. hope to see more on the arduino.
@FluorescentApe7 жыл бұрын
Professional video! Thanks alot. Sadly i've broken my old servo, but it's nice to watch some tutorials for the future!
@rajdeepsumman19242 жыл бұрын
You should make more arduino tutorials. They are very helpful.
@brutalblends9284 жыл бұрын
dude thanks, your a blessing ..
@s_c_r_e_w_b_a_l_l Жыл бұрын
Excellent tutorial, thank you for taking the time to share with us, very much appreciated.
@realtrickybilly7 жыл бұрын
Awesome, it works. Please make more Arduino tutorials
@DroneHow7 жыл бұрын
Will do!
@des26107 ай бұрын
Nice presentation! Exactly what I need to know. thanks.
@patelchiraag5 жыл бұрын
#include Servo myservo; // create servo object to control a servo int potpin = 0; // analog pin used to connect the potentiometer int val; // variable to read the value from the analog pin void setup() { myservo.attach(9); // attaches the servo on pin 9 to the servo object } void loop() { val = analogRead(potpin); // reads the value of the potentiometer (value between 0 and 1023) myservo.write(val); // sets the servo position according to the scaled value delay(15); // waits for the servo to get there } What will be the output of above code? a. read the potentiometr value on A0 only b. read the potentiometr value on A0 and writes to servo controller in a loop after a delay of 15 miliseconds c.write value to servo motor only d. Non of above
@astridtrent5 жыл бұрын
it would be A. Because you are not converting the analog value into a value that the servo can read.
@TrungTran-hw7ws7 жыл бұрын
your sound feel so good to me
@jflow_075 жыл бұрын
This was very clear. Thank you!
@henkdev14766 жыл бұрын
This tutorial was amazing i subbed
@ahmedhassan-vg6re7 жыл бұрын
Thank you for this beautiful explanation
@wouterscott80166 жыл бұрын
Thank you very much for the video. I would love to see some more. Are you going to continue making these tutorials?
@gunzi22695 жыл бұрын
Thank you for this well explained tutorial!!!
@toxicbourtzis90917 жыл бұрын
Can you please make a same tutorial but with a push button!!!
@manolotrlolo7 жыл бұрын
Is there a way to directly input data from a PC to an arduino? As an example, if I'd want to turn the servo by 45 degrees, could I simply type it in my PC and send it directly to the Arduino a.k.a the servo?
@sarahal-shehri64942 жыл бұрын
Such amazing tutorial !!! THANK YOU SO MUCH
@5xgreentv335 жыл бұрын
My servo has a mine of its own I can’t control it by the potentiometer it goes back and forward really fast plz help
@rushikeshthorat89024 жыл бұрын
Increase the delay
@antobs36806 жыл бұрын
Great explanation. Thank you for making awesome videos
@SneekyFab2 жыл бұрын
I just tried running this code with an external power supply made from AA batteries so that I could run more than one servo, but the servo keeps shaking back and forth randomly when I do so. Is there a different way you need to write the code to use 5V external rather than the 5V on the arduino?
@pusska09 ай бұрын
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.
@alishawasthi88375 жыл бұрын
Great tutorial.🔥🔥🔥
@chickenwings794 жыл бұрын
Please make a 2020 video this will be amazing
@johnvincentarabejo12946 жыл бұрын
Thank you for the "any potentiometer you want" ^__^ other vid uses only 10k ohms
@dipeshbhushan39297 жыл бұрын
sir in my case my servo keeps on rotating please help me sir
@amishashethia49026 жыл бұрын
Please , please upload some more arduino uno tutorials and you are the best
@vedansh296 жыл бұрын
Very well explained
@diamony1235 жыл бұрын
great tutorial, any idea how you would use a pot to display 10 images on a tft display as you turn the pot to select back and forth the images.
@who-is8cu3 жыл бұрын
Can I do this twice on the same board, but on different sides
@AO-lq9dq3 жыл бұрын
great content thank you so much
@the_clockwork_jackass68977 жыл бұрын
The 5v connection in 1:34 is tomato colored And there's a glimpse into what my head is like
@Mchorcha_ta2 жыл бұрын
my servo just goes nuts
@mohdfaridrozali3319 Жыл бұрын
Thanks for your guide😊
@bigbhai27213 жыл бұрын
Nice video.
@adityarajvanshi14 жыл бұрын
It's great Drone How
@syuesalim69334 жыл бұрын
wow it does work! BUT why when i use batery it work like SLOW
@pokeethan Жыл бұрын
Really helpful
@paulocastro92775 жыл бұрын
Hi!!! Please, can I include a position readout on a OLED display returning the information of the servo in degrees??? Thanks so much and at last, thanks too for the great tutorial!!! Regards!!!
@qwertyproductions41096 жыл бұрын
thanks
@madhukeshnp6 жыл бұрын
Please add a push button to rest the position of the servo to Home position. That is the pos= 0;
@abuhanifazulkafli16835 жыл бұрын
thanks. this help me alot.. but.. can this potentiometer control the motor from 0 to 360 degrees??
@x-67904 жыл бұрын
From where you purchased all components.?
@UltraBigChungus2 жыл бұрын
i have this problem where as soon as my servo reaches 180 it keeps going around in circles I need a fix..
@ethanschwall68537 жыл бұрын
I have a smaller breadboard with only 30 rows, could I put the potentiometer between row 25 and 30?
@tahooraahmadi141710 ай бұрын
can you write the code for this project and not using the servo library but instead use micros and millis
@sergecampeau28447 жыл бұрын
I don't understand the link between your 180 value and the servo. The servo does not care about the angle, it is just looking for the pulse width from 1 to 2 mS. Right?
@ХамудБатуль7 жыл бұрын
Yeah .. you're right ..
@joryaock3 жыл бұрын
Can I use any potentiometer or are there certain ones that are compatible with an Arduino?
@jamesking56654 жыл бұрын
what progrmaming changes are required to power two servos, with identical motion?
@Limaokinzoks4 жыл бұрын
i wanna ask can i make the servo rotate more than 180 i mean like full rotation 360 degrees or no??
@jacktan93364 жыл бұрын
can i ask are there any application of this in any real world scenario?
@RMXSteel2 ай бұрын
how many ohm is the potentiometer, i m gonna usa a 25kg servo
@elbertmoria92996 жыл бұрын
Can I use a 360 continuos servo and continuos potentiometer?
@CarbonAnimationProductions3 жыл бұрын
mine is just rotating back n forth instead of going right or left
@Deltagamerz3 жыл бұрын
Yes same now it's my servo isn't rotating
@CarbonAnimationProductions3 жыл бұрын
@@Deltagamerz i figured it out, you have to connect the terminals of the poteniometer with the rest of the wiring on the breadboard. he must have edited it out of his video or something but thats what fixed mine
@Deltagamerz3 жыл бұрын
@@CarbonAnimationProductions please explain 😭
@CarbonAnimationProductions3 жыл бұрын
@@Deltagamerz lol okay so where the wires are at the end of the breadboard, you need to connect the poteniometer's positive and negative over there so they all share power
@Deltagamerz3 жыл бұрын
@@CarbonAnimationProductions thanks but i figured out it at 12:30 am in morning
@tomjarosz2 жыл бұрын
All awesome
@grahamtech7 жыл бұрын
what about external power source?
@newtonsingh21887 жыл бұрын
can you please explain how to make this simple circuit wireless
@minhtructran63216 жыл бұрын
A weird ques is that =]]] The flat belwlow those stuffs, how can i get one the same.
@parasyadav77424 жыл бұрын
Bro plzz tell how to make connections for 4 servo
@brandonholtz53097 жыл бұрын
i have the SG90 servo and it works but not fully. it feels like it's spazzing out
@foxxy25837 жыл бұрын
Brandon Holtz same
@RalphV7 жыл бұрын
My potentiometer is weird, I cant find it online. It came with the elegoo beginner kit, it has 3 pins but two in front one in back middle. Theres no serial number for me to look up, only "10k".
@DroneHow7 жыл бұрын
+Ralphie Vigg It can be replaced with any 10k potentiometer
@visionaryrobotics40655 жыл бұрын
how many servos can i connect to my arduino until i need a different power supply?
@patriksladcik33477 жыл бұрын
Theoretically could you have connected for instance 4 servos and 4 potentiometers?
@DroneHow7 жыл бұрын
Yes, I don't see why not.
@joakimjocka80226 жыл бұрын
it works
@adityarajvanshi14 жыл бұрын
I have seen all video
@nickdesert73046 жыл бұрын
Thanks
@Rocky-cj2gz Жыл бұрын
can we do this with mirco servo?
@dingdong18133 ай бұрын
tried adding include servo.h and it still said its not in my directory
@andrew.k3002 Жыл бұрын
why does my servo motor just go crazy when i turn the potentiometer to the right?
@मनदर्पण6 жыл бұрын
big thumbs up 👍👍👍👍
@11.manish84 жыл бұрын
Nice so much
@11.manish84 жыл бұрын
Wow
@localcrisis Жыл бұрын
@@11.manish8 negative rizz
@tanveersohail10895 жыл бұрын
I am searching for this table cover.... Can anyone help to by saying the name of the cover of table
@bendemanish14466 жыл бұрын
Please make video on or command I mean this think or that think by servo and potentio meter
@argentknight75574 жыл бұрын
Thanks Senpai
@tayyabmahboob24648 жыл бұрын
nice video.......
@DroneHow8 жыл бұрын
+tayyab mahboob Thank you! Please subscribe
@gopigupta66485 жыл бұрын
Hello I tried with 10k potentiometer and it’s not working
@dhruvmistry66235 жыл бұрын
what to do if i had 2 servo. can you show me circuit diagram ?
@krisvalencio7 жыл бұрын
How about controling 2 servo with 1 potentiometer?
@bessalf8 жыл бұрын
Hi, great tutorial.. thank you!! I wanted to do an electronic airplane trim for my simulator. I have purchased a trim wheel on ebay and I will connect it to the simulator/computer. My idea is that when I use the trim on the yoke, the servo control turns the trim wheels. Having that I have a few questions: 1) Is it okay to turn the servo manually? 2) Do you think this servo is strong enough to turn a airplane trim wheel? 3) Using your program.. can it read the input from the pc rather than the potentiometer with an small adjustment? Thanks,
@DroneHow8 жыл бұрын
+Filipe Bessa Now when you say simulator, what kind of simulator are you specifically referring to and what size aircraft are you looking into?
@bessalf8 жыл бұрын
+Drone How I'm bulding a simulator for a Piper Seneca V! I've bought two trim wheels on ebay! My idea is to control these two wheels electronically using the servos when I activate it through the yoke, but in some ocasions I would turn these wheels manually! The mechanic turn will be translated, visa reduction gears, to a rotary potentiometer, which I can then read on the simulator software!
@DroneHow8 жыл бұрын
+Filipe Bessa I would first recommend doing a torque reading when manually turning the wheels. Once you have the torque reading, I would find a servo that can handle at least twice the torque required. Nothing in the code or arduino would change. If the servo has a higher current rating, you'll need to power the servo directly, so as to prevent overloading the arduino.
@DroneHow8 жыл бұрын
+Filipe Bessa You can certainly turn the servos manually, provided there is no power to the servo when turning it. Are you looking to drive the servo through more than 180 degrees of rotation?
@bessalf8 жыл бұрын
+Drone How thanks for replying! I think the wheels are not that heavy to turn, so probably the servo you used should be able to turn it, but I can go stronger if needed! The rotation will depend on the reduction gears! The servo should turn at least the same as the rotary potentiometer in your video! I've seen a couple of videos on how to hack a servo for continuous rotation if I need a greater turn!
@yudiramos28054 жыл бұрын
hello, i have a question. If i wanted to add more servos to my code how could it be done? thanks
@vojtechslavik8262 Жыл бұрын
I did it, exactly u just have to define more servos and add another integers for potentiometr(if u want to use more of them)
@giroadster6 жыл бұрын
I'm confused, you connected the breadboard to the Arduino 3.3v supply but connecting the pot to the breadboard, you refer to it as the 5v supply. Is there something I'm not getting here?
@ecsciguy796 жыл бұрын
I think that the angle of the camera makes it look like he connected to the 3.3v pin, but actually it was the 5v pin.
@giroadster6 жыл бұрын
okay great, thanks!
@rafaesteves94 жыл бұрын
My servo rotating to the left and dont move more... Please help me
@sergecampeau28447 жыл бұрын
What is this programming language? Is it complicated to learn? Would it be possible to set a more complex rule with look-up table?
@Charlie-wu6bm7 жыл бұрын
Serge Campeau the programming language is based off java so is pretty easy to learn. it has been simplified with modules which does most of the work for you.
@_.ah74 жыл бұрын
im using a 9g servo and 10kohm potentiometer but doesn't work at all all the wiring is done just like u told