Control a Stepper Motor using an IR Remote and Arduino UNO - Tutorial

แชร์
ฝัง
  • เผยแพร่เมื่อ 21 ม.ค. 2015
  • Let's learn how to connect a Stepper motor to an Arduino and control it with an Infrared Remote Control.
    To get the schematic, libraries and the sketch we used please check out our tutorials page at : brainy-bits.com/tutorials/
    Check out the Tutorial on using the IR Remote Control here :
    • Use Infrared sensor & ...
  • วิทยาศาสตร์และเทคโนโลยี

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

  • @Dancopymus
    @Dancopymus 7 ปีที่แล้ว +6

    Good tutorial! it helped me but I would like to be using the same circuit to, say: pressing the UP button the motor turns forward, releasing the UP button the motor stops. Same thing with the DOWN button.
    Thank you

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

    I enjoined watching your videos, I like their simplicity.
    Thank you

    • @BrainybitsCanada
      @BrainybitsCanada  8 ปีที่แล้ว

      +Barak Aviv Thanks for the comment Barak and thank you for watching.

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

    Any idea which line of the sketch you change for continuous rotation?

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

    Do you have the link to where I can order the stepper motor and IR remote?

  • @dr.aungkhinephyoe3080
    @dr.aungkhinephyoe3080 6 ปีที่แล้ว

    Thanks for this tutorial. What about left and right button of the IR remote? Is it possible to command the motor to run one clockwise and one counter clockwise when left button is pressed and when right button is pressed 3 clockwise turns followed by 3 counter-clockwise turns?

  • @georges8408
    @georges8408 7 ปีที่แล้ว

    nice!.. can you control speed or/and positiom with this remote keyboard ? for example if you push "continuesly" the "UP" button to increase the speed and vice versa if you push the "down" button ?

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

    great video will try to copy just for fun
    Just asking did you press stop on the rotation .Just asking as im thinking of using this to have a drawer open and close via remote .To rely on a user to stop at the correct point every time would not be smart.

  • @jamesessex3554
    @jamesessex3554 8 ปีที่แล้ว

    hello brainy bits i have all the hard ware and have downloaded the code onto the arduino fine but when i turn on the arduino the ir sensor is solid red and by stepper motor with no light at all i have checked with stepper motor only code to see if my stepper motor was the problem but worked fine do you have any suggestions

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

    Hi please help me if I want more revolution what changes should I do in code

  • @matt2975
    @matt2975 9 ปีที่แล้ว

    Thanks for making this. Great tutorial and great explanation.

    • @BrainybitsCanada
      @BrainybitsCanada  8 ปีที่แล้ว

      +Matt Smith You are welcome and thank you for watching!

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

    sir is it possible to run motor at its highest speed with same code , if yes please do tell what changes to be made

  • @dr.aungkhinephyoe3080
    @dr.aungkhinephyoe3080 6 ปีที่แล้ว

    Is it possible to create codes for when pressing the number ,1, 2, 3 ect.., can you speed up and speed down the motor? Thanks

  • @bobjoe4290
    @bobjoe4290 8 ปีที่แล้ว

    Do we need the power supply what you put on your bread bord

  • @antunjankovic3697
    @antunjankovic3697 7 ปีที่แล้ว

    i dont know which file you use for the stepper code, i downloaded the zip file for the codes. but i don't know which IR file to use. can you please show me which one to use.

  • @arduinouygulamalar8065
    @arduinouygulamalar8065 6 ปีที่แล้ว

    Great applications. Thanks for sharing..

  • @user-wm3dn5bc9g
    @user-wm3dn5bc9g 3 ปีที่แล้ว

    hey and thanks a lot, how can i what are the numbers for each button ?
    i have a diffrent remote

  • @SunderwolfIM
    @SunderwolfIM 7 ปีที่แล้ว

    can i use a stepper driver board like this to control hard disk drive motor
    if yes where can i get a board like this

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

    Great Video!! One question: Is there any way to use this project without the breadboard power supply??

  • @practicetennisbyjaeshin3231
    @practicetennisbyjaeshin3231 7 ปีที่แล้ว

    Can the steps be controlled by 10 degree turns per button press??

  • @Prompt24
    @Prompt24 6 ปีที่แล้ว

    P;ease share the info about the track you use in the begining of the video

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

    thanks for the video i have one question please, i want to know the other buttons code in the remote control how to know ? i want to add extra 4 buttons but i don't know since its in hexadecimal :(

  • @joshcincotta1837
    @joshcincotta1837 7 ปีที่แล้ว

    I am trying to make an little devise that will move a servo with a infrared controller, and well I am having a large amount of trouble trying to convert this code into servo controlling code. if you have any tips please let me know. I am trying to program this all on my arduino mini. P.s the little device will be a cool light switch flicker.

  • @Botan5050
    @Botan5050 8 ปีที่แล้ว

    I have a question, I could have the same result as your but by using Samsung Remote Control. My question is that I want to have only 2 moves. I do not want to have a full cycle. I want to only have 90 Degrees from up then down and no more but whenever I use your code , the revolution does not stop. I linked my motor stepper inside a box , so that I cannot have more than 2 steps otherwise , the Stepper motor brakes the box or I lose the motor stepper itself. Thanks a lot for your help ...

  • @rethonn
    @rethonn 7 ปีที่แล้ว

    Thanks for the tutorial! Im a complete beginner I started looking into this as I was looking to make a remote controlled display turntable Im wondering can you set it so you can do partial rotation instead of a full rotation per button press? Im guessing its just reducing the steps to take under the up & down button presses.

    • @rethonn
      @rethonn 7 ปีที่แล้ว

      ok I've managed to do partial rotations but now im stuck on getting it to do continuous rotation any chance you could point me in the right direction?

  • @airdronez4hire593
    @airdronez4hire593 7 ปีที่แล้ว

    why did you use the up and down button instead left or right?

  • @akshaydasm.k9388
    @akshaydasm.k9388 7 ปีที่แล้ว

    is it possible to rotate the motor only when the button is kept pressed and stops as soon as we release the button?!

  • @BkpBRM
    @BkpBRM 8 ปีที่แล้ว

    Hello, thanks for the great tutorials, they are easy to understand.
    I was wondering one thing, on that breadboard power supply, can I input 9 volts into the USB port instead of using the round connector ? I'm about to order one and I'm not sure if the power supply I have will do fine

    • @BrainybitsCanada
      @BrainybitsCanada  8 ปีที่แล้ว

      +Bkp Bert Hi, that's a good question... I'll check it out tomorrow and let you know what I find out! :) Thanks for watching btw!

  • @jveenstra101
    @jveenstra101 9 ปีที่แล้ว

    this is exactly what i need, thnx u very much!

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

      Glad this tutorial helped you and thank you for watching!

  • @Damian-qj1jh
    @Damian-qj1jh 4 ปีที่แล้ว

    Is there a specific reason the cases' were named like that

  • @sdSd-hy8kh
    @sdSd-hy8kh 4 ปีที่แล้ว +1

    Your code is not readable.. I try to find in your website mention on description, but i dont get any tutorial like this

  • @Joe-yr1em
    @Joe-yr1em 7 ปีที่แล้ว

    shameless promotion or not, you definitely helped me a lot! lol

    • @BrainybitsCanada
      @BrainybitsCanada  7 ปีที่แล้ว

      Haha, glad the tutorial helped. Haven't won the lottery yet, so still need to make some money to pay the bills! Thanks for watching :)

  • @smithchristian2334
    @smithchristian2334 7 ปีที่แล้ว

    Hey first of all i want to thank you for this video. Its really beautiful and it helped a lot, but i have a small question. Lets say if i want to spin the stepper motor continuously CW and CCW then witch code do i need to write? what changes do i make?

    • @akshaydasm.k9388
      @akshaydasm.k9388 7 ปีที่แล้ว

      you can control it using delay function....digital.Write(HIGH):
      delay(3000); you can use this function to rotate it CW continuously and if you want to rotate in CCW continuously then use digital.Write(LOW);
      delay(3000);

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

    how do connect the positive motor and negative mptor ?where to connect them?

  • @awteknisiasaljadi
    @awteknisiasaljadi 6 ปีที่แล้ว

    Simkuring mecak nontona..duka keur naon alarna mah..hatur nuhun

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

    Great help into arduino 🙌

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

      Thanks for watching, great to hear that the tutorial and videos are helping. Cheers!

  • @larrymoore2320
    @larrymoore2320 6 ปีที่แล้ว

    Hi, I am a true beginner and am having issues getting my motor to turn. The code is correct and the IR is sending through the UNO but the motor will not run. anyone have advice?

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

    how would you connect a second motor so that they both spin simultaneously?

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

    Thank you!

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

    Hi i need help with this problem i wired it correctly and the code work but when i connect it the Stepper Motor Driver Module the leds on them dont turn on

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

    what if i want to push the button and the motor moves just the half way (180 degree) ?
    what is the code ?

  • @boowonder888
    @boowonder888 7 ปีที่แล้ว

    anybody know if you can use the remote without the ir receiver, straight through the arduino? I got the remote in a kit but didn't contain receiver. I recently bought a Bluetooth receiver, though...

  • @AbidHussain-fp2xd
    @AbidHussain-fp2xd 2 ปีที่แล้ว

    Hello, sir thank you for this video. It's really beautiful and it helped a lot, can we make this project a multitask (this code and connection will also be present in it). I want the same project with multitasking of three LEDs controlled with the above same remote. I want the same controlling of stepper motor 28BYJ48+ULN2003 and thee LEDs separately with the other three buttons. Please if any idea shares this I will be very thankful to you.

  • @Chickennuggetjoes
    @Chickennuggetjoes 8 ปีที่แล้ว

    Hi, I have been trying to get a stepper motor to run continuously using an ir sensor, but seems that the time that it takes to pick up the ir signal is quite long and makes the motor run in bursts. I was wondering if you knew a solution

    • @procactus9109
      @procactus9109 7 ปีที่แล้ว

      6 Months later :)
      IR is not very suited realtime control. I would think one of those very cheap digital radios would do it. You prolly dont need big bandwidth, But you want low latency.

  • @rileyseifert6492
    @rileyseifert6492 8 ปีที่แล้ว

    If I do not have the breadboard power supply, would it still work if I have a power supply for the arduino? Would I need to change any of the wiring?

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

      +Riley Seifert You can connect this stepper since it's very small and only uses 92mA to the arduino directly if wanted. Thanks for watching!

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

    What if I want it to stop to a different position?

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

    how to make it continuous??

  • @recaigumus3384
    @recaigumus3384 8 ปีที่แล้ว

    This is a very helper tutorial for my project but i have a problem. My step motor overheats. How can i solve this problem ? ( i use 9v and 1A for step motor driver is it too much ? ) thank for everythink. Have a nice day :)

  • @eduardoyapor2608
    @eduardoyapor2608 9 ปีที่แล้ว

    Awesome made this!
    You should make a video about " How to make an ir car with arduino"

    • @BrainybitsCanada
      @BrainybitsCanada  9 ปีที่แล้ว

      It wouldn't be too hard to make an IR controlled car by using information in this tutorial and the one we did on controlling a DC motor using the L9110S here: th-cam.com/video/kZHVJVzHs8s/w-d-xo.html
      Instead of using the Rotary encoder to control the motor speed, you could use IR codes and control 2 motors individually. Thanks again for watching!

    • @sergiofelixmartin2549
      @sergiofelixmartin2549 7 ปีที่แล้ว

      Brainy-Bits p

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

    How do I make it rotate continuously till it receives a second button press to stop?

  • @alessandromanzocco3746
    @alessandromanzocco3746 6 ปีที่แล้ว

    hello, my friend made for me an arduino IR controller to move a step motor by the tv remote controller. everything works fine, but he doesn't know how to make the motor move constantly while keeping pressed the remote button. Actually everytime i push the button, the motor turn just for the steps that he set. So to set the right position i must press many times the button.
    do you have a tutorial or a link to set the right parameters to get my goal? thanks

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

      Hey! did you find a solution to that? Im looking to do exactly the same

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

      @@faustocarlosdeloscobossier7884 I didn't find any solutions. I Just set a number of steps that let me notice the volume increasing for each press. In few words if you set 1 step for 1 press will be a nightmare. Just find the better combination

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

      alessandro manzocco Thanks I’ll give it a try!

  • @deeppatel2880
    @deeppatel2880 6 ปีที่แล้ว

    can u please send this project PPT or Final report ...!!!????

  • @Demirci91
    @Demirci91 8 ปีที่แล้ว

    can someone tell me how to control the stepper with serial ?? Brainy-Bits

  • @theDibu222
    @theDibu222 8 ปีที่แล้ว

    hi ! I love your videos. Do you think it's possible to say to the arduino case 0xffffff , you do the same as before ? if yes can you answer me to sai me how ;-) thank's bye !

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

      +theDibu222 Will probably revisit this tutorial in the coming year and will keep your suggestion in mind :) Thanks for watching!

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

    doesn't work for me :/ is it because my remote is from Elegoo and now official Arduino? Checked pretty much every component, all of them is functional itself (not burnt, etc.)

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

    My IR receiver just keeps blinking! no matter whatever I do, the stepper motor is just not budging to move.
    the receiver just keeps blinking with a red light. Pls help

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

    Can I use NEMA 23 stepper motor?

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

      I know it has been a year, but I have the same question right now. Does it work?

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

    I really hope someone can help me. When I try verifying the code, it shows an error "'reciever' was not declared in this scope" Arduino: 1.8.12 (Mac OS X), Board: "Arduino Uno"
    IR_Stepper:14:15: error: 'reveiver' was not declared in this scope
    IRrecv irrecv(reveiver); // create instance of 'irrecv'
    ^~~~~~~~
    /Users/alastairlascelle/Documents/Arduino/IR_Stepper/IR_Stepper.ino:14:15: note: suggested alternative: 'reciever'
    IRrecv irrecv(reveiver); // create instance of 'irrecv'
    ^~~~~~~~
    reciever
    exit status 1
    'reveiver' was not declared in this scope
    This report would have more information with
    "Show verbose output during compilation"
    option enabled in File -> Preferences.
    Someone please help me!!

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

      Do you have the correct library?

  • @practicetennisbyjaeshin3231
    @practicetennisbyjaeshin3231 7 ปีที่แล้ว

    Wow cool

  • @Botan5050
    @Botan5050 8 ปีที่แล้ว

    How can I get the code ?!
    Many thanks !

    • @BrainybitsCanada
      @BrainybitsCanada  8 ปีที่แล้ว

      +Botan Othman You can get the code/schematic/etc.. on our Tutorials page here: brainy-bits.com/tutorials
      This specific tutorial is here: brainy-bits.com/tutorials/control-stepper-motor-with-arduino/
      Thanks for watching!

  • @Azadmedia.
    @Azadmedia. 5 ปีที่แล้ว

    Your video is good, but it would be much easier for someone if you read what codes did you write. I mean not jut explain what those codes are, but read the codes too. Thank you :)

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

    Pity you don’t “full screen” the code part of this video so it was more readable

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

    can u coment the code line it takes long time to write it

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

      You can find more information including the code for most of my videos on my website here: brainy-bits.com This one in particular is here: www.brainy-bits.com/control-stepper-motor-with-arduino/ Thanks for watching!

  • @antunjankovic3697
    @antunjankovic3697 7 ปีที่แล้ว

    i meant file for the IR Remote.

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

    how can i get the code

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

      You can get more information, including the code on my website here: www.brainy-bits.com/control-stepper-motor-with-arduino/ Thanks for watching!

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

    CODE
    PLS

  • @AbidHussain-fp2xd
    @AbidHussain-fp2xd 2 ปีที่แล้ว

    I am waiting for your great response.

  • @AbidHussain-fp2xd
    @AbidHussain-fp2xd 2 ปีที่แล้ว

    Hello!
    I am still waiting for your response. Pleas if you have any solution about my problem share with me that will be very helpful for me in my project. I am a student and I want to learn programming with arduino.

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

    i do'nt get the answer

  • @halfsack7117
    @halfsack7117 6 ปีที่แล้ว

    um how do you restart you Arduino software id?????? you left that out

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

    Well I don't have a breadboard power supply. Thanks anyways.

  • @karmette
    @karmette 6 ปีที่แล้ว

    mine doesn't workkkkkkk

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

    um