The dynamo uses rotary motion and does a fine job. The poster wanted to use shaking motion, up and down , different animal. I used a mercury switch for a while to make my tail light blink. Clamp the shake-and-glow light on a vertical axis. Good for warning aircraft. Stick a right angle prism or a mirror mounted at 45 degrees on the front of the light to bend the light beam in a horizontal direction. Verbum Sap