Im trying to make simple driver for laser from this video
https://youtu.be/2Rjlf7gnXmsI do everything like on video but when i connect laser lm317 are not giving any voltage on output (tested 1-12v on power supply)
I think you have the outer pins reversed and you probably did that because you are looking at it from the bottom. Triple-check the datasheet for pinout.
Its The top side ,You can see text on it
What you have built does not match the video.
What doesnt match? It should work anyway
fwiw,i always get pins mixed up on lm 78 and 317 regs,saying that i brought a load of lm388 regs from ebay,the most i could prise out of them was about 300ma,they were all fakes,same with 2n3055 t03 jobs,1 amp max and pop!
Its The top side ,You can see text on it
OK, a little angle on the photo would help--it looked like the tab was up off the table to me. What is the polarity of the power supply? The positive should be going to the black wire, the red wire to the load and then the other side of the load to the negative on the power supply. Also, is that a 330 ohm resistor? And you are only expecting 3-4 mA of current? I'm not sure the LM317 will work reliably at that low of a current in this configuration. Check the polarity first, though.
What doesnt match? It should work anyway
What are the colors for the plus and minus leads from your power supply?
Black wire to plus red to load
I want to get 150-250 ma
Black wire to plus red to load
I want to get 150-250 ma
In electronics, red is traditionally the plus lead and black is the minus lead. It looks like you may have connected everything backwards. I would test everything with a resistor replacing the laser diode in case the LM317 was damaged by the reverse polarity. Note that it's also possible that the laser diode was damaged. I don't know enough about that to suggest a testing method.
Regardless of color, the input pin on the LM317 should be connected to the plus lead on your power supply. The ADJ lead should be connected to the positive lead of your laser diode. The negative lead on the power supply should be connected to the negative lead of your laser diode.
Im 100% sure that its connected properly
Diode also works when i skip lm317 and connect power directly to diode
As specified in the video, you take 1.25 and divide it by the desired current - in your case 0.2 A. The result is 6.25 ohms. It looks like you're using either a 330 or 3300 ohm resistor according to the color code in your photo. I can't quite make out whether that third band is brown or red. How did you select that resistor?
Yea so it looks like i bought wrong resistor
You should build up a stock of junk boards and parts so that when things like this happen - and they will always happen - you can continue on with your project and buy new parts later if necessary.
So i have one more question
I see 0.25 watt and 1 watt resistors
Does it matter in this build?
Connecting two 2.2om 0.25w resistors give Me 4.4om 0.5w?
To calculated the power dissipation us Ohm's law.
P = VI
P = I2R
P = V2/R
In your case, all of the load current flows through the current sense resistor, which also has 1.25V across it, so use whichever formula is easiest for you.
The circuit requires plenty of voltage headroom. Ideally the input voltage should be at least 4V above the load voltage, but as you're only using it for 200mA, you'll probably get away with 3V, going from the graphs on the data sheet.
So i have one more question
I see 0.25 watt and 1 watt resistors
Does it matter in this build?
Connecting two 2.2om 0.25w resistors give Me 4.4om 0.5w?
Yes, the power ratings would add like that. But as a rule you don't want to run resistors anywhere near their maximum, especially the little ones. I would use a single 1W resistor in something like this and if I had a 3W or 5W on hand, I'd use that without feeling that it is being wasted.
So i have one more question
I see 0.25 watt and 1 watt resistors
Does it matter in this build?
Connecting two 2.2om 0.25w resistors give Me 4.4om 0.5w?
Yes, the power ratings would add like that. But as a rule you don't want to run resistors anywhere near their maximum, especially the little ones. I would use a single 1W resistor in something like this and if I had a 3W or 5W on hand, I'd use that without feeling that it is being wasted.
You're not wrong, but 200 ma through a 2.2 ohm resistor is only 0.088 W so a 1/4 watt resistor would be operating at about 35% of its rating. More than enough safety factor there. A 1/2 W resistor would be fine too, but anything larger feels like overkill, particularly due to the size penalty of a 1W resistor compared to 1/4 or 1/2 W.
You're not wrong, but 200 ma through a 2.2 ohm resistor is only 0.088 W so a 1/4 watt resistor would be operating at about 35% of its rating. More than enough safety factor there. A 1/2 W resistor would be fine too, but anything larger feels like overkill.
I was basing that on using a single 6-ish ohm resistor to get the current he wants. But as far as safety factors go with resistors, you can't just use the headline advertised power rating without considering how hot they'll get and how their lifetime might be affected, especially if this is something run continuously. Some of those tiny modern "1/4W" resistors are running internal temperature rises of 85C+. A few years go by and you have a brown spot on your PCB and an open resistor. Overkill may be just enough in many cases.
You're not wrong, but 200 ma through a 2.2 ohm resistor is only 0.088 W so a 1/4 watt resistor would be operating at about 35% of its rating. More than enough safety factor there. A 1/2 W resistor would be fine too, but anything larger feels like overkill.
I was basing that on using a single 6-ish ohm resistor to get the current he wants. But as far as safety factors go with resistors, you can't just use the headline advertised power rating without considering how hot they'll get and how their lifetime might be affected, especially if this is something run continuously. Some of those tiny modern "1/4W" resistors are running internal temperature rises of 85C+. A few years go by and you have a brown spot on your PCB and an open resistor. Overkill may be just enough in many cases.
Yes, if the OP used a single 6-ish ohm resistor it would be dissipating ~1/4W so you'd have to use at least a 1/2W resistor. If he used two 2.2 ohm resistors in series, he'd have ~285 ma and each resistor would dissipate ~180 mW. I'd be comfortable with 1/2W resistors, but nothing smaller.
I made the mistake of using the 200 ma value in my earlier message, but that would only be valid for the 6 ohm resistor, not for two 2.2 ohm resistors. I think I've got it right this time!