The movement I was referring to is something like this:
You hold the phone in your hand vertically with the screen facing you, and then you rotate your hand clockwise and back.
I actually used the roll value from the first link you provided, and with a little bit of logic added, I can easily detect the condition I am looking for.
Thanks a lot,
iCAB