- Posts: 296
- Thank you received: 0
SpindleETH
1 year 3 months ago #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.
Please Log in to join the conversation.
1 year 3 months ago #332415
by Aciera
Replied by Aciera on topic SpindleETH
Thanks
Please Log in to join the conversation.
1 year 3 months ago #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.
Attachment not found
Please Log in to join the conversation.
Time to create page: 0.154 seconds
