Pages: [1]   Go Down
Author Topic: NewSoftSerial + MegaServo = bad?  (Read 384 times)
0 Members and 1 Guest are viewing this topic.
Norway
Offline Offline
Jr. Member
**
Karma: 0
Posts: 79
<3 Arduino
View Profile
WWW
 Bigger Bigger  Smaller Smaller  Reset Reset

I'm having some problems, and it seems like every time I'm sending data to my lcd with newsoftserial, servos get a twitch. I'm just wondering if some timers are used by both libaries?
Logged

I'm from Norway!

Austin, TX USA
Offline Offline
God Member
*****
Karma: 4
Posts: 997
Arduino rocks
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

You are quite right.  The new (Arduino 0017) Servo library relies on interrupts, and NewSoftSerial (and all the other soft serial libraries) rely on interrupts being OFF.

I got around this problem by using the 0016 Servo library.

Mikal
Logged

Norway
Offline Offline
Jr. Member
**
Karma: 0
Posts: 79
<3 Arduino
View Profile
WWW
 Bigger Bigger  Smaller Smaller  Reset Reset

Oh, thanks!

I'm guessing the MegaServo library also does.
Logged

I'm from Norway!

Pages: [1]   Go Up
Jump to: