LowPowerLab Forum

Hardware support => General topics => Topic started by: Fernando Garcia on February 28, 2017, 09:22:35 PM

Title: Code with strange behavior
Post by: Fernando Garcia on February 28, 2017, 09:22:35 PM
Hi!

I did a code to control six LED channels using a RFM12B the communication is working but there a strange behavior.

When the slave module receives in "theData.channel_red" a value different of 0 or 255 the communication stops.

Here the result on serial monitor, see "RED" value.

(http://www.ferduino.com/forum/gallery/image.php?album_id=11&image_id=526)

(http://www.ferduino.com/forum/gallery/image.php?album_id=11&image_id=527)

The full code slave module that I'm using is here: https://github.com/FernandoGarcia/Ferduino_with_webcontrol_beta/blob/master/RF%20control/Code_for_Slave_Module/Code_for_Slave_Module.ino#L89

The code for master module is here: https://github.com/FernandoGarcia/Ferduino_with_webcontrol_beta/blob/master/RF%20control/Code_for_Ferduino_or_Arduino_Mega/Code_for_Ferduino_or_Arduino_Mega.ino#L77

Can someone take a look in this codes and help to solve this mystery?

Thanks in advance.

Best regards.