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
motors:pwm_analysis [2023/04/16 19:15] – aistismotors:pwm_analysis [2023/04/16 19:16] (current) – aistis
Line 5: Line 5:
  
 {{:motors:pasted:20230416-191512.png}} {{: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.1681661713.txt.gz · Last modified: by aistis