Turning a laser on and off
jason777
Posts: 11
I have a laser pointer that runs on 3 small (1.5 volt) batteries.· Right now, I turn the laser on and off with a relay, and·a basic stamp·IO pin.
Is there a more solid state way I can operate the laser?· I'd like·to use a transistor, but wouldnt the laser need to be powered by the basic stamp supply for that?· I want to keep the laser using its own power source, if possible.
Thanks.
Is there a more solid state way I can operate the laser?· I'd like·to use a transistor, but wouldnt the laser need to be powered by the basic stamp supply for that?· I want to keep the laser using its own power source, if possible.
Thanks.
Comments
····Gate: Stamp pin.
····Source: Ground (both Stamp ground and battery minus terminal).
····Drain: Laser's negative supply lead.
Leave the battery positive terminal connected to the laser's positive supply lead. For safety, also connect a 10K resistor between the gate and source. This will keep the laser off until the Stamp pin forces the gate high.
-Phil
Post Edited (Phil Pilgrim (PhiPi)) : 8/1/2007 7:30:42 PM GMT
It sounds like you could just use a simple 2N3904 or 2N2222 transistor for this. It doesn’t have to be powered by the BASIC Stamp to use it. They just have to have a common ground. Take care.
▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
Chris Savage
Parallax Tech Support
Thanks for the help.· I'm a software engineer by day, and am starting to learn electronics as a hobby.
-Phil
Addendum: Attached is a sample schematic...
Post Edited (Phil Pilgrim (PhiPi)) : 8/1/2007 9:12:39 PM GMT
-Phil
Off topic, what are you guys using to create those great looking schematic diagrams?
-Phil
"You know, I have one simple request. And that is to have sharks with frickin' laser beams attached to their heads!"
Powered by BasicStamp2, naturally.
Parallax - the best a mad genius hell-bent on world domination can get.
▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
| What the world needs is more geniuses with humility, there are so few of us left.
| "Wait...if that was a compliment, why is my fist of death tingling?"
| - Alice from Dilbert
Update -- You're now showing the "laser" connected to 6V, but you originally described it as a 3V hand-held.· That voltage still needs to be 3V.
Post Edited (PJ Allen) : 8/18/2007 12:36:30 PM GMT
The base current has to be high enough so the transistor will saturate (switch completely on), yet not waste too much current. Most microcontrollers can provide around 20ma per I/O pin without becoming overloaded. As I mentioned, the minimum current gain (hFE) of most switching transistors is around 20-30.
Update -- If minimising base current is essential then plug in (increasing) values till it starts going dim or non-op.· Experiment.· 300ohms to 1K is, I think, a good range to start with.· Don't go less than 220ohms.· Experiment.
Post Edited (PJ Allen) : 8/18/2007 5:38:13 PM GMT
Ohm's Law: E = I R.
Solve for R, substitute the values for E (voltage) and I (current) and what do you get?
Choose the nearest standard value (20% accuracy): 10, 12, 15, 18, 22, 27, 33, 39, 47, 56, 68, 82 and multiples of 10 of these.