vague 433MHz question

Greetings,

I own a Yun and the AtMega processor serves quite a few sensors; one of them is a 433MHz receiver and the AtMega processor decodes the received signal. Software-wise speaking everything works fine except sometimes, just sometimes (once per day or so) the AtMega hangs up and doesn't respond to anything anymore. (except for a power off/power on signal or a complete reset of the processor).

That 433MHz receiver with its antenna is located very near the Yun board. I know nothing about hardware, but the idea popped up that a 400MHz crystal for the MIPS processor and 433MHz for the receiver aren't that much apart and maybe some lethal interference could've happened. Am I making sense? Would isolation of the entire Yun board help? Or are my thoughts way off? All the other sensors don't cause any troubles and my same software for the 433MHz receiver runs fine on another (Arduino 2560) 16MHz board.

kind regards,

Jos

radio interference is not the problem.
check for memory leaks. (may use monitoring software for this) og good decoupling on power supply lines

knut_ny:
radio interference is not the problem.
check for memory leaks. (may use monitoring software for this) og good decoupling on power supply lines

Now I'm more confused than I already was before; another person (not on this forum) who was an antenna himself in a previous life (if you'd ask me :wink: claimed that it most likely would be high frequency interference. I'm a math guy and I claim utter incompetence in this field ...

b.t.w. I am quite sure that the issue is not a memory leak or a bug in my code; it is more than two years old and I scrutinized it again this morning and above all, it runs flawlessly on my old AtMega2560.

Thanks for replying and

kind regards,

Jos

AtMega hangs up and doesn't respond to anything anymore

Do you mean the 32u4, the ar9331 or the Yun as a whole? What exactly stops happening?
Can you still ssh into the Yun? Can you still talk to the Yun over USB? Can you still access the Yun web interface?

I am quite sure that the issue is not a memory leak or a bug in my code;

Don't totally discount memory being the problem, the 32u4 has 2.5k of sram the Mega has 8k.

To see if the Yun is causing a RFI problem with your receiver, run your setup on the Mega and put the Yun as close as possible to where it would be if you were using it and power it up.

noblepepper:

AtMega hangs up and doesn't respond to anything anymore

Do you mean the 32u4, the ar9331 or the Yun as a whole? What exactly stops happening?
Can you still ssh into the Yun? Can you still talk to the Yun over USB? Can you still access the Yun web interface?

It's only the AtMega (32u4) that doesn't respond anymore; I can communicate fine with the MIPS processor; it just can't talk to th AtMega anymore; it is stone dead. It comes up fine again after a reset though ...

noblepepper:

I am quite sure that the issue is not a memory leak or a bug in my code;

Don't totally discount memory being the problem, the 32u4 has 2.5k of sram the Mega has 8k.

I know, I'm only using this many bytes of Flash/RAM:

Sketch uses 16,590 bytes (57%) of program storage space. Maximum is 28,672 bytes.
Global variables use 612 bytes (23%) of dynamic memory, leaving 1,948 bytes for local variables. Maximum is 2,560 bytes.

noblepepper:
To see if the Yun is causing a RFI problem with your receiver, run your setup on the Mega and put the Yun as close as possible to where it would be if you were using it and power it up.

I'll check it and thanks for the tip,

kind regards,

Jos