I did exactly that here:
You should probably add a couple of decoupling capacitor to avoid noise problems.