collapse

* Posts Recentes

Cerca eléctrica por SerraCabo
[14 de Junho de 2025, 23:26]


Alguém arranja motores? por almamater
[10 de Junho de 2025, 22:34]


Condensador 4.7uF 0603 por brunus
[09 de Junho de 2025, 15:52]


+ LASERs por dropes
[30 de Maio de 2025, 23:11]


Lenovo IdeaPad 3 Não liga por jm_araujo
[07 de Maio de 2025, 19:10]


Identificar Diodo Zenner por filjoa
[01 de Maio de 2025, 23:07]


Meu novo robô por dropes
[18 de Março de 2025, 14:51]


JBL partybox On-The-Go por almamater
[21 de Fevereiro de 2025, 23:32]


Talking Reverse Engineering with an Absolute Legend! por SerraCabo
[13 de Fevereiro de 2025, 09:56]


Motoserra Stihl 120C por brunus
[11 de Fevereiro de 2025, 16:29]

Autor Tópico: ServoTimer2 ??? isto não cheira bem...  (Lida 14497 vezes)

0 Membros e 1 Visitante estão a ver este tópico.

Offline amando96

  • Mini Robot
  • *
  • Mensagens: 1.631
  • MAC address? But I have windows...
    • Projects, News, Blog, Tutorials
Re:ServoTimer2 ??? isto não cheira bem...
« Responder #15 em: 02 de Abril de 2009, 22:15 »
never mind lol xD encontrei uma biblioteca que dá para controlar 12 servos com o duemillanove, e 45 com o arduino mega!!!

http://www.arduino.cc/playground/Code/MegaServo

para quem quiser dar uma vista de olhos, e n consegui instalar o servotimer2... n sei porque... esta foi logo...

Offline TigPT

  • Administrator
  • Mini Robot
  • *****
  • Mensagens: 5.378
    • Tiago Rodrigues
Re:ServoTimer2 ??? isto não cheira bem...
« Responder #16 em: 02 de Abril de 2009, 23:39 »
Obrigado por partilhares, pode dar jeito ;)

Offline silva_p

  • Mini Robot
  • *
  • Mensagens: 172
ServoTimer2 briga com wire?
« Responder #17 em: 12 de Abril de 2009, 22:46 »
estou a usar a biblioteca servotimer2 para controlar 4 servos e até ai td bem, agora quando junto a nunchuk dá isto :
Código: [Seleccione]
hardware\libraries\Wire/Wire.h: In function 'void loop()':


hardware\libraries\Wire/Wire.h:30: error: local class 'class loop()::TwoWire' shall not have static data member 'uint8_t* loop()::TwoWire::rxBuffer'


hardware\libraries\Wire/Wire.h:31: error: local class 'class loop()::TwoWire' shall not have static data member 'uint8_t loop()::TwoWire::rxBufferIndex'


hardware\libraries\Wire/Wire.h:32: error: local class 'class loop()::TwoWire' shall not have static data member 'uint8_t loop()::TwoWire::rxBufferLength'


hardware\libraries\Wire/Wire.h:34: error: local class 'class loop()::TwoWire' shall not have static data member 'uint8_t loop()::TwoWire::txAddress'


hardware\libraries\Wire/Wire.h:35: error: local class 'class loop()::TwoWire' shall not have static data member 'uint8_t* loop()::TwoWire::txBuffer'


hardware\libraries\Wire/Wire.h:36: error: local class 'class loop()::TwoWire' shall not have static data member 'uint8_t loop()::TwoWire::txBufferIndex'


hardware\libraries\Wire/Wire.h:37: error: local class 'class loop()::TwoWire' shall not have static data member 'uint8_t loop()::TwoWire::txBufferLength'


hardware\libraries\Wire/Wire.h:39: error: local class 'class loop()::TwoWire' shall not have static data member 'uint8_t loop()::TwoWire::transmitting'


hardware\libraries\Wire/Wire.h:40: error: local class 'class loop()::TwoWire' shall not have static data member 'void (* loop()::TwoWire::user_onRequest)()'


hardware\libraries\Wire/Wire.h:41: error: local class 'class loop()::TwoWire' shall not have static data member 'void (* loop()::TwoWire::user_onReceive)(int)'

isot é acerca da biblioteca wire.h que é usada para lar os dados da nunchuk, será que as duas bibliotecas são incompativeis? a servotimer2 e a wire?
pk em separado ambas funcionam bem.
« Última modificação: 12 de Abril de 2009, 23:09 por TigPT »

Offline amando96

  • Mini Robot
  • *
  • Mensagens: 1.631
  • MAC address? But I have windows...
    • Projects, News, Blog, Tutorials
Re:ServoTimer2 ??? isto não cheira bem...
« Responder #18 em: 13 de Abril de 2009, 10:16 »
aconselho

MegaServo, podes controlar servos em todos os pinos! e talvez seja compativel com a wire.
eu tenho por ai um link vou ver se encontro