Has anyone ever met problems receiving data via RF links while doing an analogWrite()?
I'm using a pair of RF transmitter and receiver very smiliar to this: http://www.sparkfun.com/commerce/product_info.php?products_id=7813
I tried both codes by yerg2K and anaidioschrono in this thread: http://www.arduino.cc/cgi-bin/yabb2/YaBB.pl?num=1199058664/0 and both methods work like magic, until I add an analogWrite() in setup() to light up some leds.
I found if there is a PWM output, the RF preamble signal (the long HIGH pulse for sync in the case of anaidioschrono's code) recevied by the receiver was cut into short pulses when I check with an oscilloscope. (The receiver is connected to pin 2 and the transmitter to pin 4, and I am using pin 5, 6 and 9 for PWM output.)
Any idea what's going wrong?
Thanks for helping!