Skip to content

Commit 852658c

Browse files
committed
major update to v1.1
1 parent 93cc504 commit 852658c

File tree

8 files changed

+101451
-22834
lines changed

8 files changed

+101451
-22834
lines changed

cad/esp32stepper.FCStd

-4.58 MB
Binary file not shown.

cad/esp32stepper_parts.step

Lines changed: 83127 additions & 0 deletions
Large diffs are not rendered by default.

fcbot.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -47,7 +47,7 @@ outputs:
4747
objects:
4848
- case
4949
- mount
50-
- pcb
50+
- esp32stepper
5151
- NEMA17
5252
options:
5353
resolution: [1024, 768] # Specify the X and Y resolution for the export

firmware/esphome/esp32stepper.yaml

Lines changed: 33 additions & 24 deletions
Original file line numberDiff line numberDiff line change
@@ -4,15 +4,15 @@
44
external_components:
55
- source: github://slimcdk/esphome-custom-components
66
components: [tmc2209_hub, tmc2209, stepper]
7-
- source:
8-
type: local
9-
path: components/sensor/AS5048B
7+
# - source:
8+
# type: local
9+
# path: components
1010

1111
esphome:
1212
name: esp32stepper
1313
project:
1414
name: nerdyscout.esp32stepper
15-
version: "1.0"
15+
version: "1.1"
1616
platformio_options:
1717
board_build.flash_mode: dio
1818
upload_speed: 921600
@@ -81,40 +81,48 @@ logger:
8181
# level: DEBUG
8282

8383
i2c:
84-
sda: GPIO45
85-
scl: GPIO38
84+
sda: GPIO46
85+
scl: GPIO45
8686
scan: true
8787
# id: bus_a
8888

8989
uart:
90-
tx_pin: GPIO43
91-
rx_pin: GPIO44
92-
baud_rate: 115200
93-
# id: serial
90+
- id: serial_extern
91+
tx_pin: GPIO43
92+
rx_pin: GPIO44
93+
baud_rate: 115200
94+
- id: serial_stepper
95+
tx_pin: GPIO17
96+
rx_pin: GPIO18
97+
baud_rate: 115200
98+
99+
tmc2209_hub:
100+
id: tmc_hub
101+
uart_id: serial_stepper
94102

95103
output:
96104
- platform: gpio
97-
pin: GPIO14
105+
pin: GPIO21
98106
id: MS1_pin
99107
- platform: gpio
100108
pin: GPIO13
101109
id: MS2_pin
102110

103111
- platform: gpio
104-
pin: GPIO48
112+
pin: GPIO14
105113
id: CFG1_pin
106114
- platform: gpio
107-
pin: GPIO07
115+
pin: GPIO12
108116
id: CFG2_pin
109117
- platform: gpio
110-
pin: GPIO47
118+
pin: GPIO11
111119
id: CFG3_pin
112120

113121
light:
114122
- platform: neopixelbus
115123
type: GRB
116124
variant: WS2812
117-
pin: GPIO46
125+
pin: GPIO10
118126
num_leds: 2
119127
id: led_rgb
120128
- platform: partition
@@ -133,16 +141,17 @@ light:
133141
stepper:
134142
- platform: tmc2209
135143
id: driver
144+
tmc2209_hub_id: tmc_hub
136145
max_speed: 800 steps/s
137146
acceleration: 1500 steps/s^2
138147
deceleration: 1500 steps/s^2
139148
rsense: 100 mOhm
140149
vsense: False
141150
enn_pin: GPIO09 # Enable not input pin for the driver.
142-
diag_pin: GPIO12 # Error signaling from the driver.
143-
index_pin: GPIO11 # Serves as stepping feedback from the internal step pulse generator
144-
# step_pin: GPIO10 # Provides stepping pulses to the driver.
145-
# dir_pin: GPIO08 # Controls direction of the motor.
151+
diag_pin: GPIO08 # Error signaling from the driver.
152+
index_pin: GPIO07 # Serves as stepping feedback from the internal step pulse generator
153+
step_pin: GPIO02 # Provides stepping pulses to the driver.
154+
dir_pin: GPIO04 # Controls direction of the motor.
146155
on_status:
147156
- logger.log:
148157
format: "Driver is reporting an update! (code %d)"
@@ -171,7 +180,7 @@ binary_sensor:
171180
- platform: gpio
172181
name: Button 1
173182
pin:
174-
number: GPIO17
183+
number: GPIO47
175184
mode: INPUT
176185
inverted: true
177186
id: btn1
@@ -182,7 +191,7 @@ binary_sensor:
182191
name: Button 2
183192
id: btn2
184193
pin:
185-
number: GPIO21
194+
number: GPIO48
186195
mode: INPUT
187196
inverted: true
188197
filters:
@@ -228,9 +237,9 @@ sensor:
228237

229238
- platform: rotary_encoder
230239
name: "Rotary Encoder"
231-
pin_a: GPIO01
232-
pin_b: GPIO03
233-
pin_reset: GPIO02
240+
pin_a: GPIO15
241+
pin_b: GPIO16
242+
pin_reset: GPIO03
234243
id: rotary
235244
# on_value:
236245
# then:

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,3 @@
11
{
2-
"version": 1.0
2+
"version": 1.1
33
}

0 commit comments

Comments
 (0)