SpindleETH
- tuxcnc
- Offline
- Premium Member
-
Less
More
- Posts: 131
- Thank you received: 10
27 Jul 2025 13:59 - 27 Jul 2025 17:59 #332410
by tuxcnc
SpindleETH was created by tuxcnc
github.com/tuxcnc/SpindleETH
# SpindleETH
Intended for lathe spindle control by Ethernet.
No axes control.
# Hardware
This repository is for STM32F103C8 or STM32F103CB
# Tests
Tested on real machine with 2500 p/r encoder and ~1500 rpm.
Direct to PC's eth interface or thru switch (some switches may not work).
# Improvements
New index_enable philosofy.
The encoder's index signal (mostly named Z) is not transmitted to HAL component (it causes delays and threatens to lose a signal).
Controller sends raw counts and raw counts latched at every index pulse instead.
The component knows the index occured by comparing current and previous latched values.
# Adds
1. PWM output (1 kHz and 16 bit resolution)
2. Digital I/O
# Tools
Added encoder emulator for tests.
Important: Arduino can't turn off ESP32C3 watchdog and resets chips after every two seconds.
If it is problem for you, rewrite code for esp-idf or use other microprocessor.
# Other info
Read comments at the tops of source files.
# SpindleETH
Intended for lathe spindle control by Ethernet.
No axes control.
# Hardware
This repository is for STM32F103C8 or STM32F103CB
# Tests
Tested on real machine with 2500 p/r encoder and ~1500 rpm.
Direct to PC's eth interface or thru switch (some switches may not work).
# Improvements
New index_enable philosofy.
The encoder's index signal (mostly named Z) is not transmitted to HAL component (it causes delays and threatens to lose a signal).
Controller sends raw counts and raw counts latched at every index pulse instead.
The component knows the index occured by comparing current and previous latched values.
# Adds
1. PWM output (1 kHz and 16 bit resolution)
2. Digital I/O
# Tools
Added encoder emulator for tests.
Important: Arduino can't turn off ESP32C3 watchdog and resets chips after every two seconds.
If it is problem for you, rewrite code for esp-idf or use other microprocessor.
# Other info
Read comments at the tops of source files.
Last edit: 27 Jul 2025 17:59 by Aciera.
Please Log in or Create an account to join the conversation.
- Aciera
-
- Offline
- Administrator
-
Less
More
- Posts: 4454
- Thank you received: 1994
27 Jul 2025 15:47 - 27 Jul 2025 17:59 #332415
by Aciera
Replied by Aciera on topic SpindleETH
Thanks
Last edit: 27 Jul 2025 17:59 by Aciera.
The following user(s) said Thank You: COFHAL
Please Log in or Create an account to join the conversation.
- tuxcnc
- Offline
- Premium Member
-
Less
More
- Posts: 131
- Thank you received: 10
30 Jul 2025 15:43 #332562
by tuxcnc
Replied by tuxcnc on topic SpindleETH
Attachments:
The following user(s) said Thank You: COFHAL
Please Log in or Create an account to join the conversation.
Moderators: PCW, jmelson
Time to create page: 0.111 seconds