Switchmote PSU

Started by peckcj, January 24, 2016, 02:08:07 AM

peckcj

I have my Switchmote PSU all built, but I'm confused on how to actually control the relay. I jumpered D6 to ground to simulate a switch event, and it showed up as such in the web interface, but the relay did not switch. Also, since there is no button shield, how can I sync the PSU with the 3rd switch on the Switchmote I just installed.

I'm loaded with questions lately.

Felix

The PSU is intended for use via Moteino only. If you want a manual control of the relay then get the front panel shield for it, which effectively turns it into a full SwitchMote. That's the most convenient way. Otherwise you can connect a tactile button to the same pins that the shield would connect them to.
You can switch the relay if you load the Moteino on the PSU with the same sketch as the SwitchMote, then send it a command like "BTNx:y" where x is 0, 1, 2 and y is 1 or 0.
A look at what the code does is always a good shortcut: https://github.com/LowPowerLab/SwitchMote/blob/master/SwitchMote.ino