經過電機編碼器AB相輸出肯定電機轉向

AB相輸出相差90度,即當A相"正跳變"時若是B相是高電平那麼是"正轉",反之是"反轉"   圖片: 正轉 反轉 #include <TimerOne.h> #define D_Left_PIN 7 #define D_Right_PIN 8 #define IN1 22 #define IN2 23 #define IN3 24 #define IN4 25 #define ENA 5 #d
相關文章
相關標籤/搜索