Go Down

Topic: Aiko Ping and Servo do not play nice? (Read 1 time) previous topic - next topic


Hi all, I have built a small "Arduino Car" using Arduino Uno, three servo and a Ping ))) Sensor.
I wrote a lot of test code and it works fine.
I am powering all the stuff with two set of batteries (one for the servos and one for the arduino itself).
All oks, but...

when I tried to migrate the code to a more structured "AikoEvents" approach it starts to have bizzare behavior.
For instance Servo started to move backwards sometimes.
It is possible the AikoEvents use of AVR interrupts can interfer with the Servo library?
Do you have some hints? I am new to the Arduino Hardware platform :)

I am using pin 4,11,6 for the servo engine. I have attached the offending code

Go Up