New to Blynk and Arduino. I have built the “Autonomous Cooler” and got it working sort of.
The GPS and compass are not very accurate (or my calibration is off…). So, i need to be able to drive the thing manually from the Blynk app.
My first problem:
I use a Virtual Pin to get into a loop that will give me control of the PWM to the motors - that works.
Now, i need to be able to brake that loop when i push the same button again- that does not work.
I do the “while (param.asInt=1)” to enter the loop, but when i push the same button again it should change the value to 0, maybe it does but my loop does not recognise it.
I just can’t figure this out.
Can it be that i need the blynk.virtualSync ?
Do i need to have a delay or timer ?
Seems that i am missing something simple.
Any thoughts ?