Navigation

    • Register
    • Login
    • OpenHardware.io
    • Categories
    • Recent
    • Tags
    • Popular
    1. Home
    2. gmccarthy
    3. Posts
    • Profile
    • Following
    • Followers
    • Topics
    • Posts
    • Best
    • Groups

    Posts made by gmccarthy

    • RE: Alternatives for nRF24L01+ ?

      @ripperle I gave up with them and used a nodemcu with a esp8266 wifi module. Have been running without a hitch for months now.

      posted in General Discussion
      gmccarthy
      gmccarthy
    • RE: Nodemcu + RFM69. Level converter needed?

      @emc2 Interesting read.

      @korttoma I've connected up IRQ line. Still no luck,

      @TON-RIJNAARD Have tried that now as well. No luck.

      Tried going back to basics and now have 2 x Arduino pros with RFM69 - both loaded with pingpong script.

      Don't know where I'm going wrong but I can't even start the script - entering 1 or T does nothing. (I"ve used the script before with the NRF radio and it works)

      Have also tried the latest dev version.

      Just keep getting this on both arduinos:

      0 MCO:BGN:INIT NODE,CP=RRNNA--,VER=2.0.1-beta
      4 TSM:INIT
      1 MCO:BGN:INIT NODE,CP=RRNNA--,VER=2.0.1-beta
      5 TSM:INIT
      7 TSM:INIT:TSP OK
      8 TSM:FPAR
      138 TSF:MSG:SEND,255-255-255-255,s=255,c=3,t=7,pt=0,l=0,sg=0,ft=0,st=OK:
      2145 !TSM:FPAR:NO REPLY
      2147 TSM:FPAR
      2277 TSF:MSG:SEND,255-255-255-255,s=255,c=3,t=7,pt=0,l=0,sg=0,ft=0,st=OK:
      4284 !TSM:FPAR:NO REPLY
      4286 TSM:FPAR
      4416 TSF:MSG:SEND,255-255-255-255,s=255,c=3,t=7,pt=0,l=0,sg=0,ft=0,st=OK:
      6423 !TSM:FPAR:NO REPLY
      6425 TSM:FPAR
      6555 TSF:MSG:SEND,255-255-255-255,s=255,c=3,t=7,pt=0,l=0,sg=0,ft=0,st=OK:
      8562 !TSM:FPAR:FAIL
      8563 TSM:FAIL:CNT=1
      8565 TSM:FAIL:PDT
      
      posted in Troubleshooting
      gmccarthy
      gmccarthy
    • RE: Nodemcu + RFM69. Level converter needed?

      @emc2 Thanks. Will keep digging but I"m almost out of idea as well. 😞

      posted in Troubleshooting
      gmccarthy
      gmccarthy
    • RE: Nodemcu + RFM69. Level converter needed?

      @emc2 This is all I see on the gateway:

      0;255;3;0;9;Starting gateway (RRNGE-, 2.0.0)
      0;255;3;0;9;TSM:INIT
      0;255;3;0;9;TSM:RADIO:OK
      0;255;3;0;9;TSM:GW MODE
      0;255;3;0;9;TSM:READY
      scandone
      state: 0 -> 2 (b0)
      state: 2 -> 3 (0)
      state: 3 -> 5 (10)
      add 0
      aid 6
      cnt 
      f r0, scandone
      
      connected with homenet, channel 1
      dhcp client start...
      ..............ip:192.168.1.100,mask:255.255.255.0,gw:192.168.1.1
      .IP: 192.168.1.100
      0;255;3;0;9;No registration required
      0;255;3;0;9;Init complete, id=0, parent=0, distance=0, registration=1
      pm open,type:2 0
      0;255;3;0;9;TSP:SANCHK:OK
      0;255;3;0;9;TSP:SANCHK:OK
      
      posted in Troubleshooting
      gmccarthy
      gmccarthy
    • RE: Nodemcu + RFM69. Level converter needed?

      @emc2 Yes

      posted in Troubleshooting
      gmccarthy
      gmccarthy
    • RE: Nodemcu + RFM69. Level converter needed?

      @emc2 Thanks for the link.

      I've connected up the missing pin and believe the wiring is all correct. Double checked the wiring on the arduino mini as well to the rfm69 (Via logic converter)

      Still can't get it to communicate using DallasTemperatureSensor-RFM69.ino

      Starting sensor (RRNNA-, 2.0.0)
      TSM:INIT
      TSM:RADIO:OK
      TSP:ASSIGNID:OK (ID=5)
      TSM:FPAR
      TSP:MSG:SEND 5-5-255-255 s=255,c=3,t=7,pt=0,l=0,sg=0,ft=0,st=bc:
      TSM:FPAR
      TSP:MSG:SEND 5-5-255-255 s=255,c=3,t=7,pt=0,l=0,sg=0,ft=0,st=bc:
      TSM:FPAR
      TSP:MSG:SEND 5-5-255-255 s=255,c=3,t=7,pt=0,l=0,sg=0,ft=0,st=bc:
      TSM:FPAR
      TSP:MSG:SEND 5-5-255-255 s=255,c=3,t=7,pt=0,l=0,sg=0,ft=0,st=bc:
      !TSM:FPAR:FAIL
      !TSM:FAILURE
      TSM:PDT
      
      posted in Troubleshooting
      gmccarthy
      gmccarthy
    • RE: Nodemcu + RFM69. Level converter needed?

      @korttoma That probably explains why I can't get it working. Do you know what pin it needs to connect to on the nodemcu?

      On this link the DI00 is gray (https://www.mysensors.org/build/connect_radio) but here it doesnt show where to connect it (https://www.mysensors.org/build/esp8266_gateway)

      posted in Troubleshooting
      gmccarthy
      gmccarthy
    • RE: Nodemcu + RFM69. Level converter needed?

      Thanks - I can only think my connections are wrong then. Can't get any comms going on the rfm69.

      posted in Troubleshooting
      gmccarthy
      gmccarthy
    • RE: 💬 Building a WiFi Gateway using ESP8266

      @FotoFieber Did you come right with the RFM69? I also struggling to get it working and need to confirm the wiring diagram.

      posted in Announcements
      gmccarthy
      gmccarthy
    • Nodemcu + RFM69. Level converter needed?

      After many months of struggling with the poor range of NRF24L01+ (And having tried all the tricks) I'm not trying my luck with the RFM69 radio. (RFM69CW - 868Mhz)

      When connecting the rfm69 to the nodemcu (For the ESP8266 gateway), is a 5v to 3.3v logic level converted required?

      For the projects listed it says you need one when connecting it to the Arduino but wasn't sure about the Nodemcu.

      Also can someone confirm the wiring - its not 100% clear.

      Is this correct?

      Nodemcu ---> RFM69
      D2 ---> N/C
      D8 ---> NSS
      D5 ---> SCK
      D7 ---> MOSI
      D6 ---> MISO
      N/C ---> D100

      And of course GND and VCC (3.3v)

      posted in Troubleshooting
      gmccarthy
      gmccarthy
    • RE: DallasTemperatureSensor code mia

      Great stuff - thanks very much.

      You might just want to update the link here as well:
      https://www.mysensors.org/build/temp
      There is a link to Git

      posted in Development
      gmccarthy
      gmccarthy
    • DallasTemperatureSensor code mia

      I can't seem to find the code for api 2.0 for DallasTemperatureSensor.

      One of the links for the temperature sensors on the build page takes you here:
      https://github.com/mysensors/MySensors/blob/master/examples/DallasTemperatureSensor/DallasTemperatureSensor.ino

      But I get a 404.

      Is this still in the process of being converted to 2.0?

      posted in Development
      gmccarthy
      gmccarthy
    • RE: Alternatives for nRF24L01+ ?

      @TheoL
      Really having some strange problems - if I use the script from the link above its successful in sending and receiving data.

      I've now tried the pingpong script from mysensors and its failing. If I go back to the script above it works again.

      Node1:
      Ying NodeReady.
      Init complete, id=200, parent=255, distance=255
      T received - starting test...
      Sending Ping to Yang Node
      find parent
      send: 200-200-255-255 s=255,c=3,t=7,pt=0,l=0,sg=0,st=bc:

      Node2:
      Yang NodeReady.
      Init complete, id=201, parent=255, distance=255

      posted in General Discussion
      gmccarthy
      gmccarthy
    • RE: Alternatives for nRF24L01+ ?

      @TheoL Thanks. Will have a look into those.

      In the meantime I've gone back to basics and have used the pingpong sketch from https://arduino-info.wikispaces.com/Nrf24L01-2.4GHz-HowTo#lib and to my amazement its been running for an hour already with no errors. (And going through 2 floors!) Same hardware, power supply etc.

      Might be too early to jump for joy so will leave it running for a few days and see if it falls over.

      posted in General Discussion
      gmccarthy
      gmccarthy
    • Alternatives for nRF24L01+ ?

      So after a month or two of fiddling I've had enough of the unstable nRF24L01+.
      Been trying all sorts of tricks to try and these things working - the range is useless and everything I try doesn't seem to help.

      Tried nRF24L01+, nRF24L01+ PA, capacitor, making sure its a stable 3.3V, extending antenna on nRF24L01+, used tin foil to stop noise, change channel numbers, transfer speed, nothing seems to help. Trued multiple devices - no go.

      They only seem to work right next to each other. Going through 2 rooms is impossible. Sometimes it works, then it loses comms for 30 mins.
      Today I tried replacing gateway and sensor with PA - range is even worse 😞

      Thinking of tossing them all out and going XBee. Expensive but its bound to be rock stable.

      Read through so many posts on how to extend the range and am wondering if I'm the only one having headaches.

      posted in General Discussion
      gmccarthy
      gmccarthy
    • RE: NRF24L01+ range of only few meters

      @Oitzu said:

      @gmccarthy don't give up. You seem to be on the right track and already got great results.
      Maybe go bare bones and try the rf24 scanner

      Thanks. This looks interesting. Will give it a shot.

      posted in Hardware
      gmccarthy
      gmccarthy
    • RE: NRF24L01+ range of only few meters

      @Igor-Katkov said:

      It's possible that your chips are at fault, if non of other tricks worked (capacitors, clear power, enough current, short wires, lo-noise rf spectrum channel) try other transceivers.

      I've tried the cling wrap and tin foil trick - this seems to have worked. Was getting 5m or so, now I"m getting constant readings from one side of the house to the other (through multiple walls!). 20m

      Update: Just as I posted this the sensor stopped working 😞

      I'm really having major reliability issues with these sensors and am thinking of scrapping them altogether now. Its a pity these are such a hit and miss affair.

      posted in Hardware
      gmccarthy
      gmccarthy
    • RE: [SOLVED] ESP8266 Gateway endless loop

      Thanks - been racking by brain over this. Going back to 2.0.0 also works for me.

      posted in Troubleshooting
      gmccarthy
      gmccarthy
    • RE: ESP8266 repeater?

      Interesting project - might give it a bash.

      posted in Development
      gmccarthy
      gmccarthy
    • RE: ESP8266 repeater?

      Thanks - I think I got confused and thought I could use the nodemcu as a repeater. Mmm - now what to do with that extra nodemcu I ordered 🙂
      Will try a normal repeater.

      posted in Development
      gmccarthy
      gmccarthy
    • RE: NRF24L01+ range of only few meters

      I'm also getting poor range (Around 5m) and have tried most of the tricks. One thing with the homemade antenna from the video, which direction should the antenna be pointing?

      posted in Hardware
      gmccarthy
      gmccarthy
    • ESP8266 repeater?

      I've got a nodemcu board with a ESP8266 running which 2 sensors report to. I'm finding the range of the sensors pretty bad so I would like to add in a nodemcu as a repeater.

      Would this be possible, or would I just need to get both nodemcu's reporting to Domoticz?

      posted in Development
      gmccarthy
      gmccarthy
    • RE: Dallas Temperature Sensor - compiling error

      I've been using the Dallas libraries on Arduino 1.6.5 with no issues. Try redownloading Arduino and mysensors api and install into a different directory.

      posted in Troubleshooting
      gmccarthy
      gmccarthy
    • RE: Temperature Sensor example on Pro Mini ATmega168 not compiling

      Thanks a lot - that did the trick!

      Ran a few tests for comparison and its a lot smaller.

      API 1.4 - IDE 1.6.5
      Sketch uses 14,324 bytes (99%) of program storage space. Maximum is 14,336 bytes.
      
      API 1.5 IDE 1.6.5
      Sketch uses 14,504 bytes (101%) of program storage space. Maximum is 14,336 bytes.
      
      API 1.6 dev IDE 1.6.5
      Sketch uses 12,240 bytes (85%) of program storage space. Maximum is 14,336 bytes.
      
      posted in Bug Reports
      gmccarthy
      gmccarthy
    • RE: Temperature Sensor example on Pro Mini ATmega168 not compiling

      I too have fallen for the 168 trap - ordered a few of these off eBay and now realized there is not enough space for the sketch 😞

      I only plan to run 1 temp sensor on the 168 so tried the above but commenting out the code the LowPower.cpp does not fix the issue.

      Has anyone managed to successfully strip out enough code on library 1.5 to get this to compile?

      posted in Bug Reports
      gmccarthy
      gmccarthy
    • RE: Sensor reading incorrect

      I found the ESP8266 rock stable - been running for around 2 weeks so far. No issues.

      The issue above also seems to be fixed - been about 24 hours now, no crashes, no odd values.

      Update: Just done a update to Domoticz and now the value is incorrect and seems to be stuck there.

      Sensor debug:

      0
      LPG:0ppm    CO:0ppm    SMOKE:0ppm
      send: 1-1-0-0 s=0,c=1,t=37,pt=2,l=2,sg=0,st=ok:0
      

      Controller log:

      subtype       = Voltcraft CO-20
      CO2 = 536870912 ppm
      Quality = Bad
      2015-11-08 21:29:09.177  (ESP8266 Gateway) Air Quality (Air Quality1)
      

      This is the 2nd time its happened right after a domoticz update (I'm running the dev build)

      Could this be a issue with domoticz? Its weird how it only does it now after a update. To fix it however I need to reset the sensor.

      posted in Troubleshooting
      gmccarthy
      gmccarthy
    • RE: Sensor reading incorrect

      Thanks - I've updated to the latest dev version and things are looking promising.

      Been running 2 hours so far with no issues.

      posted in Troubleshooting
      gmccarthy
      gmccarthy
    • RE: Sensor reading incorrect

      Tried powering the sensor from a seperate supply. I seem to be having endless stability issues with getting this working.

      LPG:0ppm    CO:0ppm    SMOKE:0ppm
      send: 2-2-0-0 s=0,c=1,t=37,pt=2,l=2,sg=0,st=ok:0
      0
      LPG:0ppm    CO:0ppm    SMOKE:0ppm
      send: 2-2-0-0 s=0,c=1,t=37,pt=2,l=2,sg=0,st=ok:0
      0
      LPG:0ppm    CO:0ppm    SMOKE:0ppm
      send: 2-2-0-0 s=0,c=1,t=37,pt=2,l=2,sg=0,st=ok:0
      0
      LPG:0ppm    CO:0ppm    SMOKE:0ppm
      send: 2-2-0-0 s=0,c=1,t=37,pt=2,l=2,sg=0,st=ok:0
      

      The sensor starts of ok - logs to the gateway and onto Domoticz. After a random time it just stops logging now. I'm still seeing the st=ok from the sensor. Does this mean its been successfully sent to the gateway? Could the issue be from the gateway to domoticz?

      posted in Troubleshooting
      gmccarthy
      gmccarthy
    • RE: Sensor reading incorrect

      Thanks - I'll try that. Also powering it from the Arduino. Will try a separate supply and see if it helps.

      posted in Troubleshooting
      gmccarthy
      gmccarthy
    • Sensor reading incorrect

      Having a strange problem - got a NodeMCU running with a ESP8266 as the gateway. For a sensor I have a Arduino mini pro with a MQ-2 Gas sensor. The controller is a domoticz.

      For the past 12 hours the sensor has been logging fine, 30 mins ago it stopped logged. I then did a update to domoticz after which the gateway started logging data again but the value is incorrect.

      Sensor output on com port:

      LPG:0ppm    CO:0ppm    SMOKE:0ppm
      send: 2-2-0-0 s=0,c=1,t=37,pt=2,l=2,sg=0,st=ok:0
      

      If I telnet to the esp8266 gateway on port 5003 I can see the data being logged to it but the value is wrong. Its constantly logging 536870912

      2;0;1;0;37;536870912
      

      This has happened a few times now - restarting the sensor fixes the issue.

      After sensor restart:

      2;255;3;0;11;Air Quality Sensor
      2;255;3;0;12;1.0
      2;0;1;0;37;0
      

      If the sensor reboot fixes the issue it looks like this is the problem. But looking at the com port info the correct data is being sent.

      Any ideas on this one?

      posted in Troubleshooting
      gmccarthy
      gmccarthy
    • Wiring MQ-2 Gas Sensor

      I'm looking at the code provided for this sensor and am a bit confused by this bit on the connections:

       * 
       *   A H A   >>> 5V
       *   B       >>> A0
       *   H       >>> GND
       *   B       >>> 10K ohm >>> GND
       * ```
      

      What is A,H, B?
      Shouldnt it be

      Vcc -> 5V
      Gnd -> Gnd
      A0 -> A0
      A0 -> 10k -> GND
      
      
      posted in Hardware
      gmccarthy
      gmccarthy
    • RE: EthernetGateway - Radio init fail

      After trying all sorts of things for a few days I eventually gave up and got the nodemcu board. Connected to the radio board and its been rock stable for the past 12 hours.

      Steve, I also had the same issue with it crashing when doing a manual telnet and typing junk in. Guess its not a good way to test. 🙂

      I've never had much luck with the ENC28J60 board on other arduino projects. They just don't like me. I might retry again on a rainy day with the alternative uipethernet implementation and see how it goes but for now its ESP8266 for me.

      posted in Troubleshooting
      gmccarthy
      gmccarthy
    • RE: EthernetGateway - Radio init fail

      Can't telnet to the port 5003 either. Can't think what could be the issue.

      I have a 10u cap on with a stable 3.3V. Going back to master branch works each time.

      posted in Troubleshooting
      gmccarthy
      gmccarthy
    • RE: EthernetGateway - Radio init fail

      I've tried the above code - but after compiling and uploading I am unable to ping the gateway.

      If I go back to the stable code it pings fine.

      Are there any settings I'm supposed to change on the dev code for the ENC28J60?

      posted in Troubleshooting
      gmccarthy
      gmccarthy
    • RE: GatewayESP8266MQTTClient in Development Branch

      I'm trying the ENC28J60 branch and am also wondering the same thing. The setup and main functions are empty?

      posted in Development
      gmccarthy
      gmccarthy
    • RE: EthernetGateway - Radio init fail

      Nope - haven't tried that. Will give it a bash and let you know how it goes.

      I'm trying this:
      https://github.com/mysensors/Arduino/blob/development/libraries/MySensors/examples/GatewayENC28J60/GatewayENC28J60.ino

      What am I missing?

      void setup()
      {
      }
      
      void loop() {
      }
      
      posted in Troubleshooting
      gmccarthy
      gmccarthy
    • RE: EthernetGateway - Radio init fail

      I found it very unstable - sometime it connects and other times it gives radio fail.

      When it does work after 5 mins if I telnet to port 5003 its no longer listening so have to restart the Uno.

      Haven't found a fix yet 😞

      posted in Troubleshooting
      gmccarthy
      gmccarthy
    • RE: Completely lost on how this works :(

      Thanks for the tip. That serial debug really helped.

      I can see the data being send and received to the ethernet gateway. Telnet to the ethernet gateway on port 5003 and I can then see some data when I press a button.

      This leads me to believe its a problem my domoticz. Will keep digging.

      Update: I installed mysensors controller and its working perfectly now! Node and sensor picked up. When I press the button it registers on the controller! Woo hooo! 🙂

      posted in Troubleshooting
      gmccarthy
      gmccarthy
    • Completely lost on how this works :(

      So I"ve build a ethernet gateway with a Arduino Unoand ENC28J60. This seems to be working - I can ping the gateway and it seems to startup:

      0;0;3;0;9;gateway started, id=0, parent=0, distance=0
      

      Next I build a switch sensor using a Arduino Mini Pro and a nrf24L01+. For the controller I am using a Rasperry Pi with Domoticz which I've setup using the MySensors Gateway with LAN interface pointing to the correct IP and gateway.

      What now? 🙂 I don't see the sensor detected on the controller. How do I know where I'm going wrong. It could be any of the 3 components. How do I go about troubleshooting and finding out which one is the problem.

      On the gateway I dont see anything else except the above

      posted in Troubleshooting
      gmccarthy
      gmccarthy
    • RE: EthernetGateway - Radio init fail

      I already have that in place.

      MyTransportNRF24 transport(RADIO_CE_PIN, RADIO_SPI_SS_PIN, RF24_PA_LEVEL_GW);

      posted in Troubleshooting
      gmccarthy
      gmccarthy
    • EthernetGateway - Radio init fail

      Just starting out on MySensors and have a ENC28J60 and a NRF24L01+ module on a Arduino Uno

      I've wired it up as per the building ethernet gateway section - double checked all the wires with a multimeter.

      Running Arduino 1.6.5
      If I run the ino code (I've commended out the relevant sections for the ENC28J60 module) I get this:

      0;0;3;0;9;radio init fail
      

      I then tried a seperate ENC28J60 library and it gets a DHCP address so I know the 3.3V and wiring there is working.

      Also tried the RF24 library with the gettingstarted sketch and get this - which looks right:

      STATUS		 = 0x0e RX_DR=0 TX_DS=0 MAX_RT=0 RX_P_NO=7 TX_FULL=0
      Data Rate	 = 1MBPS
      Model		 = nRF24L01+
      CRC Length	 = Disabled
      PA Power	 = PA_LOW
      	
      

      So I think the wiring for the radio module is correct.

      Any ideas why I get this radio init fail error?

      I'm using a stable PSU to generate the 3.3V with a smoothing cap on the power lines of the radio.

      posted in Troubleshooting
      gmccarthy
      gmccarthy
    • RE: ESP8266 WiFi gateway port for MySensors

      Do you need to the NodeMCU to implement this?
      I have an arduino uno and ESP-01. How do I wire these up?

      After doing some more reading looks like the esp-01 does not have enough pins. Dont think I can use it 😞

      posted in Development
      gmccarthy
      gmccarthy
    • RE: ESP8266 WiFi gateway port for MySensors

      I'm having problems compiling this - I must be missing something but can't figured out what.

      Error:

      Esp8266Gateway.ino:77:25: fatal error: ESP8266WiFi.h: No such file or directory

      I've downloaded the mysensor library and unzipped it.

      My sketchbook location is: C:\Users\xxxxx\Documents\Arduino

      Under C:\Users\xxxxx\Documents\Arduino\libraries\MySensors\examples\Esp8266Gateway
      Ads

      The esp8266gateway.ino file is present.

      Update: Pffft....try selecting the generic ESP8266 module 🙂

      posted in Development
      gmccarthy
      gmccarthy
    • RE: ESP8266 WiFi gateway port for MySensors

      Great work. Just starting out with mysensors and looking forward to implementing this. Waiting for my hardware to arrive 🙂

      posted in Development
      gmccarthy
      gmccarthy