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

Поделиться
HTML-код
  • Опубликовано: 30 сен 2024

Комментарии • 1 тыс.

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

  • @suryanshthakur5820
    @suryanshthakur5820 4 года назад +8

    One like for the motor sacrificed.

  • @alfonssiggler6652
    @alfonssiggler6652 6 лет назад +403

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

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

  • @aggeloskoumaniotis
    @aggeloskoumaniotis 6 лет назад +68

    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  6 лет назад +8

      Thanks for the feedback

    • @leemathoo6583
      @leemathoo6583 5 лет назад

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

  • @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 4 месяца назад

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

  • @sorin.n
    @sorin.n 6 лет назад +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.

  • @KerryWongBlog
    @KerryWongBlog 6 лет назад +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.

  • @PolakPL2002
    @PolakPL2002 6 лет назад +237

    Is it possible to increase sensitivity of the encoder?

    • @greatscottlab
      @greatscottlab  6 лет назад +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_ 6 лет назад +7

      hey, your first again!

    • @djmips
      @djmips 6 лет назад +24

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

    • @Skelpolu
      @Skelpolu 6 лет назад +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 6 лет назад +14

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

  • @jaredcohen9552
    @jaredcohen9552 6 лет назад +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 6 лет назад +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  6 лет назад +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 6 лет назад +3

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

    • @z4nadeesh
      @z4nadeesh 6 лет назад +7

      Analog to digital converters are generally slow and takes up more processor time. ISR and digital comparisons usually take lot less CPU time. ( Edit: Also you could use the ADC for something else instead of wasting it on a rotary encoder)
      And I think it can be sped up by tweaking the code

    • @Fawks
      @Fawks 6 лет назад +3

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

  • @bananobanana1870
    @bananobanana1870 6 лет назад +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?

  • @BrunoPOWEEER
    @BrunoPOWEEER 6 лет назад +37

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

  • @locha9827
    @locha9827 6 лет назад +205

    So you just made electric fidget spinner

    • @nightmareinaction629
      @nightmareinaction629 6 лет назад +8

      Lexa9966 fuck no its not a fidget spinner

    • @ppprdr4666
      @ppprdr4666 6 лет назад +26

      how to delte others posts

    • @samsawesomeminecraft
      @samsawesomeminecraft 6 лет назад +7

      flag as spam/inappropriate

    • @TR2000LT
      @TR2000LT 6 лет назад +2

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

  • @xxmountaindewxx7893
    @xxmountaindewxx7893 6 лет назад +10

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

    • @greatscottlab
      @greatscottlab  6 лет назад +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 6 лет назад

      lmao

  • @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 5 лет назад +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.

  • @randomizer3775
    @randomizer3775 5 лет назад +1

    As of 12/24/2018 look like 528 thumb down was on accident due to passing out from brain overload during the viewing of this lesson.

  • @raymondmichael4987
    @raymondmichael4987 6 лет назад +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

      RUclips is full of psycho trolls who will thumb down even without watching.

    • @leemathoo6583
      @leemathoo6583 5 лет назад

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

    • @elevatormaniacgames
      @elevatormaniacgames 5 лет назад

      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 4 года назад

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

  • @davethesatellite7319
    @davethesatellite7319 6 лет назад +1

    Do you think the same methods could apply to a CD drive motor?

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

  • @Berred
    @Berred 6 лет назад +1

    6:35 Almost the same motor I've used here ruclips.net/video/37tUzxodYGE/видео.html
    nice video!

  • @ScientificSolutions
    @ScientificSolutions 6 лет назад +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 6 лет назад +3

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

    • @Enigma758
      @Enigma758 4 месяца назад

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

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

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

  • @techisgod
    @techisgod 6 лет назад +1

    My homemade Six Digit, 20MHz, CD74HC192 Up-Down counter circuit counts Quadrature Encoder pulses at 20Mhz speeds. And seems to be many times faster than using my PIC16F887 microcontrollers.
    Can you tell me why?

    • @MrIzo56
      @MrIzo56 5 лет назад

      If you look at the PIC16F887 datasheet it has 8Mhz to 32khz software selectable frequency range. Your homemade circuit runs at 20Mhz.

  • @233kosta
    @233kosta 4 года назад +4

    This is probably better used as a rotational speed sensor

    • @cedricpod
      @cedricpod 4 года назад

      especially as the signal levels rise as the speed rises

    • @robbielerenne594
      @robbielerenne594 4 года назад

      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 4 года назад

      @@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 4 года назад

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

  • @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 6 лет назад +28

    That's one useful fidget spinner...

    • @cessposter
      @cessposter 3 года назад

      Not so Spicy Meme, Boi.

  • @JohannSwart_JWS
    @JohannSwart_JWS 5 лет назад +1

    OK, that's cool. But what if you turn the motor very slowly, such as what you would do with a rotary encoder to set values. Will the induced voltages be high enough for the comparator to detect?

    • @baddoer
      @baddoer 5 лет назад

      I guess you might need to feed star input with sample PWM signal and compare coil outputs with sample. Instead of working as generator they will act as a variable inductors.

  • @floriang7435
    @floriang7435 6 лет назад +3

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

  • @DanielsGameVault
    @DanielsGameVault 6 лет назад

    Now please do the opposite: RUN a hard drive motor at stupid speeds :D Of course, just use the drive's board is what you'll say, but that's not really DIY is it, plus some don't run without the heads present or if the disks are unreadable (which they are by default, since it's not meant to be opened)

  • @videolabguy
    @videolabguy 6 лет назад +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.

  • @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 4 месяца назад

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

  • @FJB2024_
    @FJB2024_ 6 лет назад +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 6 лет назад

      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!

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

  • @hotfreshrider
    @hotfreshrider 6 лет назад +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

  • @PabloGnesutta
    @PabloGnesutta 5 лет назад +1

    I really love all your content Scott!
    I'm really a beginner with electronics and there are bits (or megabytes) of information that I miss.
    I'm wondering, for me to understand these, as you call "simple" schematics, what are the principles that I must learn?
    And, do you recommend any platform, site, webpage, youtube channel (yours maybe?) where I can find that information?
    I'm an electrician and therefore got knowledge about certain circuits, but electronics exceed it.
    Anyway, thanks for sharing your wisdom in such a comprehensive way, it's really a gift.

  • @Candy-uo8sv
    @Candy-uo8sv 6 лет назад +3

    Make it so if you spin it faster it changes faster

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

  • @humongouschungus1856
    @humongouschungus1856 5 лет назад +23

    Anyone watching in 2019?

  • @nikolafaraday7173
    @nikolafaraday7173 6 лет назад +1

    Great video! Why add the hysteresis to the comparators though? Is it to make sure the voltage from each phase of the BLDC motors is going below 0 before switching back to 0 at the output of the op amp?

  • @wiredsotu19
    @wiredsotu19 6 лет назад +11

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

  • @iAlexx18
    @iAlexx18 6 лет назад +1

    What do you think about making a series on "Advanced Arduino" programming?
    There's things like interrupts or register manipulation that I've seen and that I understand in theory, but I don't know their syntaxes or some useful applications (like the one in this video). And I'm sure there's also a lot of things I've never heard of, and I wouldn't even know how to look for, so I'd be very interested to learn.
    Anyways, great job as always, and happy new year!

  • @chraso
    @chraso 6 лет назад +3

    ur amazing electrical engineer. do u teach?

  • @SouthShoreSonics
    @SouthShoreSonics 9 месяцев назад

    Actually the MCP602 is NOT input rail to rail, only output. Use an MCP6002 or an MCP6022 instead.

  • @filipbitzan5208
    @filipbitzan5208 6 лет назад +11

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

    • @greatscottlab
      @greatscottlab  6 лет назад +38

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

    • @cerealtech4138
      @cerealtech4138 6 лет назад +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 6 лет назад +1

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

    • @gertvarva
      @gertvarva 6 лет назад +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 6 лет назад +1

      MCA sounds funny

  • @balazskoti2603
    @balazskoti2603 6 лет назад +2

    You shold have used the analog values to determine the speed of rotation and use that as the speed of incrementation for the value.

    • @hanelyp1
      @hanelyp1 5 лет назад

      That still depends on reading the analog value for the peak.

  • @jmkdev
    @jmkdev 5 лет назад +5

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

  • @nockieboy
    @nockieboy 6 лет назад +2

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

  • @razvan6936
    @razvan6936 6 лет назад +8

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

    • @hafizuddinmohdlowhim8426
      @hafizuddinmohdlowhim8426 6 лет назад

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

  • @BrainSlugs83
    @BrainSlugs83 6 лет назад +1

    That's really cool! -- I'm kind of excited to try this. -- Though, a couple of items of feedback: If you're going to solder and resolder wire like that, consider using silicone wire, the plastic covering won't melt, and shrink away like it did in the video @7:30 -- secondly, in your example, you're spinning the motor around like 3 or 4 times for one click? -- That seems to not be very useful -- I'd rather have a much more minute control, like, at least 256 clicks per rotation (if not 1024) - which would be way useful for measuring movement I think (you could always divide it if you wanted something less) -- is that possible with these motors? (Is it just software, or can the hardware not do that?)

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

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

  • @hawkgaming8773
    @hawkgaming8773 6 лет назад +10

    Scot the DJ

  • @FrozenHaxor
    @FrozenHaxor 6 лет назад

    Doesn't increment or decrement values with respect to the rotation speed. Defeats the point of working as a rotary encoder. You should implement frequency measurement, doesn't make any sense at this point.

  • @rtarade1
    @rtarade1 6 лет назад +13

    Can you program Arduino wirelessly ?

    • @greatscottlab
      @greatscottlab  6 лет назад +9

      I think so

    • @rtarade1
      @rtarade1 6 лет назад +2

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

    • @greatscottlab
      @greatscottlab  6 лет назад +13

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

    • @Patrik2166
      @Patrik2166 6 лет назад +3

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

    • @philliptoone
      @philliptoone 6 лет назад

      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.

  • @sharedinventions
    @sharedinventions 6 лет назад

    You can determine the spinning direction with this method, but it is not capable to replace a rotary encoder e.g. to control things with it. Am I right? (Still a good idea tho.)

  • @kkuhn
    @kkuhn 6 лет назад +38

    wotawy encowdas

  • @kennethkustren9381
    @kennethkustren9381 4 года назад

    SHEEESH.... WONT A NEMA17 STEPPER ALSO WORK ??
    Funny watching a NEMA17 FIRING LEDS without a battery too.
    I guess much work is left to me.
    A spring-loaded spool, a NEMA17....
    A CLOSED LOOP SPOOLED CABLE/CHAIN, AND A NEMA17,...
    A HANDWHEEL AND H-BRIDGE ...

  • @KrisX7331
    @KrisX7331 6 лет назад +4

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

    • @greatscottlab
      @greatscottlab  6 лет назад +8

      I put it on my to do list

    • @FJB2024_
      @FJB2024_ 6 лет назад

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

    • @lezenfilms
      @lezenfilms 6 лет назад

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

    • @FJB2024_
      @FJB2024_ 6 лет назад

      they will auto sync.

    • @KrisX7331
      @KrisX7331 6 лет назад

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

  • @andres154525452
    @andres154525452 6 лет назад +1

    Hey! That was a flawlessly video! But the "encoder" has a very slow incremente, not so "fluid"... How do I make ir more fluid!? That whould be awsome! Kkkkkkk

  • @deadchords4919
    @deadchords4919 6 лет назад +3

    you help me continoue my electronics thanks!

  • @3deeguy
    @3deeguy 6 лет назад +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!

  • @aneesh2033
    @aneesh2033 6 лет назад +3

    Sunday?

  • @ictrepairs6963
    @ictrepairs6963 6 лет назад +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!

  • @m.schiller
    @m.schiller 6 лет назад +3

    German subtilels?

    • @greatscottlab
      @greatscottlab  6 лет назад +5

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

    • @casemodder89
      @casemodder89 6 лет назад

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

    • @m.schiller
      @m.schiller 6 лет назад

      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 6 лет назад +3

      casemodder89 Aber besagter "deutscher RUclipsr" 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 6 лет назад

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

  • @ariad7452
    @ariad7452 6 лет назад +2

    Watching this on New Year's Eve (GMT +8)

  • @Timmymantwo
    @Timmymantwo 6 лет назад +5

    Does JLCPcb ship to the UK?

    • @greatscottlab
      @greatscottlab  6 лет назад +3

      I think so

    • @jort93z
      @jort93z 6 лет назад +2

      I think they ship everywhere but china pretty much.

    • @Ohm7111
      @Ohm7111 6 лет назад

      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 6 лет назад

      Ohm711 if you buy more than one shipping rarely changes

    • @Ohm7111
      @Ohm7111 6 лет назад

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

  • @kutay_ozkeskin
    @kutay_ozkeskin 6 лет назад

    How can you remain your soldering iron that clean ? mine got realy bad when using.. even it dont get solder :( using 40w

  • @necoisidois7570
    @necoisidois7570 6 лет назад +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 6 лет назад

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

    • @necoisidois7570
      @necoisidois7570 6 лет назад +3

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

    • @turanvarolsun747
      @turanvarolsun747 6 лет назад

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

    • @necoisidois7570
      @necoisidois7570 6 лет назад +1

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

    • @turanvarolsun747
      @turanvarolsun747 6 лет назад

      :D

  • @thugasaurusrex6004
    @thugasaurusrex6004 6 лет назад +2

    Lol I saw the video and out loud said "what?!?" Then saw your name... Perfect.

  • @sophiatheodores7985
    @sophiatheodores7985 6 лет назад +9

    i'ts CEOUNTERclockwaise
    notheng persannel, guod veds as awlays

    • @Panj0
      @Panj0 6 лет назад +1

      both are fine, what's the problem?

    • @mathieuclement8011
      @mathieuclement8011 6 лет назад +7

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

    • @0x8badf00d
      @0x8badf00d 6 лет назад +4

      * personal

    • @sophiatheodores7985
      @sophiatheodores7985 6 лет назад

      how thick are you oskar

    • @0x8badf00d
      @0x8badf00d 6 лет назад +8

      Almost as fat as your mother.

  • @AndyTorrealba
    @AndyTorrealba 6 лет назад

    Generator maglet with transformator 110V and 220V to the connection TV, Radio, Microwave, AA, Frizer, Lamp, PC, Laptop...

  • @likelybinary3532
    @likelybinary3532 4 года назад +1

    hmmm wut data is on the rotary encoder XD

  • @karlfimm
    @karlfimm 6 лет назад

    More details in this Instructable from 2008. www.instructables.com/id/HDDJ-Turning-an-old-hard-disk-drive-into-a-rotary/

  • @ScottKraft
    @ScottKraft Месяц назад

    In your final example is the star point of the HDD motor hooked up to anything? It doesn't look like it in the circuit diagram.

  • @rickmathews1154
    @rickmathews1154 2 года назад

    Hey there, Great Vid from Great Scott, as per usual. Can I please make an addition to this project? Maybe try a video by using this same project to create an old school safe lock. When the correct combinations are entered, it will activate a solenoid to unlock. Just an idea to elaborate from this vid. THANKS love your work

  • @videolabguy
    @videolabguy 6 лет назад +2

    @1:13 Upload my "Goebbel" files? Really? Did I hear that correctly?

  • @SomeRandomPerson163
    @SomeRandomPerson163 6 лет назад

    Wait. Did you realy need to use all 3 phases to detect direction? Seems It can be reached by only 2 phases. Also I first time here and already like your channel. Can you make video about power source for OP-amps scemes? In literature like H&H basicaly talking about bipolar variation, it classic for OP-amps. But it so annoying to make that power source. Some of OP-amps can work by one-polarity source but how we should use it and what should be considered in this case? Need clarification.
    upd: oof, you have video about op-amps theory, maybe I will finde answer there.

  • @rahulpathare1226
    @rahulpathare1226 2 года назад

    Hi
    Well explained!
    Can you guide or send any documents for development of small size wheel type encoder for measurement of the distance.
    Incremental Rotary encoder with wheel ( less than 1”) 15 pin lemo connector
    Thank you in advance

  • @pietervanniekerk4453
    @pietervanniekerk4453 4 года назад

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

  • @lamarched21
    @lamarched21 6 лет назад

    Since L2 either leads or lags L3 depending on the directions, can we just compare the analog voltages of L2 and L3? If L3>L2 the we are going clockwise. If L2>L3 then we are turning counter-clockwise? If L2==L3 then no movement? I have some hdd motors here. I can try in 24 hours.

  • @sukuruchan
    @sukuruchan 6 лет назад

    HDD Motor as driving wheel for pc??????? with force feedback hack ===???=== would be awesome !!!???!!!""

  • @critical_always
    @critical_always Год назад

    The number counts up very slowly. 12 poles means each revolution should be what 4 steps?
    There has to be a smarter way to get the 12 steps using only comparators.
    I guess at analog level the limit is the ADC

  • @enriquecesaracoroni4938
    @enriquecesaracoroni4938 5 лет назад +1

    No hablo tu idioma , pero sos un tecnico fabuloso y muy didactico sigo todos tus videos !!!!!

  • @JohanDegraeveAanscharius
    @JohanDegraeveAanscharius 3 года назад

    Knowing the number of coils, knowing the cw or ccw, why not count? 12 coils = 12 pulses = 1 rotation. Am I right? Or has this been already updated?

  • @xenuno
    @xenuno 3 года назад

    I've always wanted to put an HD in a gyroscopic XYZ axis cage for my desk just as a reminder that the Earth isn't flat. As a virus (in scale and in environmental impact) on a huge organism (the Earth) while inside house with no evidence at hand (computer off), with no oceans nearby, no spherical Earth pics on wall, and shutting down analytical portion of brain, it's easy to think the world is flat.

  • @ScottKraft
    @ScottKraft Месяц назад

    Will this work the same using the LM393P comparator ICs? I have some of them.

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

  • @SouthShoreSonics
    @SouthShoreSonics 9 месяцев назад

    Great video. I am going to do this with all CMOS and no Microprocessor though.

  • @yiyou6529
    @yiyou6529 6 лет назад

    Thought about using 74hc14 to interface the motor to a digital circuit?
    Btw, i am moving to Berlin, Germany in a few weeks. Any local hardware store you would recommend?

  • @BillyGates1721
    @BillyGates1721 4 года назад

    I'm wondering: you are spinning the wheel quite fast and still the counted number needs more than one rotation to increase / decrease. This looks like the detection of the HIGH-LOW-HIGHtransitions work unreliable

  • @DIODETRON
    @DIODETRON 6 лет назад

    Hi I have watched many of your videos. You make awesome project including microcontrollers like arduino. One thing I want to know from you is that how you learnt arduino programming. With the help of books or by experience. Tell me because I also wants to make digital arduino projects. Yes, I am familiar with arduino but not much as I have just learnt to make simple projects. Including timers, and many other features in arduino but I do not know much about arduino. So, I will wait for answer from your sight

  • @skandakarttikeya7838
    @skandakarttikeya7838 2 года назад

    Nasty debouncing... I would have choose something more sensitive in code lines. Great job Scott! This is a super-great-ideea! .)

  • @ntnsonwale4381
    @ntnsonwale4381 6 лет назад +2

    Great Scott you are really creative !!!!
    I think you are best on RUclips for electronics with creativity !!

  • @matejhusek6855
    @matejhusek6855 6 лет назад

    Great idea! Just i would be happy, if you use normal DC motor instead. I have some BLDCs laying around, but i think, they are better to keep. On the other way, nowdays, everyone has a lot of small DC motors salvaged or bought. Just, they are cheap and everywhere! And also, it will be easier to find, if the voltage is positive or negative on each contact. I dont know, but let me bring you an idea. I am really interested to this.

  • @pixelflow
    @pixelflow 6 лет назад

    Could you utilize a shared PCINT for all 3 signals on one port and read the PINB (or whichever) port variable directly for tracking without the loop. We did something similar with 2 encoder pairs for a wheeled robot.

  • @SweetyVoltyy
    @SweetyVoltyy 5 лет назад

    JESUS CHRIST SCOTT DON'T POINT SHARP OBJECTS TO YOUR SCOPE I had a heart attack here what if you touch with it.....

  • @dutystopecrime2417
    @dutystopecrime2417 3 года назад

    Maaan u are great
    Plz can u make a video on how to assemble and configure cnc control
    With drives and motors bought online ADTECH China control
    Plz bro make that video

  • @nxxxxzn
    @nxxxxzn 6 лет назад

    Please correct me if I'm wrong - I think you could have used the analog comparator on atmega328 - the ADC7...0 pins. No need for external opamps

  • @kramer26
    @kramer26 6 лет назад

    Hi. So I tried your code 1 to test for rotational direction input but it just continuously scrolled clockwise even with no input. I swapped the wires as I couldn't be sure which ones were L1, L2 etc, but same thing. I also tried changing baud rate but zero effect. I'm gona edit your code later tonight but wanted to ask for your input first... any ideas what might be wrong? I have connected the outputs to my multimeter on VAC and got a reading of around 1V. I might need to create a virtual ground point as you mention...