Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Software SPI not working #80

Open
TillScout opened this issue Jun 13, 2019 · 2 comments
Open

Software SPI not working #80

TillScout opened this issue Jun 13, 2019 · 2 comments

Comments

@TillScout
Copy link

I use the library with an Arduino Uno. Simple.ino works exactly as expected. I use this pin setup:

#define EN_PIN    7  // Nano v3:	16 Mega:	38	//enable (CFG6)
#define DIR_PIN   6  //			19			55	//direction
#define STEP_PIN  5  //			18			54	//step
#define CS_PIN    8  //			17			64	//chip select

But when using Software_SPI.ino, I get no reaction. Since the pin setup is very similar to the above:

#define EN_PIN    7  // Nano v3:	16 Mega:	38	//enable (CFG6)
#define DIR_PIN   6  //			19			55	//direction
#define STEP_PIN  5  //			18			54	//step
#define CS_PIN    8  //			17			64	//chip select
#define MOSI_PIN  9
#define MISO_PIN 10
#define SCK_PIN  11

I can rule out wrong connections (just have to move MOSI, MISO and SCK two pins to the right to the hardware SPI pins and load Simple.ino).

What happens, when using software SPI is that the stepper turns by very little (possibly one step) and then nothing else happens. On the serial monitor I get this output:
DRV_STATUS=0b10000000000010010000000000000000
I did not modify any of the files, apart from pin definitions.

@Tamonir
Copy link

Tamonir commented Aug 27, 2019

Hi,

same Problem here. I use a Fysetc 2130 driver, unsoldered/resoldered vor SPI mode in my 3D Printer - at least there it is working. Connecting the driver to the Arduino nano as described In SPI example, I don't get anything at all. Is it correct, that steps are still done by step pin and not by SPI?

When I resolder the CFG bridge to standalone mode, the stepper is at least making some noise but still no movement. At least SPI seams to be working as the driver gets hot when setting rms to 800/900 mA

Do you have any idea? How have the solder points on the tmc have to be soldered?

So far, thanks in advance,

Christian

@changedsoul
Copy link

changedsoul commented Jul 12, 2020

Never mind my rant! For some reason it just started working.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants