Modifications

Sauter à la navigation Sauter à la recherche
Ligne 29 : Ligne 29 :     
[[Fichier:Pololu-Romi-32U4-Carte-Moteur-et-encodeur-00.png]]
 
[[Fichier:Pololu-Romi-32U4-Carte-Moteur-et-encodeur-00.png]]
 +
 +
The XORed signal and the channel B signal can be used to reconstruct the channel A signal by simply XORing them again: '''(A XOR B) XOR B = A'''. For both encoders, channel B leads channel A when the motor is rotating in the forward direction; that is, B rises before A rises and B falls before A falls. (The waveforms in the diagram above would be produced by forward rotation.) Note that this description designates the A and B signals as labeled on the control board itself, which puts A in front on both sides.
 +
 +
The Romi32U4 library provides appropriate interrupt service routines and functions for reading the encoders and keeping track of their counts (see Section 6).
    
{{Pololu-Romi-32U4-TRAILER}}
 
{{Pololu-Romi-32U4-TRAILER}}
29 917

modifications

Menu de navigation