I just started putting some code together for a ROV project I am doing with a Mega 2560 and ran into a problem. I have just begun adding some code to initialize and control my ESCs (Afro ESC 30A). After I have initialized the ESCs they show it by lighting up a green light.
The problem is when I request temperatures from my DS18B20 sensors some of the green lights on the ESC’s blinks and there is a almost not noticeable buzzing sound. If I comment out the 4 lines everything works perfectly, no buzzing sounds and no blinking status leds on the ESCs.
Any ideas on what could be causing this or how I can proceed to troubleshoot?
Could my previous issue have anything to do with this? http://forum.arduino.cc/index.php?topic=415660.0
I have attached my code.
ROV.ino (9.65 KB)