Main Menu

garagemote testing

Started by quesker, June 28, 2015, 07:54:15 PM

quesker

Hi.  I have the garagemote kit soldered to a usb moteino (terrible solder job) and another moteino with an antenna soldered on.  I have a RPI with the image from here with the gateway already installed and I can connect to the webpage fine.  When I plug everything in though I don't see my garagemote.

I just can't seem to get the moteino to talk to the garagemote and I am not sure how to debug.  With the garagemote plugged into my computer and the moteino plugged into the RPI, I don't really get anything useful in the nodejs.log.

I tried both GarageMote_base and PiGateway uploaded to the moteino.  I have GarageMote uploaded to the garagemote.

These are set on garatemote:
#define GATEWAYID   1
#define NODEID      54
#define NETWORKID   100
#define FREQUENCY       RF69_915MHZ

and this on PiGateway:
#define NODEID          1
#define NETWORKID     100
#define FREQUENCY     RF69_915MHZ

I get this in the serial console when I run a magnet by the sensors or type r in the serial console.

GarageMote : 915 Mhz...
UNKNOWN
[1]    [RX_RSSI:-25]
CLOSED
OPENING
[1]    [RX_RSSI:-25]
CLOSED
OPENING
[1]    [RX_RSSI:-25]
UNKNOWN
Relay test...
[1]    [RX_RSSI:-26]
OPEN
[1]    [RX_RSSI:-25]
CLOSING
[1]    [RX_RSSI:-25]
CLOSED


If I have the moteino plugged into the computer it says this on the serial console:

Listening at 915 Mhz...
SPI Flash Init OK!

Any suggestions for the next step?  Thanks!

Felix

Please visit some of the topics that already cover this:
https://lowpowerlab.com/forum/index.php/topic,1148.0.html
https://lowpowerlab.com/forum/index.php/topic,1083.msg7528.html#msg7528
https://lowpowerlab.com/forum/index.php/topic,1103.0.html
Let me know if you're still having issues after checking those threads and verifying your setup.

quesker

Thanks for those links, I had the wrong serial port in gateway.js.

I really appreciate the quick response.

Now that I have all this working can I just put a switch on a moteino and program that as a remote to open the garage?  The main reason for playing with all this is because my regular garage remotes have a really short range.

I will keep using this regular setup too so I can see whether I forgot to close the garage door, from my phone.

Felix

Yeah you totally could, like have that moteino-remote check the button and when it's pressed send a OPN/CLS message depending on the status of the door. Or you could add a new state where the garage mote just flips the state ("FLIP") or even add 2 buttons on the remote, one for CLS one for OPN etc... many ways to do it.

quesker

Btw I moved index.php and the rest of the gateway website to my existing apache webserver (including putting a password on the directory) and set up a ProxyPass to forward requests to the node server on the RPI.

I finally got the sensors installed on the garage today and tested.  I probably need to glue the magnets to the belt somehow, I think they might get knocked out of position or off the belt by the guide.

LaneF

I've got the Garage Mote built, I plugged in the 5Vdc barrel connector. 

I tested the voltage across the test area GND, and VIN and verified 5Vdc hitting the PCB. 
Next I tested the Omron relay, nothing.  No matter what combination of pins I test (tab or otherwise) I get nothing, it's almost as if it's DOA. 
If I have 5V to the PCB verified on GND and VIN, is there a definitive pin test for Vdc on the relay? 
There is continuity across pins 5-6-1 on the Omron.  There is also continuity from pin 2 on the Omron to the outer contact on the barrel connector.

What pin combination on the Omron should have voltage?

Thank You for your help.

Felix

Lane,
Was there any particular reason you are testing the relay?
The way it's setup is that pins D6 & D7 asserted HIGH together will turn the relay ON. This should only be done for a short period, enough to do the closure needed to actuate the opener.
Put 3.3V on D6 and the relay should close.

Have you loaded the Moteino on the GarageMote with this sketch?
That sketch allows you to test the relay.