User Tools

Site Tools


motors:pwm_analysis

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:pwm_analysis [2023/04/16 19:11] – aistismotors:pwm_analysis [2023/04/16 19:16] (current) – aistis
Line 1: Line 1:
-motor with encoder speed analysis, +  * motor with encoder speed analysis,  
 +  * Chihai Motor CHR-16GR-050-ABHL DC 6V 12V 7PPR 
 +  * https://www.aliexpress.com/item/32833392055.html?spm=a2g0o.order_list.order_list_main.33.5e961802fERLUF 
 +  * pwm frequency, duty cycle, speed
  
-pwm frequency, duty cycle, speed+{{:motors:pasted:20230416-191512.png}} 
 +{{:motors:pasted:20230416-191557.png}}
  
 {{:motors:pasted:20230416-191030.png}} {{:motors:pasted:20230416-191030.png}}
  
 +<code>
 +Encoder motor_pos(18, 5);
  
 +WiFiClient client;
 +MySQL_Connection conn(&client);
 +
 +void setup() {
 +  Serial.begin(115200);
 +  Serial.println("start"); Serial.flush();
 +  pinMode(23, OUTPUT);
 +  pinMode(19, OUTPUT);
 +
 +  ledcAttachPin(17, 1);
 +  ledcSetup(1, 80, 8);
 +  ledcWrite(1, 255);
 +</code>
  
 to rotate motor to precise 2000 position is hard: to rotate motor to precise 2000 position is hard:
 {{:motors:pasted:20230416-191121.png}} {{:motors:pasted:20230416-191121.png}}
 {{:motors:pasted:20230416-191148.png}} {{:motors:pasted:20230416-191148.png}}
motors/pwm_analysis.1681661510.txt.gz · Last modified: by aistis