Comments (6)
I might entertain this idea with the TMCStepper library that will be the main focus going forward.
It might not even be too difficult to implement.
from tmc2130stepper.
I propose using a Serial Shift register, such the 74HC595 or 74HC164 to control the CS lines
from tmc2130stepper.
@Grogyan
A: Please explain how to use a serial shift register without using extra processor pins....
B: Why use a proprietary method while the device supports standard cascade mode ?
from tmc2130stepper.
The TMC2130 does not have a cascadable feature, as far as I am aware
The TMC5130 and 5160 do however have a "cascadable" feature and support a 1-wire bus.
However, using a serial shift register, is an easy method to support any SPI system to control the Chip Select pins, and both the 74HC595 and 74HC164 can be cascaded.
The 74HC164 uses one less pin than the 595, however, I prefer a separate pin to shift all the data at once.
74HC164 needs
Clock, Data, and maybe a Reset pin
You can potentially use the same SPI clock and SPI data MOSI pins as the TMC drivers, leaving one additional pin for the latching of the CS lines from the shift register.
As an additional bonus to using a shift register, you can use the same hardware SPI bus and shift register to control other SPI enabled devices, for example the MAX31855 thermocouple, which I use predominantly over thermistors on a hot end.
from tmc2130stepper.
See chapter 4.2 of the tmc2130 datasheet:
"If more than 40 clocks are driven, the additional bits shifted into SDI are shifted out on SDO after a 40-clock delay through an internal shift register. This can be used for daisy chaining multiple chips."
Concerning the use of shift registers:
Yes I know you can use shift registers as spi "io expanders", but that does not completely solve the problem of already to few pins available and it will certainly not simplify the interconnection of the tmc chips to the processor (adding an extra chip + connections)..... also I think this would have more impact on the software...
from tmc2130stepper.
@pgScorpio I stand corrected 👍
I somehow missed that part of the datasheet like 10 times. Lol
from tmc2130stepper.
Related Issues (20)
- Motor won't rotate if stealthChop isn't enabled HOT 3
- microsteps() takes power of two values... except at full steps?
- ESP8266 (Wemos D1) in combination with stepper motor driver tmc2310, heat problem and force hold problem. HOT 1
- StallGuard can't seems to work while in TMCL-IDE the same config works HOT 1
- setting RMS current via SPI & via ref voltage / potentiometer, difference? HOT 3
- On driver board end stops HOT 3
- Reading 256
- readme.md missing reference HOT 2
- Struggling with parameters HOT 2
- how to setup HOT 1
- StallGuard Example not working HOT 1
- Simple example only partially working HOT 3
- How to reduce motor vibrations? HOT 1
- Calibrate_spreadCycle - DRV_STATUS() returning 0xFFFFFF HOT 1
- TMC2130 Stallguard not working with Arduino UNO HOT 8
- Issue with higher current rated motors HOT 8
- Possible pull request... Use MCP23017 to multiple SPI TMC2130 HOT 7
- Is DIR pin obsolete? / verify current fraction of steps / 1 step function in SPI HOT 2
- i am not able to see LOST_STEPS. please help me ...
- I am not able to Enable LOST_STEP feature HOT 3
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from tmc2130stepper.