If the output you need is a fixed 12mA current into any device it is called a "constant current source" and can be made easily with a LM317 chip (a simple 3pin regulator chip) and one resistor to set the current.
The circuit is usually shown in the LM317 datasheet which you can download from the internet.