Skip to content

Improvement: use smooth temporal dithering for stepper motor pulses #28

@FilipDominec

Description

@FilipDominec

This code:

def imp(count,length): 
   return "".join("#" if (i * count) % length < speed else " "  for i in range(length)) 

for n in range(1,100): print(imp(n,100)) 

generates a beautiful even spread of exactly count impulses per overall length range of symbols. This could improve handling of CPU time at the stepper update routine, or could be re-used at any time-dependent update routine like in DDS etc.

Thank you, [@addam], for this great tip!

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions