sometimes this pain affects me as well. i find the bed does it to me mostly. Once it gets bad, I will take out 3" memory foam mattress and lay it in the floor and sleep on it a couple nights. it helps a lot!
the TENS machine is what a previous poster was trying to think of. its an electronic stimulator that pulses jolts of electricity through probes that are stuck to your back. makes the muscles contract and relax causing them to work themselves into a relaxed state.