Build an optic encoded HIGH precision step motor

แชร์
ฝัง
  • เผยแพร่เมื่อ 13 พ.ค. 2024
  • DIY step motor optic switch encoded. Encode the steps per one rotation and then you could control the angle of rotation, speed, and turns. Very nice project part of a bigger project of a 100 € own design of a CNC optic encoded machine.
    Help my projects on Patreon : / electronoobs
    my Q&A page: electronoobs.com/eng_preguntas...
    Canal en Español: / electronoobs en español
    -----------------LINKS-------------------
    Tutorial webpage: www.electronoobs.com/eng_ardui...
    H-brige tutorial: • H-bridge DC motor spee...
    ---------------MATERIAL---------------
    Optic switch: www.ebay.com/itm/10-Pcs-1-6-Sl...
    Gears 1:200 ratio: www.ebay.com/itm/DC-6V-12V-8-1...
    3D files of the Step motor: www.electronoobs.com/eng_ardui...
    32 steps drelled disc: www.electronoobs.com/eng_ardui...
    H--bridge module: www.ebay.com/itm/Stepper-Motor...
    ---------------SCHEMATICS-----------
    Resistance test schematic: www.electronoobs.com/eng_ardui...
    Final Schematic: www.electronoobs.com/eng_ardui...
    ---------------CODE-----------
    Arduino steps count: www.electronoobs/eng_arduino_t...
    Angle control: www.electronoobs/eng_arduino_t...
    my Q&A page: electronoobs.com/eng_preguntas...
    Visit my webpage for more tutorials:
    www.electronoobs.com
    SUBSCRIBE and motivate me!!!
  • วิทยาศาสตร์และเทคโนโลยี

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

  • @ELECTRONOOBS
    @ELECTRONOOBS  7 ปีที่แล้ว +9

    Sorry, GOOD schematic in here: www.electronoobs.com/eng_arduino_tut9_sch2.php
    The output is pin 4 at 6:11

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

      hi electronoob,is the motor have enough torque & speed if i use it for 3d printer ? im trying to make a 3d printed nema motor equivalent that can match the specification.i dont mind it size a little bigger than nema 17 size. this is the motor number (17HS4401) it is widely use in the 3d print community. i can't find any tutorial for it.i would so much excited if you could make one. how do i connect the motor to the ramps 1.4 board ? what driver to use ? thank you Electrnoobs

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

      How do you prevent losing track of position when the motor changes direction?
      If you have two gap sensors offset by 90 degrees you can have a quadrature output to solve this problem.

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

    how we can't like your videos, that represents all details and deep understanding og electronics, mechanics and software. thank you for your generosity

  • @jjbailey01
    @jjbailey01 6 ปีที่แล้ว +3

    This is awesome how you build every component yourself. Thanks for sharing the process. This is a tremendous learning tool!

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

    I watched your video on 10/2/2018. I hope you have completed your project successfully.
    It was an awesome demonstration of the idea.

  • @r.vishal9750
    @r.vishal9750 3 ปีที่แล้ว

    Thank you dude I wanted to make a project which required a lot of stepper which rocketed the price but with the help of this video I reduced the price

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

    Great job... I might just have to build one. Thanks for the videos.

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

    Absolutely Awesome!

  • @MrHuno92
    @MrHuno92 7 ปีที่แล้ว +4

    I think your intro may contain copyrighted music(guitar solo), I would change it unless you are absolutely sure that you can use it or you recorded it yourself. I love your videos great job!

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

    excelente informacion bro..........!

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

    Nice job!! Yesterday, I took apart an Epson Inkjet printer expecting to find a stepper motor. Instead I found a DC motor controlled using an optic switch like yours and an encoder dial with very fine marks. So only 2 wires were required to the motor versus 4 or more. Probably a cost decision or maybe something to do with patents. But your video shows precisely how the Epson printer ink head could be controlled. I'm beginning to think about creating a CNC using this idea. Thank you.

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

      That's a very nice idea. I'm working on a CNC based on this idea for more than a year!

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

      HP and Epson uses servo motors in most of their printers. You're more likely to find steppers in older Canon inkjet printers or laser printers.

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

      Thats great!, Can you get it to work?

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

    In industry the encoder as shown in the video at 47 seconds is common. The reason for the two groups of slits is for higher resolution and dust immunity. Instead of a single slot and beam, a series of slots are matched to the encoder wheel so multiple slots are combined at once, so a defect in one slot or bar on the disk does not create a drop out as the one of many is ignored. The reason for two sets of slots is one is shifted by 90 degrees so absolute position can be counted the same way 2 coils of a stepper produce steps. The output of an incremental encoder can be fed to a dual h bridge to drive a stepper directly. With a 500 count encoder, a 200 step stepper will make 2.5 turns per one turn of the encoder. This type of encoder is called an incremental encoder. The middle slot is for the index mark if you require an absolute shaft angle. 500 slots is common for a native resolution of 500 counts. If each transition of both phases are used for counts, this provides a resolution of 2000 counts per revolution. This is common in servo systems. This is why servos generally have higher resolution than a 1.8 or 0.9 degree stepper with only 200 or 400 steps per revolution.

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

    Very good and helpful

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

    "bigger project of a 100 € own design of a CNC optic encoded machine"
    have you finished the aforementioned project? are there any videos?
    I'm also building a cnc with DC motors and encoders

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

    Hi sir it posible to use magnetic encorder as5600 with spi comunication?

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

    This project code link is not opening

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

    Good job!!!

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

    this is very good

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

    Can we use it in 3d printer

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

    Excelente

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

    Do you have a sample sketch for this?

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

    you can put a braking resistor (or short) to significantly help the motor braking when power is removed.

  • @SumitKumar-fc4bq
    @SumitKumar-fc4bq 7 ปีที่แล้ว

    can you make videos on how to set up GPS in arduino quadcopter

  • @3dkiwi920
    @3dkiwi920 6 ปีที่แล้ว

    Very informative and well presented. One question though; wouldn't there be a lack of holding torque when the motor stays still, unlike a stepper which can "hold" its position while still under load?

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

      3D Kiwi. Pid control of this home made servo can control holding torque.

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

    Hello bro. Can you please give the test code. The description link is not working.

  • @caleb-hill
    @caleb-hill 6 ปีที่แล้ว

    what's the Holding Torque?

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

    clear and clean explanation,
    can you tell me how to activate or insert this function in marlin in order to avoid the loss of steps in 3D printing?

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

      Good question! Is it possible with current Marlin to use this kind of motor?

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

      Toon Meynen Not currently supported in. Marlin. I'd suggest you ckeck out Maslow cnc as it's open source and they use servos rather than steppers in their cnc design!

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

    2019 and didn't the final diy servo cnc, what happened bro?

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

    Is your cnc machine ready?

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

    Can u make a video about fingerprint scanner door lock with arduino

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

    thought about PRINTING the dials? :) printing it on a transparent sheet with a ink or laser printer would have great resolution, and saves space+cost. AWESOME WORK!

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

      It has to be accurately printed. Laser wouldn't be very suitable because it's not as accurate at putting down lines on paper as is inkjet.

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

    Can you please help me to make a code for DMX stapper motor with optical encoder

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

    You wanna pronounce circuit like it's spelt "Sir Kit" buddy! You are saying sir "quit" in this video. Great upload!

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

    6:11 Why have you used a 2 Megaohm Resistor? In my understanding when the Transistor will be conductive, there will still be 4.99 Volts left on the output. Am I right with that?

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

      Hi, you are right but is not the 2M ohm resistor problem. I've miss placed the output in the schematic. I've changed the schematic.
      here it is:
      www.electronoobs.com/eng_arduino_tut9_sch2.php
      Now you have a voltage divider. When the transistor is conductive you will have 5V at the output and 0 when not.
      Thanks for your observation!

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

      Alright ^^

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

    thats impressive. remembering to use grey code? :)

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

    How does the motor stop in a certain position with a torque?

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

      The code has to slow down the spin just before the stop

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

    Isn't the backlash/play in the gear system at the output shaft, after the encoder has been measured, so you can never achieve the required ~18 encoder steps per degree accuracy? Still useful but how about encoding the output shaft? Hall effect or capacitive sensor and good ADC could be a good way.

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

      The precision is higher with the encoder inside on the motor shaft than with it outside on the output shaft. Keep up!

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

      Electronoobs, precision != accuracy. You want many measurable increments for a small rotation of the shaft but this precise measurement may have little relation to the position of the output shaft, after the mechanical "play/slack/slop/hysteresis/backlash" of the gearbox comes into consideration. This is why I suggested a continuous/non-incremental sensing phenomenon, such as capacitance or magnetic field; then you can invest in a sensor with the precision you require (e.g. ADC resolution for a ratiometric Hall effect sensor). Keep up!

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

      Diamond Eyes sorry, I don't understand what you mean.

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

      Simon Merrett I think he"s suggesting to use resolvers instead of encoders.

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

    I think it is better to use the interruption pins in the arduino to detect the step change in the arduino. It reacts instantly and would never skip a measurment.

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

    How do you detect rotation direction with your encoder?

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

      U can't but it's not needed anyways cuz DC motor go the same way with same polarity

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

    hi
    we can do that for dc motor 2kw

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

      The exact same way. The motor size changes nothing except how much current needs to be controlled.

  • @MARS-GREENH0USE
    @MARS-GREENH0USE 4 ปีที่แล้ว

    "I like you"

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

    Cool stuff, but this isn't a stepper motor. This would be defined as a Servo motor. You have your "normal" e-motor and an envoder. Thats a servo.

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

    Compliment from Palermo Francewsco