Arduino Mutlitasking with millis(). The Stepper motor doesnt work, maybe affected by lcd display.
My Code is compiling and every feature is working besides the stepper motor. Does it get blocked by the lcd display, or is the stepper function itself wrong. (Comands and nessecary headers included in the headerfile)
16 Replies
would be nice if someone could help me since that project is due to tomorrow and today in the test we realised that the stepper is not working
I haven't looked at your code. But if your printing to a display yes its a blocking function
okay, is it blocking aswell when im doing a temporary print
how do i fix it. should i use the acellStepper libraray with runSpeed()?
You cant fix it.
What is "temporary print"
okay, but i definetly need that motor to run
what about that accelStepper lib
If u remove all prints and led code does ir work?
indipendantly the stepper works
the led code also shouldnt block due to the millis() implementation
Ok there you go
the lcd is the problem
but is it also fixable if i use the accell Stepper lib since step() is blocking but stepper.runSpeed() isnt
You can try.
Like I said I haven't seen your code
okay
i will try by using this lib and remove the lcd stuff
Seems like it didnt Work
I figured not.
wot is "Windkraftwerk.h"
Oh - its where you define a lot of libraires, variables, sort of stuff that may be required for the code to actually compile
@DaDev Stepper stepper(2048, 4, 1, 2, 0); good choices
I did not even look at code
Its all ai crap any more
@0xM0n0ch70m3 Can we assume you have departed ?
I am off now - catch later
