B4R Code Snippet driving xy stepmotors by single byte within redundance

... last example, steering XYstepper by oneByte (4Bit(16 States)*2) statesorders, missed redundance. This way may help, to dedect and repair lost bytes by use of same byte quantity as without redundance- I'm gone do ready it today:

one Byte got 8 bits. Take 3 bits for 8 directions now: North,North-East, East, South-East etc.. 1 further bit for definition of redunddance control for x- or y motor, last 4 bits for the motorstate of the defined motor, that is calculated by the arduinio as well as by PC.

Theoretically, the time between sending bytes is an interesting further dimension of information - analog frequency modulation:)

....
 
Top