@rozpruwacz I've checked the values and they don't seem to be that far from expected but as you say they definitely weren't the stated resistance . I think @gohan is right I will add the correction in the sketch and try and get it reasonably close. Thanks again everyone for your help .
Posts made by GreyLinux
-
RE: Battery percentage on door contact sensor erratic (sent on interrupt)
-
RE: Battery percentage on door contact sensor erratic (sent on interrupt)
@gohan well adding a cap from the impedance point to A0 has 100% stabilized my readings
4630 MCO:SLP:WUP=-1 4632 TSF:TRI:TSB 4634 MCO:SLP:MS=0,SMS=0,I1=1,M1=1,I2=255,M2=255 4638 TSF:TDI:TSL 4640 MCO:SLP:WUP=1 4642 TSF:TRI:TSB Sensor value: 862 Battery Voltage: 2.78 V Battery percent: 13 % 4751 TSF:MSG:SEND,4-4-0-0,s=3,c=1,t=16,pt=2,l=2,sg=0,ft=0,st=OK:0 4759 MCO:SLP:MS=5,SMS=0,I1=255,M1=255,I2=255,M2=255 4763 TSF:TDI:TSL 4765 MCO:SLP:WUP=-1 4767 TSF:TRI:TSB 4769 MCO:SLP:MS=0,SMS=0,I1=1,M1=1,I2=255,M2=255 4775 TSF:TDI:TSL 4777 MCO:SLP:WUP=1 4780 TSF:TRI:TSB Sensor value: 863 Battery Voltage: 2.78 V Battery percent: 13 % 4886 TSF:MSG:SEND,4-4-0-0,s=3,c=1,t=16,pt=2,l=2,sg=0,ft=0,st=OK:1 4894 MCO:SLP:MS=5,SMS=0,I1=255,M1=255,I2=255,M2=255 4898 TSF:TDI:TSL 4900 MCO:SLP:WUP=-1 4902 TSF:TRI:TSB 4904 MCO:SLP:MS=0,SMS=0,I1=1,M1=1,I2=255,M2=255 4911 TSF:TDI:TSL 4913 MCO:SLP:WUP=1 4915 TSF:TRI:TSB Sensor value: 862 Battery Voltage: 2.78 V Battery percent: 13 % 5021 TSF:MSG:SEND,4-4-0-0,s=3,c=1,t=16,pt=2,l=2,sg=0,ft=0,st=OK:0 5029 MCO:SLP:MS=5,SMS=0,I1=255,M1=255,I2=255,M2=255 5033 TSF:TDI:TSL 5036 MCO:SLP:WUP=-1 5038 TSF:TRI:TSB 5040 MCO:SLP:MS=0,SMS=0,I1=1,M1=1,I2=255,M2=255 5046 TSF:TDI:TSL 5048 MCO:SLP:WUP=1 5050 TSF:TRI:TSB Sensor value: 862 Battery Voltage: 2.78 V Battery percent: 13 % 5156 TSF:MSG:SEND,4-4-0-0,s=3,c=1,t=16,pt=2,l=2,sg=0,ft=0,st=OK:1 5165 MCO:SLP:MS=5,SMS=0,I1=255,M1=255,I2=255,M2=255 5169 TSF:TDI:TSL 5171 MCO:SLP:WUP=-1 5173 TSF:TRI:TSB 5175 MCO:SLP:MS=0,SMS=0,I1=1,M1=1,I2=255,M2=255 5181 TSF:TDI:TSL
however a multi meter gives me 2.90v and the reading is 2.78v i understand it wont be 100% accurate but this far out is a little weird my other sensors are about 1 or 2 volts if that . any ideas?
-
RE: Battery percentage on door contact sensor erratic (sent on interrupt)
@gohan yeah I have some on order. I'm just learning with what I've got till they come and the sensors I've made won't be seen so not a problem for the moment . Thanks again .
-
RE: Battery percentage on door contact sensor erratic (sent on interrupt)
@gohan yeah it's hard to see but the black wire behind all the radio wires goes to A0 from the divider. I'll put a little cap on this .
-
RE: Battery percentage on door contact sensor erratic (sent on interrupt)
This is how it looks I know it's a little messy but a little cap between the high impedance point and A0 will help ?
-
RE: Battery percentage on door contact sensor erratic (sent on interrupt)
@rozpruwacz I'm using 2 AA batteries . I think it might be worthwhile me using @Yveaux vcc library as a reference and see if that improves things. Also I think I might delay a little longer before the read to allow it to settle more after the contact interrupt .
-
RE: Battery percentage on door contact sensor erratic (sent on interrupt)
@gohan @Yveaux I think this might be the option to send in the average reading .To be fair this was opening the contact every couple of seconds and in reality this would be alot longer between reads . Thanks for your help.
-
RE: Battery percentage on door contact sensor erratic (sent on interrupt)
Ok so I added the analog reference into the loop and a delay(100);
this has improved things the readings are less erratic but still not close enough .2328 MCO:SLP:WUP=-1 2330 TSF:TRI:TSB 2332 MCO:SLP:MS=0,SMS=0,I1=1,M1=1,I2=255,M2=255 2336 TSF:TDI:TSL 2338 MCO:SLP:WUP=1 2340 TSF:TRI:TSB Sensor value: 876 Battery Voltage: 2.83 V Battery percent: 20 % 2447 TSF:MSG:SEND,4-4-0-0,s=255,c=3,t=0,pt=1,l=1,sg=0,ft=0,st=OK:20 2457 TSF:MSG:SEND,4-4-0-0,s=3,c=1,t=16,pt=2,l=2,sg=0,ft=0,st=OK:0 2465 MCO:SLP:MS=5,SMS=0,I1=255,M1=255,I2=255,M2=255 2469 TSF:TDI:TSL 2471 MCO:SLP:WUP=-1 2476 TSF:TRI:TSB 2476 MCO:SLP:MS=0,SMS=0,I1=1,M1=1,I2=255,M2=255 2482 TSF:TDI:TSL 2484 MCO:SLP:WUP=1 2486 TSF:TRI:TSB Sensor value: 874 Battery Voltage: 2.82 V Battery percent: 19 % 2594 TSF:MSG:SEND,4-4-0-0,s=255,c=3,t=0,pt=1,l=1,sg=0,ft=0,st=OK:19 2603 TSF:MSG:SEND,4-4-0-0,s=3,c=1,t=16,pt=2,l=2,sg=0,ft=0,st=OK:1 2611 MCO:SLP:MS=5,SMS=0,I1=255,M1=255,I2=255,M2=255 2617 TSF:TDI:TSL 2619 MCO:SLP:WUP=-1 2621 TSF:TRI:TSB 2623 MCO:SLP:MS=0,SMS=0,I1=1,M1=1,I2=255,M2=255 2627 TSF:TDI:TSL 2629 MCO:SLP:WUP=1 2631 TSF:TRI:TSB Sensor value: 854 Battery Voltage: 2.75 V Battery percent: 9 % 2738 TSF:MSG:SEND,4-4-0-0,s=255,c=3,t=0,pt=1,l=1,sg=0,ft=0,st=OK:9 2748 TSF:MSG:SEND,4-4-0-0,s=3,c=1,t=16,pt=2,l=2,sg=0,ft=0,st=OK:0 2754 MCO:SLP:MS=5,SMS=0,I1=255,M1=255,I2=255,M2=255 2760 TSF:TDI:TSL 2762 MCO:SLP:WUP=-1 2764 TSF:TRI:TSB 2766 MCO:SLP:MS=0,SMS=0,I1=1,M1=1,I2=255,M2=255 2772 TSF:TDI:TSL 2775 MCO:SLP:WUP=1 2777 TSF:TRI:TSB Sensor value: 853 Battery Voltage: 2.75 V Battery percent: 8 % 2883 TSF:MSG:SEND,4-4-0-0,s=255,c=3,t=0,pt=1,l=1,sg=0,ft=0,st=OK:8 2891 TSF:MSG:SEND,4-4-0-0,s=3,c=1,t=16,pt=2,l=2,sg=0,ft=0,st=OK:1 2899 MCO:SLP:MS=5,SMS=0,I1=255,M1=255,I2=255,M2=255 2906 TSF:TDI:TSL 2908 MCO:SLP:WUP=-1 2910 TSF:TRI:TSB 2912 MCO:SLP:MS=0,SMS=0,I1=1,M1=1,I2=255,M2=255 2916 TSF:TDI:TSL 2918 MCO:SLP:WUP=1 2920 TSF:TRI:TSB Sensor value: 852 Battery Voltage: 2.75 V Battery percent: 8 % 3026 TSF:MSG:SEND,4-4-0-0,s=3,c=1,t=16,pt=2,l=2,sg=0,ft=0,st=OK:0 3035 MCO:SLP:MS=5,SMS=0,I1=255,M1=255,I2=255,M2=255 3041 TSF:TDI:TSL 3043 MCO:SLP:WUP=-1 3045 TSF:TRI:TSB 3047 MCO:SLP:MS=0,SMS=0,I1=1,M1=1,I2=255,M2=255 3051 TSF:TDI:TSL 3053 MCO:SLP:WUP=1 3055 TSF:TRI:TSB Sensor value: 873 Battery Voltage: 2.82 V Battery percent: 19 % 3162 TSF:MSG:SEND,4-4-0-0,s=255,c=3,t=0,pt=1,l=1,sg=0,ft=0,st=OK:19 3172 TSF:MSG:SEND,4-4-0-0,s=3,c=1,t=16,pt=2,l=2,sg=0,ft=0,st=OK:1 3178 MCO:SLP:MS=5,SMS=0,I1=255,M1=255,I2=255,M2=255 3184 TSF:TDI:TSL 3186 MCO:SLP:WUP=-1 3188 TSF:TRI:TSB 3190 MCO:SLP:MS=0,SMS=0,I1=1,M1=1,I2=255,M2=255 3196 TSF:TDI:TSL 3196 MCO:SLP:WUP=1 3201 TSF:TRI:TSB Sensor value: 885 Battery Voltage: 2.85 V Battery percent: 25 % 3307 TSF:MSG:SEND,4-4-0-0,s=255,c=3,t=0,pt=1,l=1,sg=0,ft=0,st=OK:25 3315 TSF:MSG:SEND,4-4-0-0,s=3,c=1,t=16,pt=2,l=2,sg=0,ft=0,st=OK:0 3323 MCO:SLP:MS=5,SMS=0,I1=255,M1=255,I2=255,M2=255 3330 TSF:TDI:TSL 3332 MCO:SLP:WUP=-1 3334 TSF:TRI:TSB 3336 MCO:SLP:MS=0,SMS=0,I1=1,M1=1,I2=255,M2=255 3340 TSF:TDI:TSL 3342 MCO:SLP:WUP=1 3344 TSF:TRI:TSB Sensor value: 872 Battery Voltage: 2.81 V Battery percent: 18 % 3450 TSF:MSG:SEND,4-4-0-0,s=255,c=3,t=0,pt=1,l=1,sg=0,ft=0,st=OK:18 3461 TSF:MSG:SEND,4-4-0-0,s=3,c=1,t=16,pt=2,l=2,sg=0,ft=0,st=OK:1 3467 MCO:SLP:MS=5,SMS=0,I1=255,M1=255,I2=255,M2=255 3473 TSF:TDI:TSL 3475 MCO:SLP:WUP=-1 3477 TSF:TRI:TSB 3479 MCO:SLP:MS=0,SMS=0,I1=1,M1=1,I2=255,M2=255 3485 TSF:TDI:TSL 3487 MCO:SLP:WUP=1 3489 TSF:TRI:TSB Sensor value: 869 Battery Voltage: 2.80 V Battery percent: 17 % 3596 TSF:MSG:SEND,4-4-0-0,s=255,c=3,t=0,pt=1,l=1,sg=0,ft=0,st=OK:17 3604 TSF:MSG:SEND,4-4-0-0,s=3,c=1,t=16,pt=2,l=2,sg=0,ft=0,st=OK:0 3612 MCO:SLP:MS=5,SMS=0,I1=255,M1=255,I2=255,M2=255 3618 TSF:TDI:TSL 3620 MCO:SLP:WUP=-1 3622 TSF:TRI:TSB 3624 MCO:SLP:MS=0,SMS=0,I1=1,M1=1,I2=255,M2=255 3629 TSF:TDI:TSL 3631 MCO:SLP:WUP=1 3633 TSF:TRI:TSB```
-
Battery percentage on door contact sensor erratic (sent on interrupt)
Ok so I have 3 Temp sensors that display battery percentage pretty well and sleep for 5 minutes between reads.
Now through research on the forum I have put together a sketch for a door sensor that sleeps until interrupted and sends the battery percentage .
The problem I have is that the battery percentage varies with every read this is the serial monitor read:3430 TSF:TDI:TSL 3432 MCO:SLP:WUP=-1 3436 TSF:TRI:TSB 3436 MCO:SLP:MS=0,SMS=0,I1=1,M1=1,I2=255,M2=255 3442 TSF:TDI:TSL 3444 MCO:SLP:WUP=1 3446 TSF:TRI:TSB Sensor value: 832 Battery Voltage: 2.68 V Battery percent: -2 % 3452 TSF:MSG:SEND,4-4-0-0,s=255,c=3,t=0,pt=1,l=1,sg=0,ft=0,st=OK:254 3463 TSF:MSG:SEND,4-4-0-0,s=3,c=1,t=16,pt=2,l=2,sg=0,ft=0,st=OK:1 Tripped3471 MCO:SLP:MS=5,SMS=0,I1=255,M1=255,I2=255,M2=255 3475 TSF:TDI:TSL 3477 MCO:SLP:WUP=-1 3479 TSF:TRI:TSB 3481 MCO:SLP:MS=0,SMS=0,I1=1,M1=1,I2=255,M2=255 3487 TSF:TDI:TSL 3489 MCO:SLP:WUP=1 3491 TSF:TRI:TSB Sensor value: 953 Battery Voltage: 3.07 V Battery percent: 62 % 3497 TSF:MSG:SEND,4-4-0-0,s=255,c=3,t=0,pt=1,l=1,sg=0,ft=0,st=OK:62 3508 TSF:MSG:SEND,4-4-0-0,s=3,c=1,t=16,pt=2,l=2,sg=0,ft=0,st=OK:0 Tripped3514 MCO:SLP:MS=5,SMS=0,I1=255,M1=255,I2=255,M2=255 3520 TSF:TDI:TSL 3522 MCO:SLP:WUP=-1 3524 TSF:TRI:TSB 3526 MCO:SLP:MS=0,SMS=0,I1=1,M1=1,I2=255,M2=255 3532 TSF:TDI:TSL 3534 MCO:SLP:WUP=1 3536 TSF:TRI:TSB Sensor value: 930 Battery Voltage: 3.00 V Battery percent: 50 % 3543 TSF:MSG:SEND,4-4-0-0,s=255,c=3,t=0,pt=1,l=1,sg=0,ft=0,st=OK:50 3553 TSF:MSG:SEND,4-4-0-0,s=3,c=1,t=16,pt=2,l=2,sg=0,ft=0,st=OK:1 Tripped3559 MCO:SLP:MS=5,SMS=0,I1=255,M1=255,I2=255,M2=255 3565 TSF:TDI:TSL 3567 MCO:SLP:WUP=-1 3569 TSF:TRI:TSB 3571 MCO:SLP:MS=0,SMS=0,I1=1,M1=1,I2=255,M2=255 3575 TSF:TDI:TSL 3577 MCO:SLP:WUP=1 3579 TSF:TRI:TSB Sensor value: 854 Battery Voltage: 2.75 V Battery percent: 9 % 3586 TSF:MSG:SEND,4-4-0-0,s=255,c=3,t=0,pt=1,l=1,sg=0,ft=0,st=OK:9 3596 TSF:MSG:SEND,4-4-0-0,s=3,c=1,t=16,pt=2,l=2,sg=0,ft=0,st=OK:0 Tripped3604 MCO:SLP:MS=5,SMS=0,I1=255,M1=255,I2=255,M2=255```
and this is the sketch;
/** * The MySensors Arduino library handles the wireless radio link and protocol * between your home built sensors/actuators and HA controller of choice. * The sensors forms a self healing radio network with optional repeaters. Each * repeater and gateway builds a routing tables in EEPROM which keeps track of the * network topology allowing messages to be routed to nodes. * * Created by Henrik Ekblad <henrik.ekblad@mysensors.org> * Copyright (C) 2013-2015 Sensnology AB * Full contributor list: https://github.com/mysensors/Arduino/graphs/contributors * * Documentation: http://www.mysensors.org * Support Forum: http://forum.mysensors.org * * This program is free software; you can redistribute it and/or * modify it under the terms of the GNU General Public License * version 2 as published by the Free Software Foundation. * ******************************* * * DESCRIPTION * * Simple binary switch example * Connect button or door/window reed switch between * digitial I/O pin 3 (BUTTON_PIN below) and GND. * http://www.mysensors.org/build/binary */ // Enable debug prints to serial monitor #define MY_DEBUG // Enable and select radio type attached #define MY_RADIO_NRF24 //#define MY_RADIO_RFM69 #define MY_NODE_ID 4 #include <SPI.h> #include <MySensors.h> #define CHILD_ID 3 #define BUTTON_PIN 3 // Arduino Digital I/O pin for button/reed switch #define SLEEP_TIME 0 // sleep forever // Change to V_LIGHT if you use S_LIGHT in presentation below MyMessage msg(CHILD_ID,V_TRIPPED); // ------------------ BATTERY ------------------ int BATTERY_SENSE_PIN = A0; // select the input pin for the battery sense point int oldBatteryPcnt = 0; // remember last measured percentage #define V_MIN 2.7 // 0% Battery voltage #define V_MAX 3.3 // 100% Battery voltage byte oldSwitch_State = HIGH; void setup() { // Setup the button pinMode(BUTTON_PIN,INPUT); // Activate internal pull-up digitalWrite(BUTTON_PIN,HIGH); // Setup 1.1 V internal reference for analoge GPIO analogReference(INTERNAL); } void presentation() { // Register binary input sensor to gw (they will be created as child devices) // You can use S_DOOR, S_MOTION or S_LIGHT here depending on your usage. // If S_LIGHT is used, remember to update variable type you send in. See "msg" above. present(CHILD_ID, S_DOOR); } // Check if digital input has changed and send in new value void loop() { // read analog pin int sensorValue = analogRead(BATTERY_SENSE_PIN); // calculate battery voltage float vBat = static_cast<float>(sensorValue * (V_MAX/1023)); // calculate % left of defined interval int batteryPcnt = static_cast<int>(((vBat-V_MIN)/(V_MAX-V_MIN))*100.); // debugging #ifdef MY_DEBUG Serial.print("Sensor value: "); Serial.println(sensorValue); Serial.print("Battery Voltage: "); Serial.print(vBat); Serial.println(" V"); Serial.print("Battery percent: "); Serial.print(batteryPcnt); Serial.println(" %"); #endif // If battery % has change send to controller if (oldBatteryPcnt != batteryPcnt) { // Power up radio after sleep sendBatteryLevel(batteryPcnt); oldBatteryPcnt = batteryPcnt; } { { byte switchState = digitalRead (BUTTON_PIN); if (switchState != oldSwitch_State) { // Send in the new value send(msg.set(switchState==LOW ? 1 : 0)); oldSwitch_State = switchState; sleep(5); } sleep(digitalPinToInterrupt(BUTTON_PIN), CHANGE, SLEEP_TIME); } } }
I have the resistors set up as described here
with the addition of a 0.1uF cap over R2 (470KΩ) resistoris there a way to stabilize these readings ?
-
RE: Will a NRF24L01+PA+LNA help with my signal problems
@mfalkvidd
you sir are amazing , I soldered the 47uF capacitor practically on the radio and now I'm getting about 10 metres before I get Nack=0 messages . Hopefully with the addition of the NRF24L01+PA+LNA on the gateway I should be able to cover all of the property.Thank you so much again for your help .
-
RE: Will a NRF24L01+PA+LNA help with my signal problems
@mfalkvidd
is it possible for me to remove the booster if I've removed the regulator on the pro mini?
How long do your sensors last without a booster ?
Why do you think my radio's fail when I power them straight from the battery ? Cheap clones maybe ? -
RE: Will a NRF24L01+PA+LNA help with my signal problems
@mfalkvidd I need your advice regarding the radio's on my Arduino nodes . I've wired the power for the radio to vcc on the Arduino which is boosted by a 3.3v step up booster .
I have a decoupling capacitor between the vcc and Gnd of the radio but I think my limited range is because of the noise from the booster . If I wire the power of the radio directly to the battery the radio fails completely as seen in the serial monitor . What are my options ?
Should I used one of the adapters recommended by @Thucar on all my battery sensors ? -
RE: Will a NRF24L01+PA+LNA help with my signal problems
@thucar
that is brilliant I will be getting one of these anything to make life easier . Thanks for your help -
RE: Will a NRF24L01+PA+LNA help with my signal problems
@thucar
yeah I read somewhere that unshielded the NRF24L01+ was awful . The socket adapter you linked what is the benefit of using it ? Is it meant to replace the regulator and make a better connection for the radio ? -
RE: Will a NRF24L01+PA+LNA help with my signal problems
@mfalkvidd thanks for all your help, I really should of read that page a lot more carefully and maybe i wouldnt of missed those two explanations .
-
RE: Will a NRF24L01+PA+LNA help with my signal problems
@mfalkvidd
Thanks for the reply, I've just noticed the fine print ( If you are using the nrf24 PA/LNA version you need to use a 5V->3.3V regulator because the Raspberry Pi 3.3V can't supply enough power.Is this what it refers to here?
out of interest how do I connect this inline from the 5v pin to radio 3.3v pin ? I notice that the link suggests 2 x 10 uF capacitors either side of the regulator . What I'm asking is how best to wire this up with the Raspberry pi pins, the radio , the capacitors and the regulator .
thanks for you help .
-
Will a NRF24L01+PA+LNA help with my signal problems
Ok so I'm having signal problems with a temperature sensor I want to have outside .
I have a Raspberry pi gateway with a standard nrf24 radio wires to the gpio's with openhab as the controller and I'm using Arduino pro mini 3.3v with 2 AA batteries for my sensors . When I placed it out side as soon as I close the back door it loses signal. Strangely when I bring it back inside it seems to crash my gateway and I have to restart the gateway and reset the sensor. The sensor is only about 10 metres away in a shed and I know the standard nrf24's are meant to be good for 60 metres clear line of site . Would a NRF24L01+PA+LNA attached to the gateway help improve this ?
Are the 5v gpio pins on the Raspberry pi suitable for the NRF24L01+PA+LNA ?
Also I take it that the NRF24L01+PA+LNA would drain the battery quickly on a battery powered sensor. -
RE: OpenHAB 2.5 MySensors Serial Gateway - How to install
@FlipFlap3
Firstly well done for the brilliant instructions . I too have been attempting to use Openhab with my sensors over the last year and to be honest although I've had relative success, because of the limited amount of, up to date and accurate tutorials its been a steep slope to climb. Currently I have Openhabian installed on a Raspberry pi with a Gateway connected to the I/O pins of the Pi and a couple of temp sensors connected ( all be it with difficulty ). It's setup as an Ethernet Gateway but I did try once to setup it up as a serial gateway, unsuccessfully I might add. Out of interest if I did re- install using your setup instructions, Is a serial Gateway better or easier in any way ? it does seem like the most supported option of the 3 for most people on the forum . -
RE: Need help understanding Openhab, Battery powered sensors and arduino sketches .
Thanks @gohan
I will desolder both today this was just a test to if I wired it right. I've had a quick look at the link and I sort of understand how it works.
Regards
-
Need help understanding Openhab, Battery powered sensors and arduino sketches .
Hi ,
I'm pretty new to the whole electronic game and need some help understanding things a little .
I've searched through the forum and a lot of it seems to be either based on an older Openhab or not very well explained for a noob such as myself .So far I have an openhabian setup with presence detection (with the help of LEDE router ),an outlet I can control and a temp sensor I made using Mysensors which talks to an Ethernet gatewayon the raspberry pi I run Openhab on , so I'm not afraid of diving in the deep end and learning as I go.
However even though I got my temp sensor working and showing in Openhab I could do with some help understanding a few things.
-
I managed to automatically detect my sensor when I turned it on (which as a lot of the posts in the forum suggest wasn't always the way ) I created an item for the Thing detected and an entry in my sitemap and left everything as default . I can't seem to find an up to date guide how to configure things in Openhab.
From what I've seen in the forum everyone just knows how to configure Mysensors in Openhab . -
I just uploaded the example sketch for the temp sensor here and I currently have it being powered by 2 AA batteries my question is how to I combine the battery Arduino script with the Dallas temp script, I mean for one thing both scripts differ on sleep times for a start . I would like to learn how to send the battery percentage back to Openhab and I understand that I need to incorporate a calculation for the battery as 0% is not the same as an empty battery.
3)when I installed Arduino on my Debian laptop and added the Example libraries to the libraries folder it tells me at the bottom of the IDE invalid version found 1.04 , any ideas why it says this although it doesn't seem to cause any problems loading the sketch.
- Is there any other advice or learning material that you can recommend that will help with creating My sensors .
This is my first prototype temp sensor a little bit messy but it works and its reasonably small.
thank you in advance for your help .
-
-
RE: Help needed in getting Gateway and nodes working with Openhab on a Raspberry pi
@gohan brilliant ! Ive downloaded the app. Out of interest it asks for an IP address to set up.
When setting up the Ethernet gateway on the paper-UI I set the IP as local host 127.0.0.1 to make it work.Do I just put the IP for the raspberry pi on the LAN, for the android app ?
-
RE: Help needed in getting Gateway and nodes working with Openhab on a Raspberry pi
Good news I deleted everything from the Mysensors gitclone including the file in /usr/local/bin/.
re-cloned the developement branch and ./configure for Ethernet without IP
address and after configuring the Ethernet gateway in paper UI its now showing as online
Thanks for your help @gohanalso I like the look of myscontroller but its only for windows I only have a linux machine.
Tim
-
RE: Help needed in getting Gateway and nodes working with Openhab on a Raspberry pi
I have a few so this is definitely something I can look at to compare and see if it changes the outcome.
-
RE: Help needed in getting Gateway and nodes working with Openhab on a Raspberry pi
Oh sorry.... its a raspberry pi 3.
Yeah I git cloned the development version from the link in the guide not the master. -
RE: Help needed in getting Gateway and nodes working with Openhab on a Raspberry pi
This is a different image I recently renewed my entire openhab setup on a fresh image to try and get rid of all the problems I've had with openhab. This has worked for openhab and I'm happy with the setup finally. Its Rasbian Jessie, kernal: 4.9.13-v7+ .
For serial I did./configure --my-transport=nrf24 --my-gateway=serial --my-serial-is-pty --my-serial-pty=/dev/ttyAMA020
For Ethernet I did
./configure --my-transport=nrf24 --my-gateway=ethernet --my-controller-ip-address=127.0.0.1 --my-port=5003
Tim
-
RE: Help needed in getting Gateway and nodes working with Openhab on a Raspberry pi
@gohan when I try running ./bin/mysgw -d it crashes and constantly repeats failed to connect and I have to exit the ssh session.
Also what is myscontroller? -
Help needed in getting Gateway and nodes working with Openhab on a Raspberry pi
OK so I really need some help I'm a bit lost at the moment and I'm pulling my hair out. My setup is a Raspberry pi running Openhabian I currently have a nrf24 radio wired to the gpio on the Raspberry exactly as it shows here. I have the Mysensors Binding installed and I can see it in the paper-UI. I've tries to firstly get the gateway running as a serial gateway following the guide which wasn't successful and after a bit of looking on the forum I saw that it was best to use the development version. This improved things I was able to ./bin/mysgw - d successfully and the gateway was showing a successful test. However in the paper-UI when I try to set up the serial gateway Thing through the Mysensors binding is shows as offline. after looking in the /var/syslog I noticed that it said
Failed to connect on port: /dev/ttyUSB020 exception: gnu.io.NoSuchPortException
So I searched through the forum and saw it mentioned that the Raspberry pi uses AMA0 as it serial port and so I tried again with ./configure and make install, still it would show online
so I tried again this time choosing Ethernet as my option and following the guide to do that.
Again still no luck with it showing online in the paper-UI.
can some one advise me how to start again and at least get this gateway working .