User Tools

Site Tools


motors:motor_with_encoder

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revisionPrevious revision
Next revision
Previous revision
motors:motor_with_encoder [2022/09/26 20:27] – aistismotors:motor_with_encoder [2022/09/26 23:40] (current) – aistis
Line 2: Line 2:
  
 RK 520 encoder motor RK 520 encoder motor
 +
 +one round turn equals to 44 encoded steps
 +
  
  
  
 {{:motors:pasted:20220926-202712.png}} {{:motors:pasted:20220926-202712.png}}
 +
 +
 +<code cpp>
 +#include <Encoder.h>
 +
 +Encoder knobLeft(19, 16);
 +
 +void setup() {
 +  Serial.begin(115200);
 +  Serial.println("start");
 +}
 +
 +void loop() {
 +  auto a = knobLeft.read();
 +  Serial.printf("%d, %d\n", a, a);
 +
 +}
 +</code>
 +
 +speed reduction
 +
 +{{:motors:pasted:20220926-232003.png}}
 +
 +PWM vs motor speed at 5V:
 +{{:motors:pasted:20220926-233738.png}}
 +
 +
 +{{:motors:pasted:20220926-234046.png}}
motors/motor_with_encoder.1664213249.txt.gz · Last modified: by aistis