I need to run this off of a big lipo battery which I have and a arduino along with controlling it by a gyro sensor. I can tell the servo to go to directions no problem and run it back and forth, I can even hook it up to and receiver with RC and it works. However when I hook the gyro to the arduino and then the arduino to the circuit board on the servo it glitches. It works for a little bit but if it goes to a curtain position or sometimes moves to fast or even just randomly it will start moving back and forth really fast and sometimes cut the readings off from the gyro. I think it might be a power problem but I have no idea. The code an circuitry works fine with a 9g servo.
Im confused as to why it doesn't work with the gyro and I need some help. If you have any questions let me know and I will answer them ASAP.
There are lots of hardware address pins on the chip in the Adafruit board, so you can set the I2C address to any one of 32 addresses. So you can avoid it having the same address as your gyro.
hert:
Oh and one more thing. The adafruit servo driver requires pin SCL and SDA which are the same pins the gyro sensor needs. How does this work?
That is just perfect! You connect your servo driver and your gyro to the same two pins as the I2C bus, and you can connect other I2C devices as well, saving other Arduino pins for different purposes.
jackmicro:
I could not understand this please explain.
You connect both the servo driver and the gyro to the same set of pins. So the Serial data pin on the Arduino’s pin A4 goes to both the Servo and gyro and also the serial clock pin A5 goes to both devices.
Connect all the address pins on the servo driver to ground.