Simplest is to order some 3W led driver boards on line, and use them. There are plenty that are tiny and have all the required circuitry on there, the input bridge rectifier ( so it will work on AC or DC supply), the buck converter and the current sensing, all in a small $1 part. I bought a couple of them as part of another order, and they are about the easiest solution as a plug in part.