I know this post is nearly a year old, but I had the same problem as the OP and my google searching led me to this post.
In hopes of helping someone in the future I thought I’d post my solution. I’m NOT an electronics guru, so I’m sure there are cheaper, simpler more elegant solutions; but...