Arduino running hexagonal mirror from laser printer

855 views
Skip to first unread message

♌ pez ♌

unread,
Nov 20, 2010, 5:00:43 PM11/20/10
to hive76-d...@googlegroups.com

Here's a quick demo of running a hexagonal mirror scavenged from a laser printer.  The chip that does the actual motor control is an LB11872.

The interface requires just one signal, the clock input.  Varying the clock frequency controls the mirror rotation speed.  There is also a start/stop signal that can be used (or you can ground that pin) and the controller provides a lock output to indicate when the mirror is spinning at the requested speed.

Here's some sample code.  If you remove the delays, the motor spins at a frightening speed.

int ssPin =  2;       // Start/Stop output at dgital pin 2
int lockPin =  3;     // PLL locked input at digital pin 3
int clockPin =  4;    // Rotation speed clock output at digital pin 4
int ledPin = 13;      // Show "lock" on LED output

// The setup() method runs once, when the sketch starts

void setup()   {               
  // initialize the digital pin as an output:
 
  pinMode(ssPin, OUTPUT); 
  digitalWrite(ssPin, LOW);
 
  pinMode(lockPin, INPUT);  
 
  pinMode(clockPin, OUTPUT);  
  digitalWrite(clockPin, LOW);
 
  pinMode(ledPin , OUTPUT);  
  digitalWrite(ledPin, LOW);
}

// the loop() method runs over and over again,
// as long as the Arduino has power

void loop()                    
{
  digitalWrite(clockPin, HIGH);   // set the LED on
  delay(1);                  // wait for a second
  digitalWrite(clockPin, LOW);    // set the LED off
  delay(1);                  // wait for a second
 
}

VIDEO0035.3gp

Adam Kaufman

unread,
Nov 20, 2010, 5:09:34 PM11/20/10
to hive76-d...@googlegroups.com
Hey pez, you should put this on the blog! Bonus points for hex shapes!

> --
> To post to this group, send email to hive76-d...@googlegroups.com
> To unsubscribe send email to hive76-discuss...@googlegroups.com
> For more awesome goto http://groups.google.com/group/hive76-discussion?hl=en

--
Sent from my mobile device

Christopher Thompson

unread,
Nov 20, 2010, 5:16:39 PM11/20/10
to hive76-d...@googlegroups.com
Yes. Pictures and video belong on the bloooog. Woot

-Chris
visit me at http://eagleapex.com
Sent via iPhone 

Bryce Beamer

unread,
Nov 22, 2010, 9:39:20 AM11/22/10
to Hive76 Discussion
You get all the coolest stuff! Do you want to play with lasers soon?
It looks like my free time might be increasing next semester.
-Bryce
>  VIDEO0035.3gp
> 1833KViewDownload

pezman

unread,
Nov 22, 2010, 1:04:51 PM11/22/10
to Hive76 Discussion
Well, it was researching mirrors for your project that led me to learn
about the mirrors in laser-printers!

Yeah, playing with lasers is something I'm usually up for ...

By the way, Surplus Shed seems to have something like this ...
http://www.surplusshed.com/pages/item/m2879.html

The beauty of this is that it's a remarkably powerful, small, variable
speed motor, so it's not limited to used as a laser mirror.

There are similar brushless DC motors and controllers in CD drives,
hard-disk drives, old floppy drives etc. -- all for the taking.

Jack Zylkin

unread,
Nov 22, 2010, 1:09:46 PM11/22/10
to hive76-d...@googlegroups.com
Hey man can you give a little background about why you want to spin mirrors real fast?  I like mirrors and microcontrollers and spinning very much.  I had no idea I could enjoy all three at the same time.

--
To post to this group, send email to hive76-d...@googlegroups.com
To unsubscribe send email to hive76-discuss...@googlegroups.com
For more awesome goto http://groups.google.com/group/hive76-discussion?hl=en



--
Jack Zylkin
usbtypewriter.com
Philadelphia, PA

pezman

unread,
Nov 22, 2010, 5:31:19 PM11/22/10
to Hive76 Discussion
Bryce was interested in writing with lasers. If you use blue lasers,
you can write on phosphorescent surfaces. He made a frappus that is
like a dot-matrix printer that will print an icon on phosphorescent
fabric. His device uses several lasers, but with a rotating mirror,
it seems possible to do something similar with one laser (and make the
device small as well).

The same basic idea of using a mirror to sweep lasers can be used to
make laser POVs -- basically, you can paint dots on a wall by
carefully modulating an array of inexpensive lasers while their beams
are swept over a surface.

By using a hexagonal (or octagonal or whatever-gonal) mirror, you can
get a 100% duty cycle (i.e. the lasers are always pointing at some
portion of the target), so it improves the brightness of the display
-- at least in theory.

PJ was interested in using our bucket-o-semi-defunct lasers for some
purpose -- this might be ideal.

Also, just the basic idea of using readily available brushless DC
motor controllers has a lot of possibilities. The speed and power of
these little motors is really surprising, and you can salvage them
from hard-drives, CDs, laser printers, faxes etc. pretty readily. You
can even pick off a crude servo signal by reading the hall-effect
sensors, so closed-loop control is an option.
> > hive76-discuss...@googlegroups.com<hive76-discussion%2Bunsu...@googlegroups.com>
Reply all
Reply to author
Forward
0 new messages