So I a working on a project where I have different devices attached to a board and they are not used at the same time. One of the devices is a laser diode that has a maximum current rating of 1.7A. Now I wanted to design a constant current source circuit using the LM317 adjustable voltage regulator. The LM317 maximum current rating is 1.5A, which is fine because I plan on driving up to 1A to the laser anyway. I have two issues: first, I have looked in the datasheet for the LM317 and on page 14 figure 18, is a schematic of the LM317 in constant current configuration but it's only 50mA). Second remember that this device will only operate by it self while the others are off, therefore I need a way of logically turning on the power source for the LM317 that's going to help it generate at least 1A. I have a logic level n-channel mosfet, PSMN022-30pl and I am using a raspberry (microcomputer) as the brains.t Looking through the LM317 datasheet, figure 23 on page 17 was the closest idea to generating higher current using a transistor, but it is not in the constant current configuration. I first was thinking of tying the mosfet drain to a 9v-12v PS, the gate tied to a GPIO to the raspberry through a low value resistor, and tying the source to the input of the LM317, but I don't believe that the LM317 can handle forcing current through the input like that. Any suggestions?
LM317 Datasheet - Here
PSMN022-30pl Datasheet - Here
LM317 Datasheet - Here
PSMN022-30pl Datasheet - Here


