Microcontroller Adjustable 2A 24V Constant Current Source
http://www.digikey.com/product-detail/en/texas-instruments/DRV103H/DRV103H-ND/390444

http://www.ti.com/lit/ds/symlink/drv103.pdf

Adjusting PWM resistor you can  change the output current