IR led and Interrupt 1 cause reset arduino uno.


hello!!
i using switch connected arduino uno's interrupt 1(digital pin 3), and  using ken shirrifs ir library ir signal transmission.according irremote library connected ir led digital pin 3.
problem in when pressed switch instead of generating interrupt code runs beginning ( restart). removed ir led digital pin 3, interrupt working working fine not able send ir code.
i tried connect ir led digital pin 10 , make change in irremote library (irremote.cpp) still not able send ir hex code.
code: [select]
  timsk2 &= ~_bv(toie2); //timer2 overflow interrupt
  pinmode(10, output);
// pinmode(3, output);
  digitalwrite(10, low); // when not sending pwm, want low
  //digitalwrite(3, low);

so how can manage use interrupt 1 , ir transmission both?

do have transistor driving led , have seriese resistor?


Arduino Forum > Using Arduino > Programming Questions > IR led and Interrupt 1 cause reset arduino uno.


arduino

Comments

Popular posts from this blog

VIDIOC_S_FMT error 16, Device or resource busy - Raspberry Pi Forums

using a laptop skeleton to build a pi laptop - Raspberry Pi Forums

Forum for Joomla? - Joomla! Forum - community, help and support