Hi, i have a problem i cannot see / solve.
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?
I have the codes in the attached text file.
code.rtf (37.4 KB)