Rotary encoder or: How to build a digital servo using an Arduino and photo sensors

แชร์
ฝัง
  • เผยแพร่เมื่อ 22 ธ.ค. 2015
  • Table Of Content:
    00:05 Introduction
    00:23 Photo sensor
    03:35 Sensor disc
    05:49 Directional encoder
    08:27 Agular resolution
    09:53 Motor control
    11:24 Steppermotor
    14:36 Proportional control loop
    16:31 Pulses per second
    18:31 Motor parameters
    19:37 Angular resolution / small servo
    21:22 Ocilloscope plot rotary encoder
    24:29 Printer motor
    25:50 Linear drives
    26:48 Digitale servo from a wiper motor
    The project page:
    www.HomoFaciens.de/technics-ba...

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

  • @everettbradford
    @everettbradford 8 ปีที่แล้ว +24

    Thank you for another excellent video!

    • @HomoFaciens
      @HomoFaciens  8 ปีที่แล้ว +7

      +Everett Bradford You're welcome and tell it to your friends.

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

    I think your videos are the clearest tutorials out of any Arduino tutorials. I always wind up watching your videos when I want to learn new stuff.

  • @bigchrisrogers
    @bigchrisrogers 8 ปีที่แล้ว +6

    Watched this twice now, really interesting video, so well put together and so much information covered, well done.

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

      +bigchrisrogers Thanks! Yes, I try to put as much information as possible in my videos, thus watching them once usually isn't enough to get it all if you don't now much about the subjects I am treating. You can also read what I am talking about on my project page and you can get the schematics to build your own circuits:
      www.homofaciens.de/technics-base-circuits-encoder-disc_en_navion.htm

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

    I like the way you demo your circuits with the right angle wiring, thats pretty clever.
    I fell on this video from TH-cam just auto playing, I was't looking for anything related to rotary encoders. But that little touch you do with the wiring is awesome and is a great idea, it will certainly help novices and experts alike. Thumbs up to you

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

    All the questions I had about driving dc motors with encoders in a single video - Brilliant!!

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

      +Google+ SUCKS BALLS - the worst forced social network It's always good to find answers...

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

    This is such a thorough demonstration. Thank you so much for sharing this .
    I definitely will watch this again and learn from the code.

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

      +Bob Durk ...you can lean more from code by reading it. The source code is available as download on my project page:
      www.homofaciens.de/technics-base-circuits-encoder-disc_en_navion.htm

  • @sajalchuttani2519
    @sajalchuttani2519 3 ปีที่แล้ว +2

    I just got to know that old TH-cam videos are better than most of the new ones🙃
    Thoroughly enjoyed every part of your vid

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

    Now I know everything about servo motors. thank you. Very usefull stuff.

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

    Thank you man, for real. Your serie of videos about encoders and optic sensors aplications is helping me a lot.
    More one satisfated subscriber!!!

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

    Beautifully explained. Complete clarity at every step.

  • @woodywong76
    @woodywong76 7 ปีที่แล้ว +2

    I would like to thank you for this video. I have learned so much from this!

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

    Great video, I roughly knew how these things work but now it is crystal clear.
    Many thanks!!

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

    You can buy some encoders on the market but when they fail or you have issues it is great to understand the principle. Great video. You just told about PWM and PID control also. A broad beginning to it. Love it really enjoyed your video.

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

      +killerbeenl Yes, knowing what devices you are using is always helpful. Some more about PID is in my video covering the Arduino Uno:
      th-cam.com/video/PQ1FBcQT0AI/w-d-xo.html
      It's a fascinating subject, thus more chapters might follow...

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

    Excellent overview of servos. Thanks!

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

    Just what I need, how to switch my old racing wheel imprecisse poty for an accurate encoder.
    Even more, it even shows the concept behind force feedback.
    Love it, simply perfect ;)

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

    Dude having a table of contents is rad. Awesome work I'm gonna subscribe

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

    This is what I need for my new project, great!

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

    Excellent display of using a Photo sensor and a Arduino. I had lots of questions. You just answered all of them. Thank You.

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

      +King Red Leg You're welcome!

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

    Super great presentation! Thorough coverage and simple explanation.
    Here are some stars: ** ** **
    Thanks.

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

    I really like that u are using lot of salvaged parts in your projects and test setups. Its helps to understand how other machines works like printers etc... thnx for sharing

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

      +Fortzero You're welcome! And: share my project(s) with your friends.

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

    Impressive how you go from simple idea and escalate to sophisticated one in easy to follow steps.
    Thanks for the great video.

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

      +Mohammed Algailani ...looks like I can't create short videos ;)

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

    Your demonstration of principles is so effective I have sent your video links to young children who can understand and begin projects in no time at all. Great work!

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

      Thanks for sharing. More videos using old printer parts will follow - stay tuned!

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

    Thank you so much!!! its been so easy for someone with little knowledge

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

    Thank you for sharing! I'm a non technician and able to understand most of the things you explain. I enjoy your videos a lot :) Always pleased to hear you'll be back ;)

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

      +Matschase Who ever is able to understand what I am talking about has been turned into a technician. Start to build one of my machines and you are also turned into a maker (or a "Homo Faciens" as I call that species).

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

    I'm so excited to see this video so interesting and so guiding!!! Greetings from Puebla Mexico!

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

    Really great stuff- packed with info! Very good job!

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

    Excellent description. I understood perfectly, thank you. Subscribed.

  • @choupi4719
    @choupi4719 8 ปีที่แล้ว +23

    Thanks Arnold S. !

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

      "Consequently eight signals were counted"

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

    Thanks for a great video. It's so clear and well paced. I love the "rough" electronics and mechanics you do. Ist aber wirklich wunderbar, Danke! :)

    • @HomoFaciens
      @HomoFaciens  8 ปีที่แล้ว +2

      +Bernhard Hofmann I don't have enough time to give my machines a smooth design ;)
      Die Einfachheit animiert mehr Menschen zum Nachbauen - bitte gerne!

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

      +HomoFaciens For the non-German speakers, he said that the simplicity encourages more people to try this as well. I completely agree; that's what draws me to it and makes me think I might also be able to make something. I particularly liked the progress of your video as well, showing the issues you might encounter (IR light, overspin, accuracy of gears, etc.) and how to overcome them.

    • @HomoFaciens
      @HomoFaciens  8 ปีที่แล้ว +2

      +Bernhard Hofmann That's it! I am sure you are able to make something and so to become a maker, too (or a HomoFaciens as I call that species).

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

      +HomoFaciens You realy do that with your "Barbarian" (not bavarian) aproach to solve problems. You shows that you don't need to buy expensive partes to archieve success.
      But if you use a power enought controller with a windshield wiper motor and a high precision sensor disk from a printer (free from garbage) we can archieve "CNC precision" and high power to build a CNC???
      Here in Brazil is cheaper to buy a windshield wiper motor than a stepper motor!!!

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

      +Vilmar Antônio Moccelin Júnior Yes, you can build a CNC with windscreen wiper motors, but I suggest to start with a low power version (you can use the motors from printers):
      th-cam.com/video/5rQ4xKRfXts/w-d-xo.html
      The precision depends more on the build quality of your mechanics than on the resolution of the sensor disc.

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

    Excellent video! Thank you for sharing.

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

    Your videos are so awesome. Thank you!

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

    Great video, love it!

  • @builtrodewreckedit
    @builtrodewreckedit 8 ปีที่แล้ว +3

    very helpful video. I will be watching it many more times for sure.

    • @HomoFaciens
      @HomoFaciens  8 ปีที่แล้ว +2

      +builtrodewreckedit Yes, most of my videos provide a lot of information that can't be absorbed in a single run.

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

    excellent video !!! .. it cleared a lot of fundamentals to me.. !! .. Thank you very much for this video..

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

    I really enjoy your videos.

  • @AdityaMehendale
    @AdityaMehendale 8 ปีที่แล้ว +13

    Hats off to you, Norbert, on a thoroughly made and highly informative video! How do you get the time to do all the work?

    • @HomoFaciens
      @HomoFaciens  8 ปีที่แล้ว +10

      +Aditya Mehendale Thanks! Yes, many hours passed by while creating this video. I don't count the hours/days/weeks...

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

      el tipo es un genio

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

    Excellent video. Well done and thanks for the effort!

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

    helpful tutorial and supply a lot of things fundamental of encoder, thank you !!!

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

    Very helpful video. Thank you for sharing

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

    Awesome!! You can bet on it, "I'll be back" as well! :-)
    I Love the demos and the straightforward way you explain the "steps".
    The software code (for me) is going to be the tough part.
    Your apparatus' and lighting are superb for "laying it out".
    Thank You. (You KNOW you sound like him... sorta) :-)

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

      +jlucasound
      There will be chapters about programming GPIOs (Physical Computing) in the (not so far) future on my project pages - stay tuned!

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

    excellent demonstration!

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

    This is awesome. Highly educational. Truly inspirational.

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

      +lowendguru I like to inspire ;)

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

    Man I don't know if I said thank you already somewhere else on your channel, but just in case I didn't, THANK YOU so much for all this amazing information!!! I still have a looong way to go and a lot of learning to do, I'm just starting to understand the very basics of electronics. However I'd really like to get to the point of being able to reproduce some of what you have done here, especially to re use the sensors from old printers to have an extremely useful recycled possibility.
    If I manage to do it, I will make some videos and hook you up, but it is at least a few months away still!! Danke!!

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

      Thanks! Keep tinkering and create new things. Your skills will grow over the years same as mine do with each new project.

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

    Very good and thorough video . Thanks for taking the time to go into details.

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

      +XerotoLabs Yes, going into details eats most of my time. Thanks for pointing that out.

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

    Just keep up the hard work
    Thanks for sharing

  • @AleksandrMustafaev
    @AleksandrMustafaev 7 ปีที่แล้ว +2

    Wery nice and big great work! Thanks!

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

      You're welcome! Another video about rotary encoders (how to make them more compact) is under construction - stay tuned!

  • @MC-Cali
    @MC-Cali 7 ปีที่แล้ว

    fantastic. thank you so much. you are a natural educator.

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

    You are the best! Thank you!

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

    great video, clear to understand and very informative - will definitely put this into practice - danke HomoFaciens

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

    Brilliant video on encoders, thank you .

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

      +roy douce You're welcome!

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

    Super video- Exceptionally educational and precise. Great that you do it with home made stuff so that we get to see the technique rather than feel mystified by the tech aspects.. I watched this video and liked before- now I have subscribed, Thanks for your effort!

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

      You're welcome! There is nothing mystical in science and technology. It's my mission to show that ;-)

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

    Very good! I liked learn more about step motors and control them.

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

    excelent video. thanks

  • @giantneuralnetwork
    @giantneuralnetwork 8 ปีที่แล้ว +2

    Very cool! Really appreciate each of your videos. They're very informative and have an easy to follow logical flow. Cool that you can get that much speed out of the optical encoder using an arduino. I wonder what RPM you could get using a raspberry pi with its higher CPU clock speed. Thanks again for the great vids!

    • @HomoFaciens
      @HomoFaciens  8 ปีที่แล้ว +3

      +LogicGodTV The Raspberry has a higher clock speed, but no realtime operating system, thus it won't be faster but slower!

    • @lazyh-online4839
      @lazyh-online4839 6 ปีที่แล้ว

      HomoFaciens I'm pretty sure there are a couple of real time operating systems for both raspi and the more expensive beagle bone black. The BBB seems to be better suited to robotics, sensors, mechanics, and processing of that kind anyways, there is CNC controller software for BBB but not raspi anyways so I would recommend that one.

  • @Engineer.Critics
    @Engineer.Critics 4 ปีที่แล้ว

    man you are the rock-star i love your voice.....you look like more mechanical engineer rather then electronics one

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

    Sehr schöner Aufbau

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

      +norm1124 ...weniger schön, aber funktionierend. Danke!

  • @gksle.5879
    @gksle.5879 7 ปีที่แล้ว

    Magnificient education video! Thanks

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

    thank you for an awesome, very informative video :)

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

    Amazing indeed. Keep the amazing work going on.
    PS. I realized you published on 23rd December. This was your Christmas present ah!

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

    Thank you! Great Work as usually!

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

      +Alshira Alshat You're always welcome!

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

    Sir you truly rock, what a great set of information .. really nice :-)

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

    Great video! Thank you very much.

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

    Thanks for your generosity!

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

      +Wee Kata You're welcome!

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

    Your videos are amazing for our students. Best wishes from Pakistan

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

      Great to know they are used in education, because that's what I recorded them for.
      Best wishes from Germany!

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

    Hola Amigo:Te felicito por tus trabajos, soy profesor de escuelas técnicas y trabajo con hardw y softw libre, por lo que implementaré algunas de tus ideas.Tambien hicimos un clon de arduino y emplearemos el Pinguino 18f4550.Gracias por compartir!.Saludos de Argentina.Te compartiré nuestros avances

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

    that was very interesting Ty for sharing

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

      +Waffenschmiedin x You're welcome!

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

    this has being great thank you

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

    thanks dude for this video u give me every thing about rotary thanks once again

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

    Awesome Video, Thank you very much for it, Greetings from Monterrey, Mexico.

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

    Hello Norbert Heinz
    Many many thanks for your time and tutorial video!
    It's a great tutorial I've ever seen...I'll be patient for the program tutorial

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

      +khymem MU You're welcome and: stay tuned!

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

    Best video to understand encoder 👌👌👌

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

    Cool, like your style, passion.

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

    Excellent video!

  • @-ahvilable-6654
    @-ahvilable-6654 8 ปีที่แล้ว

    Excellent, thank you. But didn't you think of sensors from optical mouse? You can place them in front of simple wheel and they seem to give precise results. Very grateful for your reply.

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

    thank you.... grate video

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

    Many thanks for this video.

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

      +nejat karaca You're welcome!

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

    gracias por proyectos, si que sirvieron mucho

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

    very informative!!!

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

    Hi many thanks for your fantastic video//Magnus

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

    Very nice. Well done. Thank you.

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

    Great video. It doesn't get much better than that.

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

      +InnaSoulSounds Thanks, but there is always something to improve...

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

    através destas explicações vou fazer meu projeto de rotor de antena de radioamador

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

    thank you i learned alot .

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

    Excelente video, felicitaciones.. uno aprende mucho con tus videos y das buenas soluciones a problemas de falta de recursos..
    puesto que usar DC motor en ves de steeper motor.. congratulatios!!!!!

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

      +MrAlbrtvg vizarreta
      You're welcome!

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

    Excellent video.

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

      +notionSunday Thaanks!

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

    Fantastic video....very thorough explenations,just what i was looking for,for my project!Thanks!

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

      +babis600 You're welcome!

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

      +HomoFaciens i am trying to compile your sketches to the arduino but i keep getting a sketch\commands-host.c:15:21: fatal error: termios.h: No such file or directory
      #include error.What is the problem?

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

      +babis600 Your Arduino IDE opens the file "commands-host.c" in a second tab. Close that tab so that the only file open is the *.ino and try again.

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

      +HomoFaciens yep...you were wright.Thanks for that!

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

    Very informative.. Excellent video learnt so many things...

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

      +Ashwin Thirunahari ...this video was meant to teach - mission accomplished!

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

    Always entertaining and very informative videos, thanks for making them!
    I will try and build a rotary encoder soon.
    Where did you learn all this about electronics? Electrical engineering master?

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

      +Daniel W I learned the basics about semiconductors during my education as physics laboratory assistant long ago...

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

    Спасибо за ваш труд!

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

      +ACIDITYRAIN You're welcome!

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

    This is awesome, clear, easy going, to the point. Thank you very much!
    I am thinking about making my CNC with just Arduino UNO, nothing fancier , no motor shields. Two wires from digital to MOSFETs per motor (back and forth movement), one gnd from Arduino to all the motors, one signal from rotary sensor to analog per motor. This way I should have capacity for 6 axis from single Ardiono UNO. I don't really need to detect which direction motors are spinning since I must already know. I spin them! I only need to count number of steps, incrementing and decrementing depending on which MOSFET I am using at a time, calculating distance from angle and thread, recursively increasing interrupt periods and toggling direction if I overshoot until I get to where I want to be. Awesome tutorial, you are the best.

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

      You definitely need two sensors per motor. There is always overshooting: you can't say the motor starts spinning into the opposite direction as soon as you swap the polarity. Inertia causes the motor to continue spinning into the 'wrong' direction before following the new command.
      Creating an h bridge from nothing but 4 transistors is also a bad idea. There is shoot through whenever you switch polarity of a half bridge which might destroy your transistors. Especially MOSFETS are killed instantly when the current is over the limit.
      My CNC series starts here:
      homofaciens.de/technics-machines-cnc-v0-5_en.htm

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

      Thank you for your answer. I don't think I was being clear. Let me try once more:
      First, I employ one sensor and count number of transitions. I want to move axis Z by 100 steps. Motor overshoots and moves it 103 steps (if I fail to tune the motor run with interrupts). I know I overshot, out of one sensor.
      Second, I need no H-bridge. I will connect one digital pin with one MOSFET gate, operating one circuit running a motor, and second digital pin to second MOSFET gate to second circuit running the same motor backwards. I will activate one mosfet if I want to spin one direction and second if I want to spin other direction.

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

      Never mind about my previous comment. I drew a sketch to show what I mean and I found short circuits. I added more transistors and guess what I invented? An H bridge... Yes, that is me. At university I discovered integration by parts, later I realized that weightlessness could be achieved if something spun Earth fast enough so that the centrifugal forces would negate the gravity, yes, it was 10.2 kmps, and then I noticed that light emmited by lamps correlates in spectrum to the light put off by flame test, and from there I rediscovered magnesium lamp. Next time I will listen to ZZ Top's ME SO STUPID like ten times and then will I post something. Sorry for that. Thank you very much for suggesting the diods with mosfets, I think I will greatly appreciate it soon enough.

    • @HomoFaciens
      @HomoFaciens  7 ปีที่แล้ว +2

      ...you will never ever forget what you have learned by reinventing the wheel ;-)

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

      I will support you. I can't do so right now but I will. I am getting my CNC ready. It is scheduled on March. It will be Arduino uno, 1 photo sensor per rotary encoder connected to digital pin. I will use BTS7960 and my H-bridge, whether it is an H-bridge or not, 'I am not sure:
      Battery: B+, B-
      Motor: M+ M-
      --------------------
      wire1: B+ -> M+
      wire2: M- -> B-
      wire3: B+ -> M-
      wire4: M+ -> B-
      One transistor (T1 - T4) on each wire.
      transistors T1 + T2 go to one digital pin
      transistors T3 + T4 go to another digital pin
      The rotary encoders will be made of clear disks plus silver coated vinyl foil with slots cut into it by cutiing plotter. Recently I worked on the sw side mainly. I have my CNC driver ready up to the point where it knows a correct sequence of steps (for example motor 1 step +1 motor 2 step -1 motor 3 step 0, motor 1 could go +1 +1 +1 +1 +1 motor 2 coudl go -1 0 -1 0 -1 0..., depending on vector of travel). Arduino is connected to my computer and it recieves and serializes instructions form USB port, it calculates vector of travel from where it is (remembers its position from previous instruction), turns it into the sequence, cycles this many times as Arduino can only digest very few cycles at a time otherwise it bites its own tail, eventually when finished with all the steps in intruction Arduino rings my computer which sends it another instruction and so on. Now I am working on CAM, I have very special shape to make at an extreme precision ahead, I need a special CAM that can handle meshes, not vecotrs, plus I want to test my own tool path type, but once I have my mold I will start producing arrow vanes which can and will be sold all over the place eventually so I will have means to support you. Not yet. I am a janitor.

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

    Felicitaciones, muy buen trabajo.

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

    I was wondering why you did not use the windshield wiper motor on your DIY CNC project, seems the extra torque would be beneficial.

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

      +Kirk Nelson Sometimes, extra torque is very destructive. The good thing with the low power motors in my CNC machines is that they are not self destructive if something goes wrong and trust me: a lot of things go wrong if you are new to CNC and especially if you try to do some coding around those machines...

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

      guessing you gave it some thought and rejected the idea for safety then. I was mostly thinking of your early cnc videos when you were having problems with the brushes on the motors burning up.

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

      +Kirk Nelson If you know what you are doing, it's worth spending some days trying to build a very solid wiper motor CNC.

  • @benjamingalindodelarosa4311
    @benjamingalindodelarosa4311 6 ปีที่แล้ว +2

    God dammit man! I Admire you! Keep the good work! :)

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

    is this arnold?

  • @2008koss
    @2008koss 7 ปีที่แล้ว

    excellent !- subscribed !

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

    Great video!!! thx

  • @k.s.a.1667
    @k.s.a.1667 7 ปีที่แล้ว

    Very good!! Thanks you! Danke!

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

    Great video, thanks.

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

      +Robert Klauco You're welcome!

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

    thank you master

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

    I understand and can speaj German (since im from germany) but only until i was 6 so i cant write it well. Keep up the awesome videos and keep inspireing others to create and experiment with engineering. Also, its amazing how you upload every video in english AND german. At the moment im building a 3 axis cnc machine from cd-rom drives based off of your plotter and Tinkernuts 3d printer. Keep on making amazing vids

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

      +Vincent Leyhausen (Maker and Gamer) Thanks for all the good words.
      A machine using steppers from old optical drives is a good point to start CNC.
      Viel Spaß beim Basteln!

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

      One of the motors broke so i only have 2 :(

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

      +Vincent Leyhausen (Maker and Gamer) You could use a micro servo to lift or lower the pen.

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

      +HomoFaciens i was going to do that but i would have to buy some and i dont have money

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

      +Vincent Leyhausen (Maker and Gamer) Another way was using a low power DC motor (e.g. that of the CD tray) and activate that motor to lift the pen and deactivate the motor to lower the pen by gravity (or a spring). Or using an old relay.