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 .
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).
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
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.
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👍👍👍
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.
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!
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 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 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.
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
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.
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
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.
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.
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.
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
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!
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.
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.
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
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.
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!!!
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.
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.
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.
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
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.
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.
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 ?
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!
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.
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!
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 ;-)
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!
@@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.
@@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
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
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
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
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.
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....
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.
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.
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.
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.. :)
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.
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.
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.
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..
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
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
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...)
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.
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. :-)
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.
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.
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!
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.
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.
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 .
Thanks for the feedback
I don't mind the adds as long as the content is good and the adds are short and relavent to the content....
Thanks for another year full of awesome projects!
Cant wait for the upcoming episodes of 2018 :)
Thanks for the feedback. I will give it my best in 2018 as well.
You mean 12018?
+redstone craft guy i saw what you did there
Yeah , i also.
Hope you hit 1M subs in 2018.
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).
ممكن مساعده بمقابل مادي
There is some potential latency when you do it that way.
"simple schematics"
yeah, I thought the same thing... " *yeah, sure.... pretty simple* "
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
@michel777ification How many times has it got you laid? Loads i'm guessing
I thought the same
Now you have made a turntable. Let's DJ
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.
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👍👍👍
Seems to be exactly how modern graphics engines work... Could be useful to try and battle online network clans.
I’m an Electrical Engineer and yet I learn something on every one of these.
Plus I love his pronunciation of hysteresis.
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.
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!
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.
Indeed. It's a hall effect rotary encoder.
@@れろらりる-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.
@@Enigma758 I mean that's how hall effect sensor works.
@@れろらりる-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.
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
Making a dj turntable from this might be good...🤔
I am about to try this
you can use the midi keyboard project of evan kale, and simple add this to control some programs
Would be awesome, but it seems like the platter needs quite a lot of rotation for the value to change. =/
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.
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
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
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.
Aah that makes a lot of sense! Thanks for clearing it up, keep up the great content
1) I guess using the adc is less effective than just reading a digital value
2) decrease the delay (7:48)
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.
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.
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
UA-cam is full of psycho trolls who will thumb down even without watching.
Don't bother about them they never understand anything in this video and never will.....
Don’t bother less than 1 percent disliked
Personally I am slightly dissatisfied by the fact he uses the motor, not the actual harddrive hardware as the encoder.
The software people, who actually thought it was a software hack.
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!
One like for the motor sacrificed.
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.
Is it possible to increase sensitivity of the encoder?
+GreenMC If you put more time into the code you can even let the Arduino react according to the speed of rotation. So, yes.
hey, your first again!
Trust me, this is going to be mentioned a few more times in the comments... :/
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.
Yep. Sensitivity to small input is what actually will make it interesting.
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.
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?
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
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.
good idea!
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!!!
Man I'm so much big fan of urs... I really like all video🔥🔥🔥
Thank you :-)
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.
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.
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.
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
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.
yup, im pretty sure we can. Since most incremental rotary encoders actually use 2 signals only.
@@mashfaqm But then there is latency since only a bit changes across the 3 phases at a time.
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.
I think there's more to it than just checking the state of a single phase.
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 ?
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!
The best video ever from great Scott, this one beats everything you ever published. Kudos
Ohhh I have a collection of motors here (all sizes and power levels) thaaanks for the inspiration... rotary encoder POWEEEEEERRR hahaaa =]
POWEEERRRR!! bahAHHahHa
Heeeyy!!!!!
I also have motors mostly brushed
Was about to search how to use hard drive motors and stumbled on this one.. You really are the best greatscott
GreatScott: *makes super easy to understand circuit and code*
Me: Wow! That’s sup-
GreatScott: EXTERNAL INTERRUPTS
Great Scott you are really creative !!!!
I think you are best on UA-cam for electronics with creativity !!
Thank you very much
Scot the DJ
That could make a cool input for so many projects. Finally a use for the dozens of old HDD parts I've collected.
A video about a volume control with rotary encoder would be great!
razvan_wasd you don't need to use encoder to do volume control. Encoder is used to measure quantitive measurements like distance, RPM
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.
I've always wondered this, would love to see some Arduino code to turn it into a HID master volume control.
You can use digispark, or standart Arduino with serial, but with soft on pc
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!
Make it so if you spin it faster it changes faster
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 ;-)
So you just made electric fidget spinner
Lexa9966 fuck no its not a fidget spinner
how to delte others posts
flag as spam/inappropriate
@@samsawesomeminecraft OKAY I'D SAY IT'S VERY INAPPROPRIATE! LET ME FLAG..
Great presentation Scott the way you explain is way better than my professors at College thank you
How is your English so good? Mine is under all pig.
Haha, I would not say that my English is that good but you learn a lot after 4 years of producing english videos.
lmao
You are too good Scott, I love watching you work.
ur amazing electrical engineer. do u teach?
most anticipated videos ever
That's one useful fidget spinner...
Not so Spicy Meme, Boi.
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!
This is probably better used as a rotational speed sensor
especially as the signal levels rise as the speed rises
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
@@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.
@@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
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
Hi, this could be made using a Taptic Engine from an iPhone/iPad.
One question. Why did you upload a video on Saturday instead of the usual Sunday?
Because I and probably other people as well have other things to do on the 31.12.
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
GreatScott! didn't you build a firing system for fireworks some time ago? Have fun!
my other thing to do is to get shitfaced and cry about my life on a hill i know til newyear comes
MCA sounds funny
2017 ends with this good project.... keep making videos they are the knowledge junction for me... One place to learn a lot in electronics....👌👌👍👍☺☺
Evan Kale did this with an Dvd Drive Motor. Pretty cool Check out his Channel
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
Can you program Arduino wirelessly ?
I think so
Can you add this to your "To Do list"?
I am not interested in that. Google it. I bet there are plenty of tutorials about this out there.
You can do that over WiFi, BT or even with radio signals. It's all about creativity
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.
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....
Can you explain how three phase electricity works.Im talking about mains electricity.
I put it on my to do list
yeah, especially how watts are measured across three phases! - maybe even a BLDC 2 phase to 2 phase converter !
GreatScott! Specifically knowing how many generators started at different times and places can all be in phase supplying mains power
they will auto sync.
Ariel Lezen I think its one generator just with 3 coils like 3 phase motor. I could be wrong tho
This gave me so much joy to watch - I happen to have 3 HDD's waiting my deconstruction ;)
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.
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.
you help me continoue my electronics thanks!
Such amazing video production. Perfect lighting. He's called GreatScott for a reason.
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.
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.
Anyone watching in 2019?
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..
:)
Does JLCPcb ship to the UK?
I think so
I think they ship everywhere but china pretty much.
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.
Ohm711 if you buy more than one shipping rarely changes
I am from Europe and shipping on my first order was 8.9$ via China post. Plus 2$ for PCBs.
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.
Sunday?
Next week!
Jetzt weiss ich endlich, warum ich all die alten Festplatten aufgehoben hab... Super Video mal wieder!!! THX!
wotawy encowdas
“Modor”
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.
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..
Necois Idois kanalın sahibi Türk değil farkındaysan
Burak Demirelli,
Kankam o benim. Alman.
Farkındayım tabi ki kardeşim.
Türkçe biliyormuki bu alman kardeşimiz.
Yiğit Alp Karakaş, yok sanmıyorum.
Ama Google Translate sağolsun ;)
:D
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
German subtilels?
The community subtitle function is enabled. Feel free to add them.
Arm, das man einen deutschen youtuber nach deutschen untertiteln fragen muss 🙄
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
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...)
Rcmodellbau_DE ich ferstehe ja auch alles gut und er macht das echt gut es wäre nur so eine Idee für andere
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.
i'ts CEOUNTERclockwaise
notheng persannel, guod veds as awlays
both are fine, what's the problem?
Anticlockwise (or anti-clockwise) is also correct. More common in British English than in American English.
* personal
how thick are you oskar
Almost as fat as your mother.
Awesome stuff. Here's to another good year of great content! Also, loved the first pronunciation of rotary - 'rotawee' 👍😁
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. :-)
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.
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.
One of the Best UA-cam Videos and Channels I've ever seen!!
mind blown
never ever considered that hack
patiently waiting for a HDD to go bad now
3-input scope!!? Clearly I need an upgrade...
Love your videos - they are inspirational content, clarity and production.
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.
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!
Thanks great Scott we love you great Scott from India
Incredibly neat work, a joy to watch!
Am i the only one here who dont understand a single thing but still loves to watch Scott's projects? aha
For me This is full of new concepts.. thanks.. for your time and efforts.
You're welcome
I use JLPCB for my business .... the quality of PCB's they manufacture superb , delivery excellent ! Highly recommend
As always, awesome video mate
Btw Happy New Year
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.
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.
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.
Your my teacher in electronics, your so smart and creative. Keep it up good jog
Who is your English teacher?