sparkfun / Serial7SegmentDisplay

Example code and board files for the Serial 7 Segment Display.
https://www.sparkfun.com/products/11629
95 stars 73 forks source link

Refresh rate / flicker #17

Closed josephernest closed 9 years ago

josephernest commented 9 years ago

I'm currently filming my hardware project (including a 7seg display) with a camera.

The result is flickering because probably the refresh rate does not fit well with 24fps or 30fps of my camera.

Any idea on how to change refresh rate of Serial7SegmentDisplay?

jimblom commented 9 years ago

You'll have to modify the SevSeg library to achieve this. The constant FRAMEPERIOD, defined here is probably the best place to begin experimenting. Try turning it to somewhere between 500-1000.

josephernest commented 9 years ago

In fact the problem has been solved by changing the shutter speed of the camera (didn't know it was possible in "Movie" mode). Setting shutter speed to 1/30 or 1/50 worked.

On Mon, May 18, 2015 at 5:09 PM, Jim Lindblom notifications@github.com wrote:

You'll have to modify the SevSeg library https://github.com/sparkfun/SevSeg to achieve this. The constant FRAMEPERIOD, defined here https://github.com/sparkfun/SevSeg/blob/master/src/SevSeg.h#L28 is probably the best place to begin experimenting. Try turning it to somewhere between 500-1000.

— Reply to this email directly or view it on GitHub https://github.com/sparkfun/Serial7SegmentDisplay/issues/17#issuecomment-103090739 .