SpindleETH

More
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.
Last edit: 27 Jul 2025 17:59 by Aciera.

Please Log in or Create an account to join the conversation.

More
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.

More
30 Jul 2025 15:43 #332562 by tuxcnc
Replied by tuxcnc on topic SpindleETH
Cheap chinese magnetic encoder E6B2CWZ6C, 2500 P/R (10000 quadrature counts), spindle speed ~1400 rpm at left and ~60 rpm at right. Halscope shows velocity in rotates per second.
 
Attachments:
The following user(s) said Thank You: COFHAL

Please Log in or Create an account to join the conversation.

Moderators: PCWjmelson
Time to create page: 0.111 seconds
Powered by Kunena Forum