Old 11-21-2010, 03:02 PM #1
Junior Member
 
Join Date: Nov 2010
Posts: 3
Rep Power: 0
1mpar is on a distinguished road
1mpar 1mpar is offline
Junior Member
 
Join Date: Nov 2010
Posts: 3
Rep Power: 0
1mpar is on a distinguished road
Default laser+arduino

Hi,

I got a project where I'm thinking about using 5 laser pointers turned on/off by arduino. I'm having a problem that I can't turn it on using the digital pins. When I connect the laser (that has 300mW) directly to the 3.3V and GND it works, but when I send the same voltage using one digital pin (connecting only the pin and the GND to the pointer) it doens't work.
Does anyone knows what´s the problem?
Is there any other way of connection that it would work?

Thanks,
Henrique


1mpar is offline   Reply With Quote


















Old 11-21-2010, 03:42 PM #2
Rafa's Avatar
Class 2 Laser
 
Join Date: Feb 2010
Location: Madrid, Spain
Posts: 437
Rep Power: 1774
Rafa has a reputation beyond reputeRafa has a reputation beyond reputeRafa has a reputation beyond reputeRafa has a reputation beyond reputeRafa has a reputation beyond reputeRafa has a reputation beyond reputeRafa has a reputation beyond reputeRafa has a reputation beyond reputeRafa has a reputation beyond reputeRafa has a reputation beyond reputeRafa has a reputation beyond repute
Send a message via MSN to Rafa
Rafa Rafa is offline
Class 2 Laser
Rafa's Avatar
 
Join Date: Feb 2010
Location: Madrid, Spain
Posts: 437
Rep Power: 1774
Rafa has a reputation beyond reputeRafa has a reputation beyond reputeRafa has a reputation beyond reputeRafa has a reputation beyond reputeRafa has a reputation beyond reputeRafa has a reputation beyond reputeRafa has a reputation beyond reputeRafa has a reputation beyond reputeRafa has a reputation beyond reputeRafa has a reputation beyond reputeRafa has a reputation beyond repute
Send a message via MSN to Rafa
Default Re: laser+arduino

You're going to kill the arduino doing that.

Do this:


Connect the 10K resistor to the output pin of your arduino and Vout to whereever you want your output. I guess it will be a laser module this case.
__________________
Lasers:
~100mW 405nm from Erdabyz (L) akshakj <- Died once, working again. vid 1 vid 2(repaired)
~980mW 445nm in Ehgemus RPL style host, thanks to MR. DAGUIN vid
~25mW 532nm (potmoded) from DX (dead now, switch died and repair failed...)not moded vid
~50mW 532nm "star cap" style found in the bus. Yeah, lol.
~6mW 635nm diode laser pic 1 pic 2
~250mW 650nm extracted from 20x DVD burner. <- dead vid 1 vid 2
~130mW 650nm extracted from 16X DVD burner. <$15 to make! LPF thread

~100mW 780mn extracted from 52x CD burner. <- dead cremation vid

My Youtube channel
Rafa is offline   Reply With Quote
Old 11-21-2010, 03:57 PM #3
Rafa's Avatar
Class 2 Laser
 
Join Date: Feb 2010
Location: Madrid, Spain
Posts: 437
Rep Power: 1774
Rafa has a reputation beyond reputeRafa has a reputation beyond reputeRafa has a reputation beyond reputeRafa has a reputation beyond reputeRafa has a reputation beyond reputeRafa has a reputation beyond reputeRafa has a reputation beyond reputeRafa has a reputation beyond reputeRafa has a reputation beyond reputeRafa has a reputation beyond reputeRafa has a reputation beyond repute
Send a message via MSN to Rafa
Rafa Rafa is offline
Class 2 Laser
Rafa's Avatar
 
Join Date: Feb 2010
Location: Madrid, Spain
Posts: 437
Rep Power: 1774
Rafa has a reputation beyond reputeRafa has a reputation beyond reputeRafa has a reputation beyond reputeRafa has a reputation beyond reputeRafa has a reputation beyond reputeRafa has a reputation beyond reputeRafa has a reputation beyond reputeRafa has a reputation beyond reputeRafa has a reputation beyond reputeRafa has a reputation beyond reputeRafa has a reputation beyond repute
Send a message via MSN to Rafa
Default Re: laser+arduino

Look, these 2 are easyer to understand



The problme is that the arduino cant give too much current directly from the pin, so you have to put a transistor that can handle more current than the arduino.
__________________
Lasers:
~100mW 405nm from Erdabyz (L) akshakj <- Died once, working again. vid 1 vid 2(repaired)
~980mW 445nm in Ehgemus RPL style host, thanks to MR. DAGUIN vid
~25mW 532nm (potmoded) from DX (dead now, switch died and repair failed...)not moded vid
~50mW 532nm "star cap" style found in the bus. Yeah, lol.
~6mW 635nm diode laser pic 1 pic 2
~250mW 650nm extracted from 20x DVD burner. <- dead vid 1 vid 2
~130mW 650nm extracted from 16X DVD burner. <$15 to make! LPF thread

~100mW 780mn extracted from 52x CD burner. <- dead cremation vid

My Youtube channel
Rafa is offline   Reply With Quote
Old 11-21-2010, 04:28 PM #4
Junior Member
 
Join Date: Nov 2010
Posts: 3
Rep Power: 0
1mpar is on a distinguished road
1mpar 1mpar is offline
Junior Member
 
Join Date: Nov 2010
Posts: 3
Rep Power: 0
1mpar is on a distinguished road
Default Re: laser+arduino

Hi, rafa

thanks for answering.

is this figure below right?



about the transistor, how can I specify the right one?
and can I use these values for the resistor?

PS: sorry, I'm not good in electronics...
1mpar is offline   Reply With Quote
Old 11-21-2010, 04:44 PM #5
Rafa's Avatar
Class 2 Laser
 
Join Date: Feb 2010
Location: Madrid, Spain
Posts: 437
Rep Power: 1774
Rafa has a reputation beyond reputeRafa has a reputation beyond reputeRafa has a reputation beyond reputeRafa has a reputation beyond reputeRafa has a reputation beyond reputeRafa has a reputation beyond reputeRafa has a reputation beyond reputeRafa has a reputation beyond reputeRafa has a reputation beyond reputeRafa has a reputation beyond reputeRafa has a reputation beyond repute
Send a message via MSN to Rafa
Rafa Rafa is offline
Class 2 Laser
Rafa's Avatar
 
Join Date: Feb 2010
Location: Madrid, Spain
Posts: 437
Rep Power: 1774
Rafa has a reputation beyond reputeRafa has a reputation beyond reputeRafa has a reputation beyond reputeRafa has a reputation beyond reputeRafa has a reputation beyond reputeRafa has a reputation beyond reputeRafa has a reputation beyond reputeRafa has a reputation beyond reputeRafa has a reputation beyond reputeRafa has a reputation beyond reputeRafa has a reputation beyond repute
Send a message via MSN to Rafa
Default Re: laser+arduino

Make this:

__________________
Lasers:
~100mW 405nm from Erdabyz (L) akshakj <- Died once, working again. vid 1 vid 2(repaired)
~980mW 445nm in Ehgemus RPL style host, thanks to MR. DAGUIN vid
~25mW 532nm (potmoded) from DX (dead now, switch died and repair failed...)not moded vid
~50mW 532nm "star cap" style found in the bus. Yeah, lol.
~6mW 635nm diode laser pic 1 pic 2
~250mW 650nm extracted from 20x DVD burner. <- dead vid 1 vid 2
~130mW 650nm extracted from 16X DVD burner. <$15 to make! LPF thread

~100mW 780mn extracted from 52x CD burner. <- dead cremation vid

My Youtube channel
Rafa is offline   Reply With Quote
Old 11-21-2010, 05:32 PM #6
HIMNL9's Avatar
Class 4 Laser
 
Join Date: May 2009
Location: Lost somewhere in the EU mess ;)
Posts: 5,416
Rep Power: 1478
HIMNL9 has a reputation beyond reputeHIMNL9 has a reputation beyond reputeHIMNL9 has a reputation beyond reputeHIMNL9 has a reputation beyond reputeHIMNL9 has a reputation beyond reputeHIMNL9 has a reputation beyond reputeHIMNL9 has a reputation beyond reputeHIMNL9 has a reputation beyond reputeHIMNL9 has a reputation beyond reputeHIMNL9 has a reputation beyond reputeHIMNL9 has a reputation beyond repute
HIMNL9 HIMNL9 is offline
Class 4 Laser
HIMNL9's Avatar
 
Join Date: May 2009
Location: Lost somewhere in the EU mess ;)
Posts: 5,416
Rep Power: 1478
HIMNL9 has a reputation beyond reputeHIMNL9 has a reputation beyond reputeHIMNL9 has a reputation beyond reputeHIMNL9 has a reputation beyond reputeHIMNL9 has a reputation beyond reputeHIMNL9 has a reputation beyond reputeHIMNL9 has a reputation beyond reputeHIMNL9 has a reputation beyond reputeHIMNL9 has a reputation beyond reputeHIMNL9 has a reputation beyond reputeHIMNL9 has a reputation beyond repute
Default Re: laser+arduino

^ Just be sure that the PSU of the Arduino can give the current required from the laser module , AND that the laser module works with 5V (green ones are usually 3V or 3.3V, not 5V)
__________________
High Impulse Multipath Neutron Laser (mark 9 ) (LOL)
Dare mo mita koto no nai, kaze, kumo, suna, umi ..... Kokoro no hate no doko ka eien ga kagayaku.
HIMNL9 is offline   Reply With Quote
Old 11-21-2010, 05:35 PM #7
Junior Member
 
Join Date: Nov 2010
Posts: 3
Rep Power: 0
1mpar is on a distinguished road
1mpar 1mpar is offline
Junior Member
 
Join Date: Nov 2010
Posts: 3
Rep Power: 0
1mpar is on a distinguished road
Default Re: laser+arduino

Quote:
Originally Posted by HIMNL9 View Post
^ Just be sure that the PSU of the Arduino can give the current required from the laser module , AND that the laser module works with 5V (green ones are usually 3V or 3.3V, not 5V)
How can I calculate the ammount of current the laser needs?

It works with 3V, 2 AAA batteries.
1mpar is offline   Reply With Quote
Old 11-21-2010, 05:41 PM #8
HIMNL9's Avatar
Class 4 Laser
 
Join Date: May 2009
Location: Lost somewhere in the EU mess ;)
Posts: 5,416
Rep Power: 1478
HIMNL9 has a reputation beyond reputeHIMNL9 has a reputation beyond reputeHIMNL9 has a reputation beyond reputeHIMNL9 has a reputation beyond reputeHIMNL9 has a reputation beyond reputeHIMNL9 has a reputation beyond reputeHIMNL9 has a reputation beyond reputeHIMNL9 has a reputation beyond reputeHIMNL9 has a reputation beyond reputeHIMNL9 has a reputation beyond reputeHIMNL9 has a reputation beyond repute
HIMNL9 HIMNL9 is offline
Class 4 Laser
HIMNL9's Avatar
 
Join Date: May 2009
Location: Lost somewhere in the EU mess ;)
Posts: 5,416
Rep Power: 1478
HIMNL9 has a reputation beyond reputeHIMNL9 has a reputation beyond reputeHIMNL9 has a reputation beyond reputeHIMNL9 has a reputation beyond reputeHIMNL9 has a reputation beyond reputeHIMNL9 has a reputation beyond reputeHIMNL9 has a reputation beyond reputeHIMNL9 has a reputation beyond reputeHIMNL9 has a reputation beyond reputeHIMNL9 has a reputation beyond reputeHIMNL9 has a reputation beyond repute
Default Re: laser+arduino

^ then don't use the 5V (it's a green, right ?) ..... use the 3.3V, or an external 3V PSU .....

You can measure the current placing a DMM on 2A scale in serie with the batteries.
__________________
High Impulse Multipath Neutron Laser (mark 9 ) (LOL)
Dare mo mita koto no nai, kaze, kumo, suna, umi ..... Kokoro no hate no doko ka eien ga kagayaku.
HIMNL9 is offline   Reply With Quote
Old 11-21-2010, 05:52 PM #9
Rafa's Avatar
Class 2 Laser
 
Join Date: Feb 2010
Location: Madrid, Spain
Posts: 437
Rep Power: 1774
Rafa has a reputation beyond reputeRafa has a reputation beyond reputeRafa has a reputation beyond reputeRafa has a reputation beyond reputeRafa has a reputation beyond reputeRafa has a reputation beyond reputeRafa has a reputation beyond reputeRafa has a reputation beyond reputeRafa has a reputation beyond reputeRafa has a reputation beyond reputeRafa has a reputation beyond repute
Send a message via MSN to Rafa
Rafa Rafa is offline
Class 2 Laser
Rafa's Avatar
 
Join Date: Feb 2010
Location: Madrid, Spain
Posts: 437
Rep Power: 1774
Rafa has a reputation beyond reputeRafa has a reputation beyond reputeRafa has a reputation beyond reputeRafa has a reputation beyond reputeRafa has a reputation beyond reputeRafa has a reputation beyond reputeRafa has a reputation beyond reputeRafa has a reputation beyond reputeRafa has a reputation beyond reputeRafa has a reputation beyond reputeRafa has a reputation beyond repute
Send a message via MSN to Rafa
Default Re: laser+arduino

HIMNL9 is right. I don't think arduino can give.... maybe 1.5A out of the 3.3V output.

You may want to use an LM317 to regulate the current.

Make this instead:


EDIT: Crap that is not correct. You should connect the 390R resistor to ground.
__________________
Lasers:
~100mW 405nm from Erdabyz (L) akshakj <- Died once, working again. vid 1 vid 2(repaired)
~980mW 445nm in Ehgemus RPL style host, thanks to MR. DAGUIN vid
~25mW 532nm (potmoded) from DX (dead now, switch died and repair failed...)not moded vid
~50mW 532nm "star cap" style found in the bus. Yeah, lol.
~6mW 635nm diode laser pic 1 pic 2
~250mW 650nm extracted from 20x DVD burner. <- dead vid 1 vid 2
~130mW 650nm extracted from 16X DVD burner. <$15 to make! LPF thread

~100mW 780mn extracted from 52x CD burner. <- dead cremation vid

My Youtube channel
Rafa is offline   Reply With Quote
Reply





Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


LinkBacks (?)
LinkBack to this Thread: https://laserpointerforums.com/f44/laser-arduino-58147.html
Posted By For Type Date
???? ?? ?? ???? PWM ??????? ?? ?????? : ??? ?? This thread Refback 11-05-2015 03:18 PM
























Privacy Policy | Advertising Disclaimer | Terms of Use


 


All times are GMT. The time now is 09:10 AM.


Powered by: vBulletin
Copyright ©2000 - 2018, Jelsoft Enterprises Ltd.
Search Engine Friendly URLs by vBSEO
Privacy Policy | Advertising Disclaimer | Terms of Use
Copyright (C) 2017 Laser Pointer Forums, LLC