Stroboscope (AKA zoetrope) is a device that creates an illusion of a moving picture by showing a rapid successions of frames  "stopped" for a fraction of a second due to the persistence-of-vision (POV) effect. It is a very old toy; zoetropes have been amusing crowds since 19th century. It makes it all the more fun to make one out of decidedly 21st century parts!

The project was inspired by my own interest in zoetropes (non-electronic variety) since my childhood. Many a good book were spoiled by drawing stick figure stop motion animations on successive pages ... But I digress.

I am also very interested in all kinds of motor control and I did not have much experience with brushless DC (BLDC) motors before starting this project. I'm glad I did because BLDC is a fascinating technology and I'm now trying to upgrade some of my motors with stronger magnets to see if I, too, can make an RC plane fly on one of those. I'm afraid there won't be much space to go into details of BLDC operation here, so I invite anyone interested to visit my blog and read the recent entries on BLDC theory, circuits and software.

Additionally, since BLDC motors are used in pretty much every CD/DVD/Bluray device out there, I had a huge pile of these BLDC motors ever since I started breaking DVD-RW drives to harvest lasers from them. This in large part was the influence of another instructable I read right here, written by Groover, the Pocket Laser Engraver . Ironically, I've yet to build by own (I already had a larger one) but I can't stop tearing apart broken DVD drives and the pile of available parts just keeps growing :)

So, enough talk, let's start building something!

Step 1: Gather the Parts

Apart from the Arduino, my basic goal was to reuse as many parts from the DVDs as possible.

Here is the list of parts we'll need:

1. Arduino (any variety - the sketch is very small)

2. Arduino Development Shield - with breadboard or without. The circuit is rather small, can be easily built on a breadboard but soldering the parts to the board instead will make it sturdier. The empty Development Shield PCBs are rather cheap these days, I buy them in bulk and solder my projects on them permanently.

3. A broken Xbox 360 DVD drive. The only working part we are concerned with is the spindle motor and you have to really seriously abuse  the little motor to do any damage to it. I'd say the rest of the Xbox would burn before the DVD spindle motor would get damaged, so you're pretty safe buying it on your favorite online flea market sites.

4. 1 x SN754410NE Quadruple Half-H Driver IC (SN754410NE datasheet here) . Of all the Half-H drivers this one is probably the least expensive. I sourced mine from a Chinese seller on my favorite online flea market site. You can do the same or try any electronics parts seller out there - Mouser, Newark, anyone is almost guaranteed to carry it - it's very popular.  SN754410 is also used in driving bipolar motors, so get yourself a couple of these for future projects.

5. A 1W High Intensity White LED with 10mm round transparent body.  A different LED of similar or higher intensity will do just fine, as long as you devise a bracket to hold it and point toward the disk with zoetrope animations.  The bridge on SN754410 that controls the LED can drive 1A and the LED is on for only 2ms (milliseconds) at a time, so I guess you can go as high up as 3W-4W LEDs without much concern.

6. 2x  push buttons to populate the Development Shield. One of them becomes the Reset button and the other is the Direction button

7. 1 x small 3mm LEDs - the color of your choice to populate the Development Shield. It becomes the direction indicator LED

8. 1x10K potentiometer. Please note that my own pictures show two of those ( big orange blobs). One is for controlling RPM of the motor. The other was for controlling the flash duration. During my testing I've found that there's no practical reason to control the flash duration manually. It's done in the software and the pot is just abandoned.

9. 1 x 5-pin connector  of your choice if you want the Arduino to separate from the spindle (optional).

10. 2x 0.10uF caps to filter noise on the supply bus of the Shield (optional but desirable).

11. 1 x 510Ω resistors for the direction LED

12. 1 x 1N4004 or similar general purpose rectifier diode

13. 2 x 2-pin jumper headers and one jumper - one of those headers needs to be shortened

14. OPTIONAL: if your Arduino Development Shield did not come with the stacking headers, you need those. It uses 2 x 8-pin and 2 x 6-pin headers.

15. You'll need some old CDs to become the base of your animations.

You've got all the parts, now get some flux and solder. We're going to make some fumes! (unless you're building on a breadboard of course ...)
Just wanted to post a follow up here. I returned to the project while building another BLDC-based project and in the process re-worked the motor driving circuit. It now works much more efficiently (no overheating of the driver) and is based on very common and chip components - discrete PNP and NPN transistors. Here is the video of the new circuit running the old zoetrope animation and <a href="http://elabz.com/forums/motor-control/updated-schemnatics-for-a-bldc-motor-controller/" rel="nofollow">here is more info, including the circuit diagram and the new Arduino sketch</a>.&nbsp; &nbsp;<br> <br> <div class="media_embed"> <iframe frameborder="0" height="315" src="http://www.youtube.com/embed/aBvQ8XHe_7Q" width="560"></iframe></div>
<p>thanks elabz for share this instruct able. I make it. </p>
<p>I enjoy the project ! thanks for the code :)</p>
<p>I enjoy the project ! thanks for the code :)</p>
Could you do a similar thing but with the light on the inside so it projects a big image onto a wall. Do you think it's possible.
What a great idea! Why didn't I think about it myself :)<br> I don't see why it wouldn't work.<br> Thanks!
If you do make it please reply to this comment as I would like to see how you did it. How about replaceable slides so you could change the animation.
Sure thing.<br> <br> I think I will use a laser diode though. Just completed a TTL-controlled driver for red laser diodes, will use that - they provide better illumination and the beam has narrower aperture, even without the optics - better for throwing light to far away walls :)<br> <br> The slides are interchangeable - the CD is not glued in place, you can take it off if you like. That was the whole big deal with using PWM control - otherwise the CD would slip on the spindle. See more about slippage prevention :) here: http://elabz.com/brushless-dc-bldc-motor-with-arduino-part-3-the-stroboscope-project/&nbsp;<br> My blog page has pictures of both animations I made - the Rumba and the Stick Figure Dance :), and both are downloadable in SVG and&nbsp; G-Code formats. I also describe how to make your own. Haven't had much time to play with it lately, would be nice to see if anyone else had created any new animations .
This would be much easier if you use a dc motor and add a small electrical contact to the cd at each image. So when the cd rotates and the contacts are shorted at the image points you get a strobe. No micro controller required and you r timing wouldn't go off as it did in the video.
Yes the contact would wear and debouncing would be an issue which is fairly easily solved using discharge caps or by switching the electrical contacts to magnets or using a line counter instead or a million other contactless solutions. Just my 2&cent; :)
I had a similar thought but I guess it's a good learning experience using an arduino.<br><br>I would have punched a hole (or a cut) in the disc for each image, then placed a led beneath and a phototransistor or similar on the other side that would electrically close a circuit to the LED. These can be bought as a fork like module as well.<br><br>It wouldn't matter what speed you run it (within limits) or in which direction it runs, it would always stay synced.<br><br>Doesn't seem there's a need for an Arduino. ;-)<br><br><br>EDIT: Aha... it's the motor that needs the controller...<br>With some feedback though the off sync could be corrected.
Thank you for your comment, e5frog!<br> <br> These are all valid points and yes, the motor was the defining element of the project, at least for me because I was very curious about BLDCs in general. Using an MCU was essential for the motor part. However, even for small things like the flash timing MCU can make it so much easier.<br> <br> For example, if I based my flash on a 555 timer, I would need a circuit with something like 10-12 components in it to implement the photo transistor triggering and flash duration control. Just that little part would have been more than the entire project in terms of parts (if you consider the Arduino one black box, obviously).<br> <br> Additionally, the polycarbonate the CDs are made of&nbsp; is very brittle and often cracks when you try to drill it or cut a slot. Plus, you'd need to position and drill your holes perfectly. I just know I'm not good at that :)<br> <br> Anyhow, like I said before, there are many ways to achieve the same result. But the beauty of an MCU such as Arduino is that it can take care of so many things at once and eliminate great many electronic and non-electronic components to simplify design of the project.<br> <br> That said, there are ways to implement feedback without resorting to CD disk mutilation :)&nbsp; For example, most BLDC motors these days have Hall-effect sensors built in. Xbox drive was a notable exception I used to simplify the project. It would have been an almost trivial upgrade of this little project to implement rotation speed feedback / flash sync&nbsp; based on the output of that sensor. &nbsp;<br>
Yes, many ways and as you basically needed an MCU for the motor there's no reason not to use it for that as well. <br><br>Anyway, fun little project, glad it worked out the way you wanted it to.
Mechanical contacts have a nasty habit of bouncing (rapidly connecting and disconnecting multiple times during what might seem like a single click). And they also worn out in time.&nbsp;<br> <br> A&nbsp; reed switch and a whole bunch of tiny super-strong magnets glued next to the figures might do the trick (although reeds still bounce).&nbsp;<br> <br> However, part of the fun was to build the animations on CDs and DVDs to emphasize the crossover between the old technology and the new. And it is <strong>very</strong> difficult to find a CD drive with a DC spindle motor these days. They've mostly all migrated to the trash bins and landfills by now. I actually have one but decided not to base the design on it because no one would be able to reproduce it because it's so hard to find.<br> <br> Regardless, by the time you take care of the switch bouncing, some spindle speed control, positioning contacts or magnets, etc., you'll realize that it was just easier to employ an MCU (Arduino here) to do all the hard work.<br> <br> By the way, sorry it's not quite clear from the video but the timing in a middle of the video went off because I switched the direction or rotation. The CD, however light, cannot stop and change direction immediately due to inertia, and that's how the sync was lost.&nbsp; I had to use my finger to restore the sync :)&nbsp; Once the flash is synced to the figure position, it's pretty stable even without close loop speed control. Well, stable for a toy, anyhow...<br> <br> Thanks for stopping by!<br> &nbsp;
What if the figures were directly on a clear poly carbonate disk and the flash was from behind... Could be a cool effect but then again might not work if the images are too close and the speed wasn't just right... HHHmmmmmm
You mean, if they instead of standing on the disk like they do now would be laying on the disk? I guess it's possible.&nbsp; I don't see what might prevent it from working except of course the space towards the center of the disk will become pretty crowded.<br> <br> And yes, the timing is very important regardless of the frames positions - if the strobe is just right (synchronized to the disk rotation and it's not too long) they will be &quot;frozen&quot; in whatever position they happen to be in that instant.<br> <br> You just have to be careful with the LED positioning: you don't want a 1W LED shining right into your eyes.<br> <br> In fact, you can have plenty of fun by aiming the LED <strong>under </strong>the disk and using some sort of a piece of white paper as a reflector to reflect it up. Then taking a transparent CD holder from a 50- or 100-pack (you know, the clear one on top) and drawing your frames with Sharpie or something like that. If you'd watch this stroboscope from above, it should show your 2D animations.<br> I think it's a great idea!
Awesome project ! Very nicely done ! Just thumbing through and I always check out the Arduino projects ....nice project and very nice code.<br><br>Thanks so much for the share!<br>Build_it_Bob
Smart. <br><br>But I can do it without the Arduino.
Indeed, you can accomplish anything you put your mind to :)<br> <br> But it won't be easy. This kind of BLDC motor requires 36 commutation steps per rotation. In fact, I myself had started to implement it first MCU-less but quickly gave up. Had I known that it would be very important to also employ PWM or else I would have to glue the disk to the motor and forget about changing the animations (I tried to illustrate that in a video <a href="http://elabz.com/bldc-motor-with-arduino-circuit-and-software/" rel="nofollow">here</a>), I might have given up on logic-driven BLDC even sooner :)<br> <br> Tell you what: this project was born in part as a self-imposed challenge after I read another instructable <a href="http://www.instructables.com/id/Pocket-laser-engraver/step2/Rip-apart-the-DVD-Roms/" rel="nofollow">here</a> where the author (whose work I otherwise find very informative) dismissed these motors : &quot;<em>Remove the spindle motor, it could be useful but I feel they are hard to drive and thus don't keep them&quot;.</em><br> I thought to myself: wait a minute, these motors look like beautiful pieces of fine engineering, I can't just dispose of them, I have to do something&nbsp; useful!&nbsp; (I realize that the degree of usefulness is debatable :) )<br> <br> So, if you're up to a good challenge, I challenge you to come up with a way to drive these BLDCs without an MCU and write an instructable about it. Don't even worry about syncing the LED strobe - just seeing the motor turn would already be enough fun. I have a boatload of these motors and would love to learn another way to make them useful. I'll be sure to check out the instructable and vote for you!<br> <br> Thanks for stopping by!
You're welcome.<br><br>True, very true.<br><br>I didn't realize you used BLDCs but I think I have a 555 timer driver circuit somewhere...
555 timer for clock and a decade counter (plus a driver IC or 3 transistors) for a very simple commutation 1-2-3. Yes, it might work on an HDD spindle which usually has the center point of all three windings connected to a lead, hence 4 leads.&nbsp; I think it will also require the BLDC to have an even number of magnetic poles and an even number of winding cogs else the simple commutation sequence won't work.<br> <br> These little puppies from CD/DVD/Bluray drives normally have 12 magnetic poles and 9 cogs, and three leads (center point inaccessible) so the simple commutation is definitely out.<br> <br> That said, however, most spindle motors (Xbox was notable and useful exception) have a controller IC right next to them. I've looked into the specs for a couple and they are little marvels of an IC themselves - take power and clock (say, from your 555) and produce the right commutation sequence.&nbsp; They even have speed feedback via the Hall-effect sensors inside the rotor bell.<br> <br> One of those days, when I get more time on my hands, I want to connect to that on-board controller instead of just scraping the IC off and using the bare motor. Ironically, it may just be that an MCU may not be strictly required in that case as long as something is producing the clock, direction and whatever else may be needed as far as inputs...
couldnt you just set up the cd on a motor, and set it up so every time the cd hits a given postion(or multiple positions) it connects a circuit that lights up the led, and avoid all the microprocessors and timer chips? or am i thinking to simply for something like this?<br><br>also, awesome job! ill have to try making one of my own
As we all know, cats can be skinned in many different ways :)<br> <br> In theory, if you look hard enough through piles of old computer equipment, you might just get lucky and find a pre-1995 CD-ROM drive that has a DC (classic, brushed type) spindle motor. In that case you would not need a microcontroller to rotate the spindle. But you would still need to time the LED strobes to the disk's rotation so you can fire 12 times per one rotation.<br> <br> In other words, you saved one timing circuit but in turn you need to create another. So, in terms of the ease of construction it might just be a wash.<br> <br> That said, I have to say that I wish I had implemented an open loop feedback for the rotation speed control because the sync does wander a bit as is evidenced by the videos. I was thinking about drawing a thick black Sharpie line on the underside of the disk and have an optical sensor to read that line once per rotation and re-adjust LED flash sync.&nbsp;<br> <br> By the same token, you could have drawn 12 lines, one under each frame (figure) and flash the LED each time you sensed the line. Combine that with a DC spindle (provided you can still find one) and you got yourself an MCU-less stroboscope.<br> <br> In my case the dis-sync was not terribly bad (thanks to a <strong>very </strong>light load) and in the end I decided not to mess with speed control.<br> <br> Anyhow, I just wanted to say that with the right components and some serious adjustments to the design your idea could have been implemented.
He's using BLDCs.
I like it!

About This Instructable


179 favorites


Bio: Just a guy tinkering away in a lab ...
More by elabz: Spell out affection for your Valentine with chocolates, LEDs, Attiny13 and Arduino IDE Pimp Your Chocolates with Arduino IDE and ATtiny13 Stroboscope (zoetrope) using Arduino and a broken Xbox 360 DVD drive
Add instructable to: