HACKED!: Using an HDD Motor as a Rotary Encoder?!

Поділитися
Вставка
  • Опубліковано 24 гру 2024

КОМЕНТАРІ • 1 тис.

  • @aggeloskoumaniotis
    @aggeloskoumaniotis 7 років тому +69

    You are doing an awesome job , the videos are very informative , beginner friendly and you also answer most of the questions in the comments . The ads on your videos are short and not promoting useless stuff . Thanks for being such a nice creator .

    • @greatscottlab
      @greatscottlab  7 років тому +8

      Thanks for the feedback

    • @leemathoo6583
      @leemathoo6583 6 років тому

      I don't mind the adds as long as the content is good and the adds are short and relavent to the content....

  • @alfonssiggler6652
    @alfonssiggler6652 7 років тому +404

    Thanks for another year full of awesome projects!
    Cant wait for the upcoming episodes of 2018 :)

  • @alexopouloscharalambos8242
    @alexopouloscharalambos8242 2 роки тому +21

    Great idea !
    I think you can improve it a little. You can only use L1 and L2 to determine the direction of rotation. At Low to High transition of L1 check the state of L2, if it is High the it turns clockwise else it turn anticlockwise (or vice versa).

    • @mahershhab3824
      @mahershhab3824 Рік тому

      ممكن مساعده بمقابل مادي

    • @Enigma758
      @Enigma758 7 місяців тому

      There is some potential latency when you do it that way.

  • @jakeguard9099
    @jakeguard9099 5 років тому +322

    "simple schematics"

    • @konceptochannel
      @konceptochannel 4 роки тому +6

      yeah, I thought the same thing... " *yeah, sure.... pretty simple* "

    • @nuthinnew
      @nuthinnew 4 роки тому +11

      koncepto I totally know what you mean. But a few weeks ago I downloaded an app called icircuit for a work project. I’ve only made basic circuits with motors and lights before now so had no hope I could use it. I googled how to reverse polarity (for the project) and it showed me a circuit like GreatScott’s so I copied it to the software and made a mock up circuit for my project. Then I looked on ebay for the components in the diagram and they are just 8 pin chips and a few resistors. I’ve learned in the last few weeks it looks much scarier on a schematic to what the product in your hand will be

    • @nuthinnew
      @nuthinnew 4 роки тому +3

      @michel777ification How many times has it got you laid? Loads i'm guessing

    • @elshujau
      @elshujau 4 роки тому

      I thought the same

    • @elshujau
      @elshujau 4 роки тому +5

      Now you have made a turntable. Let's DJ

  • @KerryWongBlog
    @KerryWongBlog 7 років тому +19

    Great video as usual. You could use the analog voltage generated to determine how fast the motor is spinning and thus make it a velocity controlled rotary encoder so that the faster you spin the more you change the output number.

  • @robmarrin6720
    @robmarrin6720 5 років тому +2

    Man I did electronics 27 years ago usind avos and old oscilloscope, in college but this is amazing stuff.. You have rekindled my love of electronics, and computers I used to build my own pc towers... Great information totally within the ability of novices having watched you tutorial, can't thank you enough. Rob👍👍👍

    • @inverted311
      @inverted311 5 років тому

      Seems to be exactly how modern graphics engines work... Could be useful to try and battle online network clans.

  • @dave_dennis
    @dave_dennis 7 років тому +4

    I’m an Electrical Engineer and yet I learn something on every one of these.
    Plus I love his pronunciation of hysteresis.

  • @Ricky_B4
    @Ricky_B4 5 років тому

    This has got to be one of the best videos I have seen. It is clear, concise, and informative. I have disassembled hard drives for parts, also to ensure the information on the platters is destroyed but to use the motor as an encoder didn't cross my mind. Thank you for sharing.

  • @sorin.n
    @sorin.n 7 років тому +31

    Hi Scott, cool projects (as always); I was thinking that this could be taken to the next level where the rotation speed and acceleration would increment/decrement the value faster. Also, maybe keeping it connected to the analog inputs would allow to measure the amplitude, which is proportional to the speed. Great work! Stay cretive & I'll see you next time!

    • @jothain
      @jothain 2 роки тому +1

      Indeed. If I would have the needed skill, I'd try to implement this for my DIY small arcade cabinet. That HDD motor would surely indeed have very satisfying feel cause if it's good bearings.

    • @れろらりる-u4p
      @れろらりる-u4p 2 роки тому

      Indeed. It's a hall effect rotary encoder.

    • @Enigma758
      @Enigma758 Рік тому

      @@れろらりる-u4p There are no hall effect sensors in his hard drive motor. He relies on measuring the voltage resulting from induction while spinning the it. In effect it is acting as a 3 phase generator. What you are referring to would be a sensored BLDC motor. You can make a much better encoder from a CD rom drive spindle motor that is sensored (has hall effect sensors). That is a totally different principal than what he is showing here. Instead of tapping into the coils, you would tap into the hall sensors directly.

    • @れろらりる-u4p
      @れろらりる-u4p Рік тому

      @@Enigma758 I mean that's how hall effect sensor works.

    • @Enigma758
      @Enigma758 Рік тому

      @@れろらりる-u4p I mean that in the video, it is imprecise due to the fact that induction depends on motor speed. Many who have tried it complain about that and they are correct. Using hall effect sensors in a sensored motor totally avoids that problem.

  • @bobbysenterprises3220
    @bobbysenterprises3220 5 років тому

    Thanks. From a brush less quadcopter & drone enthusiast that recently learned about rotors encoders while trying to build a PID gas burner control for my work. I may try this in the future. Good work with your videos informative and enjoyable

  • @zanpekosak2383
    @zanpekosak2383 6 років тому +65

    Making a dj turntable from this might be good...🤔

    • @calebevans9562
      @calebevans9562 5 років тому +2

      I am about to try this

    • @stand1rte
      @stand1rte 4 роки тому +4

      you can use the midi keyboard project of evan kale, and simple add this to control some programs

    • @DJDiskmachine
      @DJDiskmachine 3 роки тому

      Would be awesome, but it seems like the platter needs quite a lot of rotation for the value to change. =/

  • @markschmidtinsydney
    @markschmidtinsydney 4 роки тому

    Mate, UA-cam is full of clever people coming up with clever ideas, based on previous clever ideas. Yours is magnificent. And really well explained too.

  • @jaredcohen9552
    @jaredcohen9552 7 років тому +61

    I have two questions about this project:
    1) why is using the analog read not good?
    2) is there a way to speed up the counting? When you spun it fast the numbers went up slowely

    • @glenn0010
      @glenn0010 7 років тому +6

      1) Typically you want to use analogue to digital converters for something else like sensors since a micro controller usually has only a few of them

    • @greatscottlab
      @greatscottlab  7 років тому +49

      1) Because your Arduino might not measure the the phases at the right time because it is currently doing something else in the code. That is why interrupts are so important.
      2) Yes, you can enhance the code quite a bit and add more functions like counting up according to the rotation speed.

    • @jaredcohen9552
      @jaredcohen9552 7 років тому +3

      Aah that makes a lot of sense! Thanks for clearing it up, keep up the great content

    • @Fawks
      @Fawks 7 років тому +3

      1) I guess using the adc is less effective than just reading a digital value
      2) decrease the delay (7:48)

    • @tobywenman4769
      @tobywenman4769 7 років тому +3

      The first question is one of coding efficiency. With it's first state essentially the arduino is continuously checking the analog pin as fast as it can all of the time using up all of it's processing time. With an interrupt pin it essentially sits in the background and waits for the pin to go high before doing anything about it. This frees up the processor to be dealing with other stuff in the free time. Such as controlling the pumps like the cocktail machine.

  • @moiquiregardevideo
    @moiquiregardevideo 5 років тому +2

    We can increase the resolution by a factor of 3 by using interrupt on each of the 3 inputs.
    The global position counter is incremented/decremented by each interrupt.

  • @raymondmichael4987
    @raymondmichael4987 7 років тому +99

    What's hell, thumbs down!!!!!!!?
    This channel give us soo much great content how come someone rate it down; the guy put a lot of effort to make this understandable, at least appreciate the effort of the man.
    Great content as always

    • @EmmanuelAyegba
      @EmmanuelAyegba 7 років тому +10

      UA-cam is full of psycho trolls who will thumb down even without watching.

    • @leemathoo6583
      @leemathoo6583 6 років тому

      Don't bother about them they never understand anything in this video and never will.....

    • @elevatormaniacgames
      @elevatormaniacgames 6 років тому

      Don’t bother less than 1 percent disliked

    • @xxportalxx.
      @xxportalxx. 5 років тому

      Personally I am slightly dissatisfied by the fact he uses the motor, not the actual harddrive hardware as the encoder.

    • @88njtrigg88
      @88njtrigg88 5 років тому

      The software people, who actually thought it was a software hack.

  • @3deeguy
    @3deeguy 7 років тому +1

    I'm going to refer back to this video for my sensorless bldc motor experiments. I tried to breadboard a circuit a couple of years ago but I could only make the bldc spin like a stepper motor. It would only run smoothly after it reached a certain speed. It had no useful torque because I did not know how to set up the comparators.
    I'm not going to hack a hdd motor but the information in this video is absolutely useful. Thank you!

  • @suryanshthakur5820
    @suryanshthakur5820 4 роки тому +8

    One like for the motor sacrificed.

  • @3v068
    @3v068 2 роки тому +1

    Dear Scott. During my journey into learning electronics, I've used your videos a lot and I have learned a lot. This video might make me actually start my Disc Jockey from scratch idea. The encoder is exactly what im looking for to make one for my DJ setup and its been a rather dumb little goal of mine to build a working one. Something similar to a CDJ-2000 from Pioneer, just cheap and not at all packed with features lol.

  • @PolakPL2002
    @PolakPL2002 7 років тому +236

    Is it possible to increase sensitivity of the encoder?

    • @greatscottlab
      @greatscottlab  7 років тому +207

      +GreenMC If you put more time into the code you can even let the Arduino react according to the speed of rotation. So, yes.

    • @Thomas_Ricks_
      @Thomas_Ricks_ 7 років тому +7

      hey, your first again!

    • @djmips
      @djmips 7 років тому +24

      Trust me, this is going to be mentioned a few more times in the comments... :/

    • @Skelpolu
      @Skelpolu 7 років тому +11

      would it be possible to see a video on that? Specifically, it'd be awesome to see the motor inside a case, maybe even with a small 3d-printed knob.

    • @killymxi
      @killymxi 7 років тому +14

      Yep. Sensitivity to small input is what actually will make it interesting.

  • @ginonigro9730
    @ginonigro9730 5 років тому

    I was looking for a way to make a rotary encoder from a HDD motor but found your instruction very interesting and easy to understand. Thanks and keep em coming.

  • @bananobanana1870
    @bananobanana1870 7 років тому +9

    what is the minimum velocity you'd need to turn it, so that it works? I guess it is a lot higher than with the incremental rotary encoder?

  • @davethesatellite7319
    @davethesatellite7319 6 років тому

    Why this only popped up on my feed today will be a mystery lost to the ages, however, its run in is impeccable, ill be using this in a super budget project within six weeks!!! Thanks @GreatScott

  • @GearDownForWhat
    @GearDownForWhat 7 років тому +3

    For quite a while I’ve thought about starting a website that would work like a hackers search engine, you type in rotary encoder, and it spits out an everyday object where you can get one, in this example, a hard drive. same with the magnets.

  • @pierreretief
    @pierreretief 7 років тому

    Another excellent, Excellent, EXCELLENT video. I have been watching your videos for a while and the are great! Your ability to take mammoth amounts of information and condense it into a few sentences is incredible. The questions you ask (and subsequently answer) are all the right questions. It reminds me of the awesome old Mythbusters episodes. Can't wait to see what you bring us in 2018!!!

  • @wiredsotu19
    @wiredsotu19 7 років тому +11

    Man I'm so much big fan of urs... I really like all video🔥🔥🔥

  • @hafizuddinmohdlowhim8426
    @hafizuddinmohdlowhim8426 7 років тому

    Not everyone in this world is generous enough to share this knowledge. Pay attention how he makes assumption and verifies it. He can do it because he understands the concept so well.

  • @harviecz
    @harviecz 7 років тому +6

    Can you make it spin by itself at low-torque while still remaining the ability to work as encoder? That would make nice DJ controller, since most controllers do not spin by themselves as vinyl deck does.

    • @hanelyp1
      @hanelyp1 6 років тому +1

      The control system would be a lot more complicated, but brushless DC motor drivers do something like that to monitor the rotation of the motor as it's driven. While power is applied between 2 phases on the motor, the 3rd is watched to observe rotation.

  • @taister211
    @taister211 Рік тому

    Stumbled on this video trying to find out how to wire a hd motor, Man I wish i knew what you were talking about in the most sincere form, Should have gone to college and studied electrical/mechanical engineering. Thanks for what you do at the very least.Cheers

  • @ScientificSolutions
    @ScientificSolutions 7 років тому +5

    Very clever application, thank you for the wonderfully detailed explanation (as always). Shouldn't it be possible to use only two of the motor phases? Instead of being ~90 degrees phase shifted (as in standard quadrature type rotary encoders) the two outputs would be ~120 degree phase shifted.

    • @mashfaqm
      @mashfaqm 7 років тому +3

      yup, im pretty sure we can. Since most incremental rotary encoders actually use 2 signals only.

    • @Enigma758
      @Enigma758 7 місяців тому

      @@mashfaqm But then there is latency since only a bit changes across the 3 phases at a time.

  • @commentsonyoutube645
    @commentsonyoutube645 7 років тому +1

    Hi,
    Only 2 outputs from compactor can be used, same way as in rotary encoder. On every interrupt just check state of one phase, and you have instant direction. Also you can start timer in INT, and read it in another, so you have rotation speed, without using processor.
    And finally use third coil to add force feed back to user. Also is possible to use multiple coils to provide sound, vibration, steps, lock, etc... I think that this could be very interesting, and relatively simple to implement in hardware.
    Thank you for your videos, and keep up with good work.

    • @Enigma758
      @Enigma758 7 місяців тому

      I think there's more to it than just checking the state of a single phase.

  • @FJB2024_
    @FJB2024_ 7 років тому +4

    You're my favorite creator. I can't wait to see what's coming up next. Almost always a learning experience. ESPECIALLY when you do mosfets and IGBT ;) I don't think we get enough examples of arduino and pi "real world interfaces". how about some home appliance hacking with an esp8266 and mqtt ?

    • @dylancruz1131
      @dylancruz1131 7 років тому

      Look at KanKun wifi smart plugs!
      They come loaded with BusyBox linux with an SSH terminal open! you can hack them and make them do whatever! really fun!

  • @lioneltechreviews9740
    @lioneltechreviews9740 7 років тому

    The best video ever from great Scott, this one beats everything you ever published. Kudos

  • @BrunoPOWEEER
    @BrunoPOWEEER 7 років тому +37

    Ohhh I have a collection of motors here (all sizes and power levels) thaaanks for the inspiration... rotary encoder POWEEEEEERRR hahaaa =]

  • @snchit4575
    @snchit4575 7 років тому

    Was about to search how to use hard drive motors and stumbled on this one.. You really are the best greatscott

  • @jmkdev
    @jmkdev 5 років тому +5

    GreatScott: *makes super easy to understand circuit and code*
    Me: Wow! That’s sup-
    GreatScott: EXTERNAL INTERRUPTS

  • @ntnsonwale4381
    @ntnsonwale4381 7 років тому +2

    Great Scott you are really creative !!!!
    I think you are best on UA-cam for electronics with creativity !!

  • @hawkgaming8773
    @hawkgaming8773 7 років тому +10

    Scot the DJ

  • @maxximumb
    @maxximumb 7 років тому

    That could make a cool input for so many projects. Finally a use for the dozens of old HDD parts I've collected.

  • @razvan6936
    @razvan6936 7 років тому +8

    A video about a volume control with rotary encoder would be great!

    • @hafizuddinmohdlowhim8426
      @hafizuddinmohdlowhim8426 7 років тому

      razvan_wasd you don't need to use encoder to do volume control. Encoder is used to measure quantitive measurements like distance, RPM

  • @Taran72
    @Taran72 6 років тому

    Glad to be one of your many Patreaon supporters! Great video and great topic. I also learned about another source of three phase power for some of my projects. thanks again: I will definitely do this project.

  • @hotfreshrider
    @hotfreshrider 7 років тому +3

    I've always wondered this, would love to see some Arduino code to turn it into a HID master volume control.

    • @Gameplayer55055
      @Gameplayer55055 4 роки тому

      You can use digispark, or standart Arduino with serial, but with soft on pc

  • @willofirony
    @willofirony 7 років тому

    Awesome! am not suggesting that I will be stripping down my HDDs for their motors anytime soon, but I AM impatiently waiting for one of them to stop working. Thanks for this video and have a very happy new year!

  • @Candy-uo8sv
    @Candy-uo8sv 6 років тому +3

    Make it so if you spin it faster it changes faster

  • @fCauneau
    @fCauneau 7 років тому

    Awesome !! Thanks so much !! We all got zillions of such drives, stored in dark caves, and a-waiting the time we give them a second life. You restore hope ;-)

  • @locha9827
    @locha9827 7 років тому +205

    So you just made electric fidget spinner

    • @nightmareinaction629
      @nightmareinaction629 7 років тому +8

      Lexa9966 fuck no its not a fidget spinner

    • @ppprdr4666
      @ppprdr4666 7 років тому +26

      how to delte others posts

    • @samsawesomeminecraft
      @samsawesomeminecraft 7 років тому +7

      flag as spam/inappropriate

    • @TR2000LT
      @TR2000LT 6 років тому +2

      @@samsawesomeminecraft OKAY I'D SAY IT'S VERY INAPPROPRIATE! LET ME FLAG..

  • @jitennagar6846
    @jitennagar6846 7 років тому

    Great presentation Scott the way you explain is way better than my professors at College thank you

  • @xxmountaindewxx7893
    @xxmountaindewxx7893 7 років тому +10

    How is your English so good? Mine is under all pig.

    • @greatscottlab
      @greatscottlab  7 років тому +5

      Haha, I would not say that my English is that good but you learn a lot after 4 years of producing english videos.

    • @pauhull
      @pauhull 7 років тому

      lmao

  • @abhijitrashinkar
    @abhijitrashinkar 4 роки тому

    You are too good Scott, I love watching you work.

  • @chraso
    @chraso 7 років тому +3

    ur amazing electrical engineer. do u teach?

  • @carmelpatrik
    @carmelpatrik 7 років тому

    most anticipated videos ever

  • @spicymemeboi2646
    @spicymemeboi2646 7 років тому +28

    That's one useful fidget spinner...

    • @cessposter
      @cessposter 4 роки тому

      Not so Spicy Meme, Boi.

  • @ictrepairs6963
    @ictrepairs6963 7 років тому +1

    You really rock man. Keep on creating great contents like usual.... I would like to know more about your background. You use elettronics with extreme confidence making complicate things looking simple. Amazing!

  • @233kosta
    @233kosta 5 років тому +4

    This is probably better used as a rotational speed sensor

    • @cedricpod
      @cedricpod 5 років тому

      especially as the signal levels rise as the speed rises

    • @robbielerenne594
      @robbielerenne594 5 років тому

      Great idea but I don't know if there is a law between the output voltage of the motor and the speed, and if it is Linear

    • @233kosta
      @233kosta 5 років тому

      @@robbielerenne594 That's irrelevant. All you need is a Schmitt trigger and a quiet signal path to it (a wee bit of coax will do it). On the other side you're counting pulses just like a normal encoder.
      Your arduino will quite happily play frequency counter (or more likely - frequency timer) and tell you how fast you're turning it as long as there's enough signal to set off the Schmitt trigger (so maybe not 0.02 rpm :P). Connect two windings to the arduino (separate inputs) and you can also tell which way it's going.

    • @233kosta
      @233kosta 5 років тому

      @@robbielerenne594 Also, yes there is and no, it's not. What you've got there is essentially a fairly inefficient (compared to purpose-built units) three phase permanent magnet synchronous generator. Y'ain't gettin' power out of 'er, but you'll get enough AC on the other end to run some high impedance logic (see last comment).
      You also want to make sure the arduino itself is well protected from the motor. These are sizeable inductors near some skookum magnets and unless you're willing to splash on a good scope and spend a few evenings testing the thing to death I would NOT count on that signal being too weak to damage your inputs. Send it into something high impedance, make sure it's not something that will short its input to its output lines when it fails, and count the pulses ;)
      Also, do NOT connect a 2.2mF electrolytic cap to the 5V regulated output of your arduino with no current limiting :D

  • @rjinnh3933
    @rjinnh3933 5 років тому +2

    As usual, great content and great presentation from Great Scott, who is always GREAT!
    A fun project would be to add some audio FeedBack for each 'tick' as when a key is tapped on a smart phone and then add a little 'KICK' with reverse voltage back into the phases to produce tactile FeedBack.
    Again, GREAT vid.
    Russ in NH

    • @joveaaron-real
      @joveaaron-real 2 роки тому

      Hi, this could be made using a Taptic Engine from an iPhone/iPad.

  • @filipbitzan5208
    @filipbitzan5208 7 років тому +11

    One question. Why did you upload a video on Saturday instead of the usual Sunday?

    • @greatscottlab
      @greatscottlab  7 років тому +38

      Because I and probably other people as well have other things to do on the 31.12.

    • @cerealtech4138
      @cerealtech4138 7 років тому +1

      GreatScott! Would you consider to add an indipendent monitor to your cheap usb microscope using a raspberry pi (maybe the zero version)..
      sorry for the OT

    • @tommihommi1
      @tommihommi1 7 років тому +1

      GreatScott! didn't you build a firing system for fireworks some time ago? Have fun!

    • @Peepdoop
      @Peepdoop 7 років тому +3

      my other thing to do is to get shitfaced and cry about my life on a hill i know til newyear comes

    • @cerealtech4138
      @cerealtech4138 7 років тому +1

      MCA sounds funny

  • @shaileshshukla3610
    @shaileshshukla3610 7 років тому

    2017 ends with this good project.... keep making videos they are the knowledge junction for me... One place to learn a lot in electronics....👌👌👍👍☺☺

  • @floriang7435
    @floriang7435 7 років тому +3

    Evan Kale did this with an Dvd Drive Motor. Pretty cool Check out his Channel

  • @Makenitso
    @Makenitso 7 років тому

    Nicely done!
    HDD motors are good fun to play with, i'll have to mess around with one using your circuit and code thanks :)
    Oh and good job on the advert, it's rare that youtube ad's are useful

  • @rtarade1
    @rtarade1 7 років тому +13

    Can you program Arduino wirelessly ?

    • @greatscottlab
      @greatscottlab  7 років тому +9

      I think so

    • @rtarade1
      @rtarade1 7 років тому +2

      Can you add this to your "To Do list"?

    • @greatscottlab
      @greatscottlab  7 років тому +13

      I am not interested in that. Google it. I bet there are plenty of tutorials about this out there.

    • @Patrik2166
      @Patrik2166 7 років тому +3

      You can do that over WiFi, BT or even with radio signals. It's all about creativity

    • @philliptoone
      @philliptoone 7 років тому

      Rajat Tarade I would REALLY like to know how to do this. I've looked into it (Google) but haven't figured it out. If anyone can point me I the right direction I would be VERY appreciative. Specifically I would like to be able to program an arduino from an Android device over Bluetooth.

  • @Daytona574
    @Daytona574 7 років тому

    This is awesome. I have a couple old VCR heads I've considered doing the same to. Never considered 2 of the phases would reverse depending on direction. Time to take a look....

  • @KrisX7331
    @KrisX7331 7 років тому +4

    Can you explain how three phase electricity works.Im talking about mains electricity.

    • @greatscottlab
      @greatscottlab  7 років тому +8

      I put it on my to do list

    • @FJB2024_
      @FJB2024_ 7 років тому

      yeah, especially how watts are measured across three phases! - maybe even a BLDC 2 phase to 2 phase converter !

    • @lezenfilms
      @lezenfilms 7 років тому

      GreatScott! Specifically knowing how many generators started at different times and places can all be in phase supplying mains power

    • @FJB2024_
      @FJB2024_ 7 років тому

      they will auto sync.

    • @KrisX7331
      @KrisX7331 7 років тому

      Ariel Lezen I think its one generator just with 3 coils like 3 phase motor. I could be wrong tho

  • @robertkosmac5971
    @robertkosmac5971 5 років тому

    This gave me so much joy to watch - I happen to have 3 HDD's waiting my deconstruction ;)

  • @videolabguy
    @videolabguy 7 років тому +4

    Great video! However... You only need two of the phases. Typical encoders operate in quadrature or 90 degrees. Yours operates in tritrature? or 3 phase. Wasteful. Also, no detectable output at very slow rotation. On a normal encoder, connect both outputs to an XOR gate and you double the pulses per rotation. Connect phase one to the clock pin of a 74HC74 D flip flop and the phase 2 to the D input. Now the Q output will indicate direction and the XOR gate output gives you finer resolution steps. This little bit of hardware "preprocessing" will free up the highly precious processing time in your microcontroller. For actual useful purposes, never process hardware pulses in software. A processor using 98% of its processing time to read a switch is just plain wasteful.

  • @GadgetReviewVideos
    @GadgetReviewVideos 7 років тому

    Take the platters and hang them at different lengths from some string, they make neat wind chimes, nice sound, and the reflections from the sun create nice color reflections.

  • @deadchords4919
    @deadchords4919 7 років тому +3

    you help me continoue my electronics thanks!

  • @jeffbeck6501
    @jeffbeck6501 7 років тому

    Such amazing video production. Perfect lighting. He's called GreatScott for a reason.

  • @ReevansElectro
    @ReevansElectro 7 років тому +4

    It is funny how you say that you will see us next time that we don’t ever see you and you never see us.

  • @ruenahcmohr
    @ruenahcmohr 7 років тому +2

    For a hand operated encoder, I found that what worked really nicely, was taking a dc motor, hooking each side to an adc channel, centering one side at 2.5V, doing a diff of the values of the two channels, and integrating the value for position. There was a LOT less drift than I thought there would be, its easy, give it a shot! I did it for my new CNC pendant. ... which apparently.... I didn't do a build log of.... }:-/ ... and I didn't post on thingiverse.... }:-/ ok, hmm, if anyone cares or is interested, give me a shout.

  • @humongouschungus1856
    @humongouschungus1856 5 років тому +23

    Anyone watching in 2019?

  • @abhijithalder4567
    @abhijithalder4567 7 років тому

    lov u man...lov to all the commentetors.......every time u upload video...i watch few days later and all those remaining part get cleard in those coment...hi hi....keep up good work..
    :)

  • @Timmymantwo
    @Timmymantwo 7 років тому +5

    Does JLCPcb ship to the UK?

    • @greatscottlab
      @greatscottlab  7 років тому +3

      I think so

    • @jort93z
      @jort93z 7 років тому +2

      I think they ship everywhere but china pretty much.

    • @Ohm7111
      @Ohm7111 7 років тому

      But shipping is pretty expesive. You will pay 2$ for PCBs and 9$ for cheapest shipping. So they obviously making money on shipping. But still worth it.

    • @nightmareinaction629
      @nightmareinaction629 7 років тому

      Ohm711 if you buy more than one shipping rarely changes

    • @Ohm7111
      @Ohm7111 7 років тому

      I am from Europe and shipping on my first order was 8.9$ via China post. Plus 2$ for PCBs.

  • @klazzera
    @klazzera 4 роки тому

    hello, i've done a similiar project in the past, but instead of using each period of the sine wave as a one step, i calculated the angle of the rotor continuously with practically infinite resolution only limited by the resolution of the ADC. the three phase voltage values are actually x-y-z coordinates on a tilted circle in 3d space. the normal vector of the circle was (1,1,1) as far as i remember, and doing some simple trigonometry, you can calculate the exact angle of the rotor as long as it's rotating fast enough to generate a measurable voltage. you can calculate the speed from the angle itself, however, the radius of the circle is also the speed itself.

  • @aneesh2033
    @aneesh2033 7 років тому +3

    Sunday?

  • @michael-rommel
    @michael-rommel 7 років тому

    Jetzt weiss ich endlich, warum ich all die alten Festplatten aufgehoben hab... Super Video mal wieder!!! THX!

  • @kkuhn
    @kkuhn 7 років тому +38

    wotawy encowdas

  • @bergamt
    @bergamt 7 років тому

    You can do the same thing with a stepper motor and get multiple ticks per rotation. It can be really useful if you run out of rotary encoders and have a spare motor.

  • @necoisidois7570
    @necoisidois7570 7 років тому +10

    Tabi pek sağlıklı bir encoder değil,
    Dönüş hızına ve süresine göre etki derecesi değişmekte.
    Çok yavaş dönüşte enerji üretemeyeceği için sapmalar meydana gelir.
    Ama çalışma mantığı açısından başarılı bir çalışma olmuş.
    Teşekkürler dostum..

    • @burakdemirelli
      @burakdemirelli 7 років тому

      Necois Idois kanalın sahibi Türk değil farkındaysan

    • @necoisidois7570
      @necoisidois7570 7 років тому +3

      Burak Demirelli,
      Kankam o benim. Alman.
      Farkındayım tabi ki kardeşim.

    • @turanvarolsun747
      @turanvarolsun747 7 років тому

      Türkçe biliyormuki bu alman kardeşimiz.

    • @necoisidois7570
      @necoisidois7570 7 років тому +1

      Yiğit Alp Karakaş, yok sanmıyorum.
      Ama Google Translate sağolsun ;)

    • @turanvarolsun747
      @turanvarolsun747 7 років тому

      :D

  • @tyronenelson9124
    @tyronenelson9124 7 років тому

    The rotary encoder dials you find in digital stereo equipment with only 3 pins work differently to that one, the cpu in the stereo just registers the order in which the pins get connected together to determine the rotation of the dial to either increase or decrease the volume, thats what i think anyway

  • @m.schiller
    @m.schiller 7 років тому +3

    German subtilels?

    • @greatscottlab
      @greatscottlab  7 років тому +5

      The community subtitle function is enabled. Feel free to add them.

    • @casemodder89
      @casemodder89 7 років тому

      Arm, das man einen deutschen youtuber nach deutschen untertiteln fragen muss 🙄

    • @m.schiller
      @m.schiller 7 років тому

      casemodder89 ich meine ob er deutsche Untertitel einblenden könnte in den Videos für damit die Leute die nicht so gut Englisch können auch mehr ferstehen

    • @konrad759
      @konrad759 7 років тому +3

      casemodder89 Aber besagter "deutscher UA-camr" macht englischen content - warum sollte er auch noch deutsche Untertitel hinzufügen? Die Mehrheit kann heute Englisch ohne Probleme verstehen (zudem ist das im Video verwendete wirklich extrem gut und einfach verständlich). Mit seiner Taktik spricht er einfach die größtmögliche Ziepgruppe mit kleinstmöglichen Aufwand an (obwohl der Aufwand der reinfließt immer noch immens ist...)

    • @m.schiller
      @m.schiller 7 років тому

      Rcmodellbau_DE ich ferstehe ja auch alles gut und er macht das echt gut es wäre nur so eine Idee für andere

  • @simtubes
    @simtubes 7 років тому

    It's possible to get an instantaneous position by magnetizing the coils with a short pulses. For example, using your ESC, pulse each coil combination with a short pulse (just to avoid much heating) and note the comparator outputs on the 'scope. By measuring the decay times, you can actually translate the position accurately.
    It might also be cool to make some sort of enhanced magnetic detent / user feedback this way as well. This probably wouldn't work very well for something that has to not take too much power, though, without some sort of sleep state.

  • @sophiatheodores7985
    @sophiatheodores7985 7 років тому +9

    i'ts CEOUNTERclockwaise
    notheng persannel, guod veds as awlays

    • @Panj0
      @Panj0 7 років тому +1

      both are fine, what's the problem?

    • @mathieuclement8011
      @mathieuclement8011 7 років тому +7

      Anticlockwise (or anti-clockwise) is also correct. More common in British English than in American English.

    • @0x8badf00d
      @0x8badf00d 7 років тому +4

      * personal

    • @sophiatheodores7985
      @sophiatheodores7985 7 років тому

      how thick are you oskar

    • @0x8badf00d
      @0x8badf00d 7 років тому +8

      Almost as fat as your mother.

  • @nockieboy
    @nockieboy 7 років тому +2

    Awesome stuff. Here's to another good year of great content! Also, loved the first pronunciation of rotary - 'rotawee' 👍😁

  • @mayROBO
    @mayROBO 7 років тому

    I had a couple of harddisks laying around and I was hating the idea of throwing those motors, thank you so much for the idea. I might use them for some project. :-)

  • @BenWillBarrows
    @BenWillBarrows 3 роки тому

    Great! Thank you. I've got a collection of motors of all sorts. Some are like this one, and I now understand how I can make use of it.

  • @kurtnelle
    @kurtnelle 7 років тому

    I've found a paper that says, if you energize one of the phases of a stepper motor, you can also make it a rotary encoder. Except that it will create noticeable, desirable detents when the user is moving it.

  • @AltHistoryX
    @AltHistoryX 6 років тому

    One of the Best UA-cam Videos and Channels I've ever seen!!

  • @AtticusDraco
    @AtticusDraco 7 років тому

    mind blown
    never ever considered that hack
    patiently waiting for a HDD to go bad now

  • @aarondcmedia9585
    @aarondcmedia9585 7 років тому

    3-input scope!!? Clearly I need an upgrade...
    Love your videos - they are inspirational content, clarity and production.

  • @LyneisFilm
    @LyneisFilm 2 роки тому

    Brilliant. I took one of these motors apart, but missed the fact that the outer ring which rotates has multipole permanent magnet, which then easily driven by the internal coils.

  • @D0t0ne
    @D0t0ne 7 років тому

    I have no idea what this guy talks about 99% of the time but still I watch his videos religiously to the very end. Ready to bet I am not the only one, or am I!

  • @electrospark1765
    @electrospark1765 7 років тому

    Thanks great Scott we love you great Scott from India

  • @karlswartz1308
    @karlswartz1308 4 роки тому

    Incredibly neat work, a joy to watch!

  • @devhassanmehdi
    @devhassanmehdi 7 років тому

    Am i the only one here who dont understand a single thing but still loves to watch Scott's projects? aha

  • @TheJay6621
    @TheJay6621 7 років тому +1

    For me This is full of new concepts.. thanks.. for your time and efforts.

  • @pietervanniekerk4453
    @pietervanniekerk4453 4 роки тому

    I use JLPCB for my business .... the quality of PCB's they manufacture superb , delivery excellent ! Highly recommend

  • @ChristianJoyAzucenas
    @ChristianJoyAzucenas 7 років тому

    As always, awesome video mate
    Btw Happy New Year

  • @TheMix1017
    @TheMix1017 4 роки тому

    The V-level dependance on speed of rotation is a main problem even with a squaring amps. You will shurely loose some of encrements if apply this as positioning encoder. Look at price of normal optical encoder. It is cheap, precise and perfect. Just use motor as motor.

  • @CharlesVanNoland
    @CharlesVanNoland 6 років тому

    I have a bunch of different encoders, some of them are the small clicky types like you have but I have ones that are completely smooth too in the same form factor and larger ones too - they are optical encoders.

  • @stevenA44
    @stevenA44 5 років тому

    This is interesting. I have quite a few of the motors from old hard drives. I might be able to make use of them now. Thanks.

  • @jackster1208
    @jackster1208 7 років тому

    Your my teacher in electronics, your so smart and creative. Keep it up good jog

    • @xJacpotx
      @xJacpotx 7 років тому

      Who is your English teacher?