Hi!
I’m happy to use your library. It works great for my last 48RGB LED progect.
But last two days I try to use your library together with
2 APC220 modules (transparent serial modems) connected to arduino RX/TX and servo-motor.
Servo controlled with default Servo.h library.
From TX side we have:
Arduino Mega2560 + potentiometer;
From RX side:
Arduino Duemilanove (AtMega328PU) + 1 green LED + Turnigy 9g servo motor connected to PWM9.
The problem is that when I connect a LED it works fine and changes brightness accordingly to send data.
But when I connect Servo it starts twitch (work around set position for 10 degree left right with ~16Hz frequency).
I tested all possible methods. Started program on different arduino controllers (mega1280, mega2560, duemilanove),
started serial on default port and used newsoftserial library to start it on non-default ports. changed loop delay on RX and
TX side, changed delay to millis() timer. But it didn’t solve my problem.
Now my APC220 serial and radio speed set to 19200 b/s. It’s pretty fast and works like in realtime (when I drive LED).
I tested code with other different combinations like before:
serial speed: 57600; radio speed: 9600 (from many quadcopter community recommendations)
serial speed: 9600; radio speed: 9600
But it still twitches.
I can make servo work correct (and don’t walk around it’s position) only if I disable easytransfer in my sketch at all.
Explain me please can this problem be caused by Serial interrupts or smth like this because I worked for 20 hours and still not able to make servo react smoothly.
here’s my code example:
TX:
https://docs.google.com/file/d/0BxK8soZDxXtneFlZMTVIUHBrSjA/edit?usp=sharing
RX:
https://docs.google.com/file/d/0BxK8soZDxXtnd1ZLcllwcC1WaFk/edit?usp=sharing
With best regards
Vitaliy
Odessa, Ukraine