How to Make an R/C Servo from a Wiper Motor | James Bruton

แชร์
ฝัง
  • เผยแพร่เมื่อ 3 พ.ค. 2024
  • How to make an R/C Servo from a Wiper Motor: Have you tried to buy a really high powered R/C servo and found that they are really expensive, well in this video I'll tell you how to make one out of a Wiper Motor or another Big DC Motor! Get the CAD and code from: github.com/XRobots/WiperMotor...
    ① GENIUS
    No MacArthur grant yet. But while I’m still waiting by the phone for that call, maybe you might patronise me with your Patreon-age. Or, if you’re all out of digital cash just comment on one of my hilarious Instagram pics, pop me a Tweet or generally yell in my direction.
    Patreon: / xrobots
    Instagram: / xrobotsuk
    Facebook: / xrobotsuk
    Twitter: / xrobotsuk
    Huge thanks to my patrons, without whom my standard of living would drastically decline. Like, inside out Farm Foods bag decline. Plus a very special shoutout to Aleph Objects, Inc who keep me in LulzBot 3D printers and support me via Patreon. www.lulzbot.com/
    Why not join my community, who are mostly made up of actual geniuses. There’s a Facebook group and everything: / community
    ② XROBOTS
    Former toy designer, current TH-cam maker and general robotics, electrical and mechanical engineer, I’m a fan of doing it yourself and innovation by trial and error. My channel is where I share some of my useful and not-so-useful inventions, designs and maker advice. Iron Man is my go-to cosplay, and 3D printing can solve most issues - broken bolts, missing parts, world hunger, you name it.
    XRobots is the community around my content where you can get in touch, share tips and advice, and more build FAQs, schematics and designs are also available.
    ③ MUSIC AND SFX
    The majority of the music and SFX used in my videos is from Epidemic Sound share.epidemicsound.com/xrobots
  • วิทยาศาสตร์และเทคโนโลยี

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

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

    Okay, for anyone else out there that is attempting to do this with an IBT_2 motor driver, you don't need to change the program. All you need are a few additional steps in the wiring.
    Digital pins 5&6 need to go LPWM and RPWM respectively, switching the order of these will simply invert the direction of the servo.
    Both the L_EN and R_EN pins need to pulled to a HIGH state and should be attached to +5V DC.
    Both the L_IS and R_IS pins need to pulled to a LOW state and should be attached to ground.
    VCC should also be attached to +5V and GND simply goes to ground.
    Thank you James for the code and explanation, my dreams of a robotic riding lawnmower are finally coming true.

  • @horashia495
    @horashia495 5 ปีที่แล้ว +34

    This is the best type of videos you should consider making more of thia type of videos in the future ..

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

    I was literally thinking about using a wiper motor yesterday because I need a powerful servo for a project. Didn't know where to begin. I look on your channel today and see literally the exact video that I needed uploaded at the same time I needed it. Awesome coincidence

  • @apocalypseio
    @apocalypseio 5 ปีที่แล้ว +3

    Thanks for the basic description of PID. Will peek your files. I am day dreaming of a few uses for this already.

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

    For driving a motor w/out concern for position, you can just make a resistor bridge 10k resistor from power to the analog input pin, and another 10k resistor from ground to the same analog pin. Since the resistance is always in balance, you only get movement from an input and you can adjust the code to give you nice little dead band for neutral. Seriously James, this may be the most universally useful code I've ever used. I've helped so many people and done several RC projects myself and your code is the heart/soul of every project I'm involved with.

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

    Well done! I did this 3 years ago for a Maker Faire project( RC PRS ) but didn't include PID so I will try your code. Thanks. BTW, I used an Arduino Pro Mini and an L298 with my pot connected to the shaft via laser cut gearing. I like the belt/wire setup but will be mod'ing to use contactless magnetic encoder and will probably shift to a Teensy.

  • @LordGarth6
    @LordGarth6 5 ปีที่แล้ว +3

    im glad to see ya putting ya code and cad up for most thigns now

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

    Awesome Video James! Thanks for posting. I have have several WW motors from old projects, i guess i need to order some controllers and start making some new projects!

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

    This was phenomenal James. Very informative!!

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

    Brilliant! Cheers for posting that information and code, I’ve been trying to do this for a while now after seeing HomoFacien’s video on the same subject, but for me your video is much clearer and easier to follow. I suspect I shall change it to use L298 motor driver ic, so I’ll need to set direction and send PWM to the enable instead of picking which pin to send the signal to, but that shouldn’t be too hard.

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

    Great video. Just one thing to mention, usually wiper motor have "3 wires", 2 normal (+) and GND in metal housing, so you should use case and one of wire, changing wire you can change speed of rotation but for long use better is to use slower one.

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

    loved this vid, it expanded my knowledge

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

    Good idea James, thanks 👍

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

    Thanks a lot for this video James, it really helped me in making my own brushless servo

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

    Thanks for posting the files and explaining all of that!👍🏻

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

    love this! Hope you create more vids like this.
    Great now to watch it again and then read the code again.

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

      thanks, I will be when I know what I'm talking about ;-)

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

    Gotta say I am and old maker and really enjoy your channel your ability to take something so complex like this is and give a simple to follow path is really a gift
    On high speed PLC work we use hardware based inputs that do not depend on scan time to process the task

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

      thanks I did a bit of PLC in college, but that was in the 90s!

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

      James Bruton
      We our very restricted in what we can use as everything we we build can mangle the operator if it malfunctions and have to use dedicated safety relays and go through a pretty intense safety review

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

      cal29seafever.blogspot.com/
      Enjoy my most epic 20 month build

  • @MakunaRGBIC
    @MakunaRGBIC 5 ปีที่แล้ว +3

    make sure to use unsigned for all your timing variables so that when millis/micros rolls over, the math still works correctly. And yes, (current - last >= interval) is safe and correct to use with unsigned variables and will correctly handle rollover of timing functions.

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

    nice job, i'm happy that some one still use rc remotes :o)

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

    Always enjoy and like you vids. If you watch any vid it's the least you can do for all the time N effort the creator puts in. It's just a bonus I enjoy yours lol. TkEZ»UK

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

    Very helpful. Thankyou.

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

    I love this kind of video ! I learn so much thanks !

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

    very good ider , you can use this power full servo bulid any robot or mecah , this amazing

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

    Great video! This would work great for a linear actuator that has a pot like the ones on servo city.

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

    Nice one Jim.

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

    Thank you! It worked perfect for me!!!

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

    Great stuff, love it!

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

    PID Tuning is something we have to dael with verry often in the fpv drone hobby. Sometimes weather force you to lower P because of the change of air density

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

    very useful and inspiring

  • @ck-fz8zy
    @ck-fz8zy ปีที่แล้ว

    So useful, these motors are everywhere

  • @AbcDef-hl2ic
    @AbcDef-hl2ic 5 ปีที่แล้ว

    What a great tuto!

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

    Excellent. Thanks

  • @jyotishmanbharali3757
    @jyotishmanbharali3757 5 ปีที่แล้ว +56

    These are the kind of videos you should make

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

      need a subchannel !

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

      yeah but isis used these videos to make remote controlled suicide car bomb 😂

  • @johnsmith-oy9kx
    @johnsmith-oy9kx 5 ปีที่แล้ว

    That was awesome!

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

    Interesting project. I am looking to do something similar and need two turns at the output so need to use a multiturn pot or use pulleys with a ratio and standard pot. Would like to see more info on the pulley arrangement to help me build something similar. Have searched a bit and haven't found much on similar pulley system. Maybe not using the right search terms...

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

    Awesome video will definitely help me out big time!!!

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

    James, this is very usefull drive system for your dog robot, it is strong, fast and compact, even you can find a smaller wiper motors with the same torque.
    Think about it.

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

    The pulseIn is only giving you +/- 1us jitter verses 4us in the "improved" code. The pulseIn has an optional 3rd value of timeout. It defaults to 1 second (hence the one second +/- 5us steps in your jitter graph) and should be set closer to the 20ms timing of the RC PWM signals. Try pwm = pulseIn(8, HIGH, 30000); Timeout is in microseconds.

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

    I liked it to see the code with your explanation!
    Can you do a video where you make a frequency control with arduino? With a recrifier and capacitor and an arduino PWM output wich approaches a sine wave?

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

    Love this video, James! Informative, useful to a wide audience, scalable :D You could probably fit your code on an ATtiny, spin out some custom PCBs and sell them :P

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

    i need 2 do this with learning as little code as possible lol love it

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

    You could also change the gear ratio between the motor and the potentiometer to get more than 180°, or less than 180° but with better precision 😊

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

    Very interesting I enjoyed that

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

    That's cool
    And you can simply change the servo's range by changing the pully sizes

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

    this video is the missing information i was needing to continue on a project!!! but instead of mapping a remote control, I want to call 8 different position while adding effect like adding turn to reach a position !

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

    This is what exactly I was looking for to build a 2 DOF platform for my grand kids.

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

    Nice, any thoughts on designing a direct pot feedback as I imagine the pulley setup could slip and fall or at least lose assignment?

  • @patprop74
    @patprop74 5 ปีที่แล้ว +3

    Perhaps, Same style video, only difference , use those cheap 433MHz transmit and receive rf modules sold on ebay. i'm sure many would appreciate that.

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

    You have build the transformers ,,,,great job James !!!

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

    Excellent I love it

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

    Really nice video! You could do more video's like these, arduino explaining video's. You could even grab your exisiting projects and show how they work. Like the arm of Ultron :)

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

      thanks, I'm intending to

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

    And of course if you change your pulley ratio you could make it go a lot more than 10 turns. Also put some sanity check code on the pot analogue value so the motor can't go any further than the endstops and break it.

  • @yoashuain1
    @yoashuain1 6 วันที่ผ่านมา

    Thanks tons.😊

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

    5:00 An even better way to read the pulse in is to use the TC1 input capture unit to measure the pulse length in hardware, so if you have e.g. some serial code that blocks interrupts for a few microseconds and the interrupt is called late, you still have the exact time from the input edge recorded in hardware.

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

      I know im randomly asking but does any of you know of a tool to get back into an instagram account?
      I was stupid lost my password. I would appreciate any help you can give me!

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

      @Malik Mark Instablaster :)

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

      @Zaiden Ignacio i really appreciate your reply. I found the site thru google and Im trying it out now.
      Takes a while so I will reply here later with my results.

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

      @Zaiden Ignacio it did the trick and I finally got access to my account again. I'm so happy:D
      Thanks so much, you really help me out !

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

      @Malik Mark You are welcome :D

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

    Awesome video. There's going to be a run on wiper motors at the auto boneyards........

  • @22Tech
    @22Tech 4 ปีที่แล้ว

    awesome thank you! i'm trying to build a big servo to turn the steering of a go kart. would a big brushed motor do?

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

    Hey James, great to see you are also building big servos. I don't have RC controllers so I've gone digital with I2C to control the position and provide information back to the host

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

    If not done. That's pretty funny. Thanks for sharing this with us. :)

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

    parabens james pelo artigo amei todos eles, será que eu poderia usar o module nrf24l01?
    voce poderia me dar uma dica? i live in brazil obrigado

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

    how do you adjust it to where you want can you get it to do a startup check for center maybe adding end switches

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

    Thanks a lot

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

    Hello James it is me again , I can't say how I feel happy when I get notifications of your videos . I've got one question and I hope you answer in your new video or in the comments.can I make a big droid by putting a remote control truck in a ball and use magnets to attach the head?

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

    Thnk you verry much that you have made this video, it will help me a lot in the future. Could you do a follow up in the future where you show how to build a endless (360°) Servo that you could use for a homebulid cnc?

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

      well with an encoder and an end switch - check out my openDog series

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

      James Bruton Thanks

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

    James great video but can i make a suggestion to improve things and that would be physically attach the pot to motor output shaft because if you lose the pulley/ belt when using pid to control the position, the motor could run away if it loses the feedback. Just a suggestion again great video

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

      yes you could do that

  • @MichaelRHead-zv2zf
    @MichaelRHead-zv2zf 2 ปีที่แล้ว

    would you get better control using a rotary encoder in place of a pot on the motor?

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

    Hi James thank you for your video. I try to wire circuit as you but control by adruino. I use Adruino it self to power both driver and servo and the motor doesnt work. Is it because the voltage isnt enough

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

    Using this library is it possible to have the Pk, IK, and Dk connected to pots for out of program tuning?

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

    exciting project. i might need for my rc excavator👍

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

    Does anyone knows if there is a way to reduce the motor whining noise? Any suggestions would be awesome! Thanks for the great video btw.

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

    Hi James could you use the new pi pico to do the same with coding ?

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

    Cool

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

    Would this setup work with a brushless motor and ESC? :)

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

    Mario Kart Home Circuit! You legend! ;)

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

    This is great, if only i could understand it.

  • @user-or6xf2pq4o
    @user-or6xf2pq4o 4 ปีที่แล้ว

    you are gold

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

    At 13:12 if the output1 is 0 you will no write the value to pmw. OK that will no be problematic for the PID control, but still it should be correct on the code, by writing just "else" instead of "else if(output1

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

    Have you ever made (or considered making) a near to complete beginner's intro to robot building? Even if you didn't go into the actual "making" of the robot, just discussing the terms and basic features? I'm rather new myself, I only just got interested a few years ago and being still fairly young (high school) would really appreciate it. Thank you for any possible consideration!

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

    Cool project! I’m trying to do a similar one with the same parts you have used except I want to control it with a servo tester instead of an RC controller. I tried hooking it up the same way and used the code you had on GitHub. It just spins. Could you help me figure out what I’m missing? Thanks!

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

    please provide a code for controlling the speed of servo sweep as i increase the throttle stick.

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

    I love this, why your GITHUB isn't on fire w/downloads is puzzling me. Not only did your code work flawlessly, you can bring the +5V to A0 2500K ohm resistors & another 2500K from GND to A0 and you have instant fwd/reverse or winch mode as some of the kids call it.
    Question, there is a .hex file that says 8channels but how do you edit the PID settings? I checked the readme file but to my knowledge you can't edit that?

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

    Wow

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

    would the 3d printed parts work on all windshield wiper motors, or does it have to be a certain kind?

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

    Great video. I am making one myself.
    What ohm rating POT do I need to get?

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

      Just figured out. When using Arduino it does not really matter
      What ohm rating it is.

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

    Hello, i follow your video step by step . Motor is turning right and left with the movment of the controler but the zero point is not the same every time . when there is no movment from the controler the pot is stoping a little bit left or right than the zero point. any help? thanks

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

    How many PWM signals can I read with this code from the R / C console And just which arduino pinout can I use? Thanks to this code, I finally got to R / C to change the speed and direction of the stepper motor!

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

    Doesn’t the “I” value correct the error when under load? “I” or integral increases with time gradually with steady state error until saturation or reaching the target set point. “D” is the derivative which is effectively the rate it approaches the set point, can be used to ensure its not heading towards the set point too quickly.

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

    Can i use it for multiple motors?

  • @supercomputer0448
    @supercomputer0448 5 ปีที่แล้ว +9

    1:38am here but ain't no rest for the wicked

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

      Cmon you got work tommorow? Money dont grow on trees

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

      Sniper Sharp107 money is made from plant, and that grows on its own.
      So does the narcissism as some people keep believing that the banker who put the narcissistic statement on the those always only paper god$ that people dedicate entire lives chasing after. Some are willing to put carbon atoms into the atmosphere in the process of doing so. And sadly roughly 12 million people per year die from pollution.
      What else is sad, is while clobbering the planets ecosystem, they like to pretend that those 12 million went on to experience an afterlife. Creepy isn't it?
      #inSCIENCEwetrust

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

      True Tech boi it's 4:05am here I don't got the brain power to comprehend what your saying I'm gonna go eat some cereal

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

      supercomputer2004 some food for though then, perhaps after you wake up. You enjoy your Rice Crispies.

  • @JamesCoyle95
    @JamesCoyle95 5 ปีที่แล้ว +9

    I really wish you would use #define to define some constant values... You could give each pin an actual, meaningful name and then if you need to change what pin it's attached to you can just change the one #define. You really should have one for the 255 values too as they are all related. It's a simple thing that makes your code more readable and maintainable.

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

      Either that or static const‘s, which effectively do the same thing but preserve type information.

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

      The underlying arduino compiler definitely supports them, but I will admit the IDE does a poor job of pointing such things out. It wasn't until I switched to using the VisualMicro plugin for VisualStudio that I realised the arduino compiler supports a large amount of C++, including templates.

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

      Angry Rambo Show they aren't really complex to understand though and would actually help beginners to better understand what the code is doing as you are replacing random pin numbers and constants with a meaningful English representation.
      digitalRead(POTENTIOMETER); is much easier to understand than digitalRead(1) for example.

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

      James Coyle True, but at the same time you're adding a layer of indirection between the code and the hardware, and now you have to look in two places to determine what pin is connected to which code.
      Makes for more readable code, sure, but actually obfuscates the hardware/software interface.
      Say you plug the potentiometer into a different pin (accidentally, or on purpose). Now you'll have code that states it interacts with the potentiometer, but actually doesn't.
      (not even the worst case scenario).
      If your project is pure code, yes. Absolutely.
      But you are manipulating hardware and software in parallel and could change either arbitrarily and now you have a label in the middle that may or may not be meaningful, depending on the hardware design.

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

      KuraIthys You only have to look at where your defines are (the top of the code) and change one value rather than having to update several uses of that pin that could be anywhere in your code. Your points don't make sense.
      You are defining in one place that pin 1 is the potentiometer so then you attach the pot to pin 1 on the Arduino. If you attach it to a different pin you then update your define statement to point to that new pin and all references to that pin in your program are updated to reflect that you changed which pin you're connecting it to.

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

    hi james, awesome video , multi-servo support this code ,how do we use multiple servo, please write a sample code

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

    One could also take the circuit out of a normal rc servo, wire that into the wiper motor with a new pot, and that would prevent needing an Arduino or doing any coding. Of course you would still need the motor driver to handle the current. Just a thought.

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

      ...and you wouldn't be able to tune the PID for he bigger motor and bigger load.

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

      True. Good point. I am curious though to try it and see how well, or how bad, it works. So, I just ordered the motor driver on eBay (I have a few normal servos and a wiper motor already), so I’ll try it and see. When I do, I’ll post a video on my channel and show the result. It may be a few weeks cause the driver is coming from China. I’ll let you know when I post the video.

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

      So I just posted a video showing what happens when you use the circuit from a normal servo to convert a wiper motor. Check it out and see what you think. It works, but.......

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

    Hi James the wiper motor i am using for to-fro rotation is moving in small amounts in a direction ...why so?

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

    u may know...i have a full metal 47cc rc 1/4 scale, custom made, it has an h-bridge/servo/wiper motor setup its all insulated from frame, h-bridge runs 12v steering works perfectly with engine off, when i try start it sometimes it instantly steers 1 way and volts drop and it kills signal between rx/tx till i switch rx off n bk on...is this cos i never used ur method?? or is it gas engine related (engine is hard mounted to frame) i do have an arduino here

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

    PID is everywhere!

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

    nice tutorial but can u share the wiring diagram for ibt2 dual h bridge

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

    Is there a way to put a rotation limit in the code? My motor keeps over rotating and then goes round the horn to get back to center on the pot? (520) . Thanks for this video it has helped me to want to do more arduino projects ! You rock!

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

      Hi Did u find an answer to the rotation limit code

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

    can someone tell me can i use digital read instead of analog read from the potentiometer because i want to opearate the motor using digital signals coming from second arduino

  • @user-pt2vd7hk3z
    @user-pt2vd7hk3z ปีที่แล้ว +1

    Hello, help me set up the program, since in the absence of a signal at the servo input, the motor rotates

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

    Hey James. Are there any way to contact you ? I need to change the rc control to a steeringwheel control with a POT in the end of the steeringcolum. its all made but i'm not sure how to change the code ? Should the PWM be set for A2 input with range of 0,1023 ? Etc. Best regards Herluf

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

    hi James, I'm using the code linked but the first "include" line fails. Only very new to the Arduino. Is there an updated link please? thanks