I am currently running a stepper motor using an esp32 and I am using the app inventor to send it two values. I am currently able to get it working with a button and two sliders one for each value but I would like it to continue running untill one of the sliders has changed.
I have tried to use a timer to send the values every 100 milliseconds but the stepper motor would skip steps and seemed to be sending random values. I then tried to send a 1 using SerialBT.println("1"); everytime i called bluetooth availaible and when I connected my phone to the Serial bluetooth terminal it was receiving 1's. I was then able to receive it but my compare text function(globalVariable = "1") never seemed to come true.
So overall I would like my stepper to move, check the sliders and then move again with the new values automatically.
I will copy my code once I figure out how but won't be till later, its 5am currently.
Any help is appreciated,
Thank you in advance