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.
so how can manage use interrupt 1 , ir transmission both?
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
Post a Comment