Arduino Mega + RelayWithButtonActuator sketch
-
Did you change the sketch according to the connected CSN/CE Pins?
-
http://www.mysensors.org/download/sensor_api_14#gateway
You have to add CSN/CE Pin with the initialization.
Something like:
MySensor gw(8, 53); -
Ok, so as temperature/humidity sensor it works ok :)
But I can't get it to work as relay node.
Rx led is blinking when I push the button but nothing else is happening (no affection @ relay).repeater started, id 0 send: 0-0-0-0 s=255,c=0,t=18,pt=0,l=5,st=fail:1.4.1 send: 0-0-0-0 s=255,c=3,t=6,pt=1,l=1,st=fail:0 send: 0-0-0-0 s=255,c=3,t=11,pt=0,l=14,st=fail:Relay & Button send: 0-0-0-0 s=255,c=3,t=12,pt=0,l=3,st=fail:1.0 send: 0-0-0-0 s=1,c=0,t=3,pt=0,l=5,st=fail:1.4.1 send: 0-0-0-0 s=1,c=1,t=2,pt=2,l=2,st=fail:0 send: 0-0-0-0 s=1,c=1,t=2,pt=2,l=2,st=fail:0 send: 0-0-255-255 s=255,c=3,t=7,pt=0,l=0,st=fail: send: 0-0-0-0 s=1,c=1,t=2,pt=2,l=2,st=fail:0 send: 0-0-0-0 s=1,c=1,t=2,pt=2,l=2,st=fail:0 send: 0-0-0-0 s=1,c=1,t=2,pt=2,l=2,st=fail:0 send: 0-0-0-0 s=1,c=1,t=2,pt=2,l=2,st=fail:0 send: 0-0-0-0 s=1,c=1,t=2,pt=2,l=2,st=fail:0 send: 0-0-0-0 s=1,c=1,t=2,pt=2,l=2,st=fail:0 send: 0-0-0-0 s=1,c=1,t=2,pt=2,l=2,st=fail:0 send: 0-0-255-255 s=255,c=3,t=7,pt=0,l=0,st=fail: send: 0-0-0-0 s=1,c=1,t=2,pt=2,l=2,st=fail:0 send: 0-0-0-0 s=1,c=1,t=2,pt=2,l=2,st=fail:0 send: 0-0-0-0 s=1,c=1,t=2,pt=2,l=2,st=fail:0 send: 0-0-0-0 s=1,c=1,t=2,pt=2,l=2,st=fail:0 send: 0-0-0-0 s=1,c=1,t=2,pt=2,l=2,st=fail:0 send: 0-0-0-0 s=1,c=1,t=2,pt=2,l=2,st=fail:0 send: 0-0-0-0 s=1,c=1,t=2,pt=2,l=2,st=fail:0 send: 0-0-255-255 s=255,c=3,t=7,pt=0,l=0,st=fail:``` -
As you can see in your messages the code "st=fail" means there is an issue.
Did you install the decoupling capacitor like mentioned hereAs @hek mentioned the 3v3v output of a mega is (and I quote) "super junk" this might be the cause of your issue, the decoupling capacitor might just solve this (by the way it is always advisable to install these) but also the usage of a step down regulator so you can use the 5v rail to feed the radio could be necessary (in combination with the capacitor).
I have had a Mega + radio running on it's 3v3 feed with only the capacitor installed but all depends of the quality of your components so hard to say that this is always a winning combination, but that would be my way to go.
Hello! It looks like you're interested in this conversation, but you don't have an account yet.
Getting fed up of having to scroll through the same posts each visit? When you register for an account, you'll always come back to exactly where you were before, and choose to be notified of new replies (either via email, or push notification). You'll also be able to save bookmarks and upvote posts to show your appreciation to other community members.
With your input, this post could be even better 💗
Register Login