Brilliant, chapter 13 describes the thing i am trying to do exactly!
In case any future readers stumble across the thread, here is the circuit diagram the book suggests. (since there is nothing worse when googling than finding a thread describing your problem, shortly followed by a "I fixed it"...