]> www.infradead.org Git - users/dwmw2/esp32-pool.git/commitdiff
Reduce current, set microsteps to 1, speed to 500 steps/s
authorDavid Woodhouse <dwmw@amazon.co.uk>
Tue, 11 Feb 2025 21:34:27 +0000 (21:34 +0000)
committerDavid Woodhouse <dwmw@amazon.co.uk>
Tue, 11 Feb 2025 21:34:27 +0000 (21:34 +0000)
Hopefully no longer triggering the USB PD to cut out during motion

blind.yaml
landing-blind-3.yaml

index 9f0ca69efb45724722444a573a9fee0c5ade8a46..ef96e88f3d96d0a1dc24f9980fa4860d83853996 100644 (file)
@@ -24,7 +24,7 @@ esphome:
         tpowerdown: 0
         iholddelay: 0
         # irun: 16
-        run_current: 800m #Set your desired current here (800m = 800mA, 1 = 1A etc.)
+        run_current: 100m #Set your desired current here (800m = 800mA, 1 = 1A etc.)
         standstill_mode: coil_short_ls
 
      # set PD voltage    # 5V  9V  12V  15V  20V
@@ -97,6 +97,7 @@ sun:
 external_components:
   - source: github://slimcdk/esphome-custom-components
     components: [tmc2209_hub, tmc2209, stepper]
+    refresh: 0s
 
 mqtt:
   on_connect:
@@ -162,7 +163,7 @@ globals:
 stepper:
   - platform: tmc2209
     id: motor
-    max_speed: 600 steps/s
+    max_speed: 500 steps/s
     acceleration: 400 steps/s^2
     deceleration: 400 steps/s^2
     rsense: 100 mOhm
@@ -305,6 +306,27 @@ sensor:
     filters:
       - multiply: 8.47742
 
+  - platform: tmc2209
+    type: motor_load
+    name: Motor load
+    update_interval: 250ms
+    filters:
+      delta: 1
+
+  - platform: tmc2209
+    type: stallguard_result
+    name: StallGuard result
+    update_interval: 250ms
+    filters:
+      delta: 1
+
+  - platform: tmc2209
+    type: actual_current
+    name: Actual current
+    update_interval: 250ms
+    filters:
+      delta: 1
+
 cover:
   - platform: template
     id: pd_blinds
index ce7ebfc3889bba35d041b84c5489228c9501c7f1..69c69df4c2370e718da33959f7abccf758883f51 100644 (file)
@@ -1,7 +1,7 @@
 substitutions:
   name: "landing-blind-3"
   encoder_closed_pos: "230000" # full blinds length (in encoder counts) !! CHANGE TO SUIT YOUR SETUP !!
-  microsteps: "2"
+  microsteps: "1"
 
 packages:
   blind: !include blind.yaml