Hi!
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?
I just had time to do a little more testing today, I started setting up communications to the sensors without using the Dallas library, I haven't managed yet to get the correct value in return because I didn't fully understand that bit of code but that's for another day to learn and fix. I wanted to try and see when it happens. If I comment out my oneWire select and writes there is no issue.
You where absolutely correct, I did some digging around and found other people having the same issue with one-wire and servo library.
I read this The Issue | Using NeoPixels and Servos Together | Adafruit Learning System. So I tried to use the Adafruit TiCoServo library instead but then I got another issue. According to the info I found out that I could use pins 2, 3, 5, 6, 7, 8, 11 and 12 (there are more but I only need 8) which are all on 16-bit timers (timer1, timer3, timer4 and timer5). The initializing seems to be successful but then they turn off again, so they don't seem to be getting a pulse. They all work fine using the servo library.