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

แชร์
ฝัง
  • เผยแพร่เมื่อ 24 พ.ย. 2024

ความคิดเห็น • 1K

  • @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....

  • @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

  • @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 6 หลายเดือนก่อน

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

  • @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.

  • @alfonssiggler6652
    @alfonssiggler6652 7 ปีที่แล้ว +404

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

    • @greatscottlab
      @greatscottlab  7 ปีที่แล้ว +31

      Thanks for the feedback. I will give it my best in 2018 as well.

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

      You mean 12018?

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

      +redstone craft guy i saw what you did there

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

      Yeah , i also.

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

      Hope you hit 1M subs in 2018.

  • @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.

  • @zanpekosak2383
    @zanpekosak2383 6 ปีที่แล้ว +65

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

    • @calebevans9562
      @calebevans9562 4 ปีที่แล้ว +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. =/

  • @moiquiregardevideo
    @moiquiregardevideo 4 ปีที่แล้ว +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.

  • @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.

  • @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.

  • @dave_dennis
    @dave_dennis 6 ปีที่แล้ว +4

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

  • @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.

  • @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.

  • @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.

  • @commentsonyoutube645
    @commentsonyoutube645 6 ปีที่แล้ว +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 6 หลายเดือนก่อน

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

  • @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 6 ปีที่แล้ว +10

      TH-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.

  • @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

  • @GearDownForWhat
    @GearDownForWhat 6 ปีที่แล้ว +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.

  • @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.

  • @jaredcohen9552
    @jaredcohen9552 7 ปีที่แล้ว +60

    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.

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

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

  • @harviecz
    @harviecz 6 ปีที่แล้ว +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.

  • @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.

  • @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

  • @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.

  • @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

  • @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.

  • @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!

  • @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.

  • @Candy-uo8sv
    @Candy-uo8sv 6 ปีที่แล้ว +3

    Make it so if you spin it faster it changes faster

  • @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

  • @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 6 หลายเดือนก่อน

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

  • @ruenahcmohr
    @ruenahcmohr 6 ปีที่แล้ว +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.

  • @spicymemeboi2646
    @spicymemeboi2646 7 ปีที่แล้ว +28

    That's one useful fidget spinner...

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

      Not so Spicy Meme, Boi.

  • @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.

  • @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 =]

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

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

  • @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

  • @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.

  • @hawkgaming8773
    @hawkgaming8773 7 ปีที่แล้ว +10

    Scot the DJ

  • @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....👌👌👍👍☺☺

  • @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

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

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

  • @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..

  • @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

  • @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

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

    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....

  • @chraso
    @chraso 7 ปีที่แล้ว +3

    ur amazing electrical engineer. do u teach?

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

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

  • @floriang7435
    @floriang7435 7 ปีที่แล้ว +3

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

  • @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.

  • @deadchords4919
    @deadchords4919 7 ปีที่แล้ว +3

    you help me continoue my electronics thanks!

  • @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. :-)

  • @ReevansElectro
    @ReevansElectro 6 ปีที่แล้ว +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.

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

    I never thought that this kind of things would be possible, I knew that you could get voltage from a motor, but using it as an alternative to an encoder? Dang, now I know what to do with those 2 hard drive motors I've got laying around.

  • @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!

    • @gertvarva
      @gertvarva 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

  • @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.

  • @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.

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

    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.

  • @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.

  • @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!!!

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

    Anyone watching in 2019?

  • @michael-rommel
    @michael-rommel 7 ปีที่แล้ว

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

  • @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

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

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

  • @aneesh2033
    @aneesh2033 7 ปีที่แล้ว +3

    Sunday?

  • @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!

  • @kkuhn
    @kkuhn 7 ปีที่แล้ว +38

    wotawy encowdas

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

    I recall a couple few arcade games used something like that. I loved the one with the spinning ball.

  • @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.

  • @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!

  • @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 TH-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

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

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

  • @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.

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

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

  • @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.

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

    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.

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

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

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

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

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

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

  • @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.

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

    Old hard drives are worth it for the magnets, they are extremely strong. I made the mistake of messing around with them and got a pretty hefty pinch. They are quite useful though for certain things.

  • @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 ;-)

  • @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..
    :)

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

    Very cool, I have a bunch of these old motors laying around in my back room. I have always been a sort of hoarder of electronic parts, even as a young boy, I would tear apart old radios, and unwrap the old waxy capacitors, then use the foil as a sort of reflector around my bedroom. These could easily be used as volume controls for the little DF MP3 players when properly coded in the Arduino IDE. I have been toying with such an idea using plain old rottary encoders, but this looks even more geeky! I may be an old fart, but I do love geeky!

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

    I like your hand drawn diagrams - very neat!

  • @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!

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

    that is a nice idea! Great, Scott :-) most CD/DVD drives also uses BLDC motors to spin the CD - but smaller ones. Maybe that is interresting when space matters :)
    Additionaly they have hall effekt-sensors to play with.

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

    Wow! This is such a cool idea!
    I seriously love your videos because every week you have a particular idea and no vlogging bullshit like "I recently bought some supercaps, expect a video about them next week..."! You even build things like the pov fan, etc. in a single video! So, thanks, man, for your videos!
    What do you think of a project with some kind of laser projector? You probably would be easily able to build a crude oscilloscope because you built one out of the CRT-TV. I also liked the idea (I found on the internet) of moving the mirrors with a little speaker. Do you like such an idea?
    Greetings, and a Happy New Year!

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

    Can be a great project to create a dj deck player to control the song way forward or backward. Great video by the way

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

    I keep expecting sparks and curse words whenever you hook up an alligator clip. XD

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

    Awesome! That's a really impressive "up-cycling" for a HD motor. I'll have to try it out too! :D

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

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