Thanks
It doesn’t get much simpler than this:
#include <AccelStepper.h>
AccelStepper stepper (1,2,3);
void setup()
{
stepper.setMaxSpeed(1000);
stepper.setSpeed(50);
}
void loop()
{
stepper.runSpeed();
}
If so, please post under the corresponding thread folder: http://www.stm32duino.com/viewforum.php?f=51
Without seeing it I can’t say, but if they work the same, you are setting the stepper to 1 step, pin 2 for direction, and pin 3 for steps.
Is that right?
To add to the confusion, I tried just to pulse pin 2 like with Blink which pulsed the LED on 2 but motor only growled. Turned out the motor was bad! Good motor ran using blink but when I switched back to the stepper libs the LED would not blink and motor would not run.
AccelStepper stepper (1,2,3);
1= type pulse/dir
2=pulse pin
3=dir pin.
Thanks!
[stevestrong – Sun Jul 02, 2017 7:03 am] –
I think you are using the STM32GENERIC core from Daniel, right?
If so, please post under the corresponding thread folder: http://www.stm32duino.com/viewforum.php?f=51
http://www.airspayce.com/mikem/arduino/ … 273fbb012d
Did I misunderstand it?
Ok I see mode 1 is stepper driver.
Not sure what’s going on, you are going to have to dig a bit in the source code if noone else has used that library.
Thanks
[victor_pv – Sun Jul 02, 2017 9:50 pm] –
Not sure what’s going on, you are going to have to dig a bit in the source code if noone else has used that library.
[stevestrong – Sun Jul 02, 2017 7:03 am] –
I think you are using the STM32GENERIC core from Daniel, right?
If so, please post under the corresponding thread folder: http://www.stm32duino.com/viewforum.php?f=51
[davey – Mon Jul 03, 2017 8:14 pm] –
I don’t see a forum that seems to fit the Nucleo STM32L432KC but maybe it’s just my ignorance about how things work.[stevestrong – Sun Jul 02, 2017 7:03 am] –
I think you are using the STM32GENERIC core from Daniel, right?
If so, please post under the corresponding thread folder: http://www.stm32duino.com/viewforum.php?f=51
If you are using the core from Grumpyoldpizza, I don’t think it has a dedicated forum. The STM32Generic does have one. Check where did you download your core from and you will now which one you have.
By the way, did you see if the DIR pin changes value if you try to change the direction with the library calls, or that pin doesn’t do anything either?
Or, you can classify your topic under the core you use, libmaple or generic.
For grumpyoldpizza core i think we dont have special thread folder.
There is no specific forum for that one, so I guess this forum is fine.
I do not have experience with that core though, you may want to send a PM to him.
Did you see my question in a previous post?
By the way, did you see if the DIR pin changes value if you try to change the direction with the library calls, or that pin doesn’t do anything either?


