I have a code that runs a focus motor to a telescope with a program on my laptop via USB, it sends different serial commands to my arduino and the arduino sends data like steps etc. back to the program (FocusMax)
I started to mod that code so that i could run that motor with two buttons, in and out.
That worked well, later on, i bought a LCD that i wanted to display the steps the motor has turned, and a DHT22-sensor that displays temp and hygrometer.
To display the steps on the LCD and to not slow the motor down, i wrote the lcd.print outside the loop with a timer... i think it might be that who bugs?
Hmm... tried to reassign the pins regarding the half stepper but it seems to have some function even though i have the easy driver, can someone see what the myHalfStepper is doing?
I reassigned the myHalfStepper to pin (960, 961, 962, 963, 964) but received question marks in the "communication field" in SGL's FocusMax add-on...
I tried to change to this HalfStepper myHalfStepper = HalfStepper(960, 19, 110, 111, 112);
just to assign the half stepper to other pins... but the error message still is there...
when i put all the lcd-code within /* tags i didn't recieve any error at all, what could be wrong?
i also attached a print screen of the program with the error message.
The EasyDriver doesn't need the Stepper or HalfStepper library. It has just two pins that connect to the Arduino. Set the dir pin HIGH or LOW to control the direction. Set the step pin HIGH then LOW to step.
Then, you don't have to worry about which 4 pins to use for the HalfStepper library.
I think you need to uncomment the LCD calls one at a time to see which one causes problems. I don't recognize the code you are trying to run. Nor do I see why the LCD should be interfering.
I have now changed all the pins on the librarys i dont have to use (helfstepper and powerpin) LCD works like a charm, it seems to be the code regarding the DHT-sensor and the float that gives me the errors... wonder how i am going to fix that
So, now i have deleted all of the code that is not relevant and the program is running along fine now... and less stress on the arduino i think....
Now to the DHT-sensor and the float problem
Is there to many floats perhaps?
Again, I'd start with uncommenting one line at a time. You are aware, I hope, that reading the temperature and humidity with that sensor can take as much as 3/4 of a second.
I'm not sure I see the purpose of the EasyDriverStep() function when you don't call it in loop().