I'm currently working on a project (a small submarine) which I would like to controll with my smartphone. I used the virtuino library with an ESP8266 for the wifi connection.
The problem is, that every time communication takes place between the smartphone and arduino the connected servos twitch back and forth. It's only a few degrees but it is quite annoying. I also noticed that the connected motor (speed is also controlled over PWM) slows down a tiny bit.
I don't believe that it's a power problem. Motor, servos and ESP are connected to a external powersupply.
I basically followed this tutorial:
and added the functionality I needed.
The code I used is attached.
I really hope someone can help me fix it.
I hope I gave all the information necessary.
Thanks in advance
Ahwisiu
main-programm_wifi.ino (9.03 KB)