Skip to content
  • MySensors
  • OpenHardware.io
  • Categories
  • Recent
  • Tags
  • Popular
Skins
  • Light
  • Brite
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Brand Logo
rnollenR

rnollen

@rnollen
About
Posts
40
Topics
6
Shares
0
Groups
0
Followers
0
Following
0

Posts

Recent Best Controversial

  • Waterproof Lux Sensor
    rnollenR rnollen

    I saw this one: http://www.ebay.com/itm/Digital-Light-Intensity-Sensor-Module-BH1750FVI-Stable-For-Arduino-TW-/131903322284?hash=item1eb60cf8ac:g:t1MAAOSwV0RXqVe9

    This one looks better for outside use I think, because the sensor itself is more protected for water.

    Hardware

  • Waterproof Lux Sensor
    rnollenR rnollen

    @alexsh1 said in Waterproof Lux Sensor:

    @rnollen This is not a waterproof box. I have the same one and I can confirm that there is a moisture ingress over time (I used this one outside)

    Yep, I also think it is totally not waterproof. I also say humidity inside the box. I think I do suggestions here, where I place the sensor itself in a little plastic bag to make it more waterproof. I think it will work better then? Or anyone got another suggestion?

    Hardware

  • Waterproof Lux Sensor
    rnollenR rnollen

    @alexsh1 said in Waterproof Lux Sensor:

    My BH1750 has been working flawlessly for many months. I put it on my window (from inside) to avoid any humidity issues, but the idea was to move it outside with my weather station.

    That is the whole issue for me :) I have placed it in a waterproof box like this: http://www.ebay.com/itm/85x58x33mm-Waterproof-Cover-Clear-Plastic-Electronic-Project-Box-Enclosure-CASE-/281390875149?hash=item418434020d
    This works, but behind a window is not an option. I want it facing the sun, basically the whole day with as little shade as possible. Otherwise it can happen that the sun is shining, but the sunscreen is not coming out because the sensor is not catching any sunshine :)
    But in this box the sensor dies eventually and I want to have a long term solution for it :)

    Hardware

  • Waterproof Lux Sensor
    rnollenR rnollen

    Hi,

    On one of my projects I use the BH1750 Lux sensor to open my sunscreen. Now, to be honest.. I really hate that sensor :) It is more broken then it is working. I have replaced several over the past year..and now again with the frost it is dead again, where I did not touch it.

    The Lux sensor is build in into a waterproof box, facing the sun.. Where the arduino itself is in a shed where it less influenced by the weather conditions. Now the waterproof box is not totally waterproof because of all the cables that are attached to it...

    So I basically I want a waterproof Lux sensor where frost and vapour does not effect the sensor.. The BH1750 breaks to fast for me in my conditions.

    Does anyone got a suggestion wat I can get, I have looked around on the internet .. but I cannot seem to find anything that is waterproof?

    Hardware

  • Usage problem with 2.0 library
    rnollenR rnollen

    Think I have fixed it :)

    I found this topic: https://forum.mysensors.org/topic/4680/mysensors-2-0-ethernet-gateway-atmega-w5100-restart-all-time/5

    The answer for me was to downgrade the Arduino AVR Boards to version 1.6.11 (Using Tools/Boards/Boardsmanager) ... It seems there is a bug in the newer release of this tool and the W5100. So hopefully this issue can be fixed, so that in newer releases this is OK. Maybe it is wise to add this to the Ethernet Gateway Page when using a W5100 and Mysensors 2.0 ;)

    Troubleshooting

  • Usage problem with 2.0 library
    rnollenR rnollen

    @scalz said:

    can you upload your gw and node sketch, so i can see your defines please?

    Hi, I am only busy with the GW at this moment, I have not altered any sensor yet to 2.0 (Got 7 nodes).. this was the next phase :) I only have a lux sensor on y Breadboard running on MySensors 2.0

    I used the sketch from the example libary, the same as on the build page of MySensors: (https://www.mysensors.org/build/ethernet_gateway) and used the "WizNET (W5100) Ethernet module" sketch.

    Things I have tested:

    1. Enabled "//#define MY_W5100_SPI_EN 4" in the sketch. This resulted in a radio error:
    2. Changed the "//#define MY_SOFTSPI" in MyConfig.h, didn't seem to do anything when I enabled that. I have tested it where I have Enabled step 1, then it didn't give me an error on the radio... but it didn't fix anything also. Disabled step 1. Same result.

    Don't know what I can test more :)

    If you need anything, just let know. :)

    Troubleshooting

  • Usage problem with 2.0 library
    rnollenR rnollen

    Thanks.. I am not sure what is going wrong at this stage.

    I am using an indeed a NRF24 radio, but I use the one with an external antenna (such as this one: http://www.ebay.com/itm/2-4G-1100m-Module-NRF24L01-PA-LNA-Communication-SMA-Antenna-Wireless-Transceiver-/172255694961?hash=item281b3d5071)
    I use an external antenna because of the range and because I can make a cleaner box around it ;)

    Also my W5100 is slightly different, because alternative names are printed on the bottem. It has the same labels as the topicstarter here: https://forum.mysensors.org/topic/467/ethernet-gateway-troubleshooting-advice

    But it worked like a charm for the last 1,5 years :)

    But to give you an answer.. the SS/CSN is called NSS on my W5100 and this is the D10. Think this is OK?
    The Radio CSN is connected to D6

    Troubleshooting

  • Usage problem with 2.0 library
    rnollenR rnollen

    @scalz said:

    looks like your GW is rebooting..
    What's your hardware for GW?

    I use an Arduino Uno and the W5100 Module, not the shield which you can click on an Uno..

    I know in the past when I created the module, I needed to enable "//#define MY_SOFTSPI" in MyConfig.h... Tried it again, no luck.. Checked the wiring, nothing strange here..also nothing was changed on the wiring part, so I thought I would expect the same result...

    Troubleshooting

  • Usage problem with 2.0 library
    rnollenR rnollen

    @scalz said:

    but for testing, you're right, it's perahps better to assemble a small test setup and see how it behaves before updating.

    Ofcourse.. No Nuts no glory, I thought :) So updated my gateway..

    Now, updating went well: I see this in the logs of the gateway:
    IP: 192.168.0.20
    0;255;3;0;9;Starting gateway (RNNGA-, 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
    IP: 192.168.0.20
    0;255;3;0;9;Starting gateway (RNNGA-, 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
    IP: 192.168.0.20
    0;255;3;0;9;Starting gateway (RNNGA-, 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
    IP: 192.168.0.20
    0;255;3;0;9;Starting gateway (RNNGA-, 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
    IP: 192.168.0.20

    And it doing this in a loop... So I think this is OK?

    But now, my domoticz doesn't connect correclty :( It does an initial connection, but I get an connection reset after a few seconds.
    Anyone tried this with Domoticz? I would not have expected this :(

    <edit>
    Hmm.. Gateway is not functioning correctly I guess.. In the troubleshooting guide I think I should see more at the end: (Copy/paste from this site):
    IP: 192.168.10.80
    0;255;3;0;9;MCO:REG:NOT NEEDED
    0;255;3;0;9;MCO:BGN:STP
    0;255;3;0;9;MCO:BGN:INIT OK,ID=0,PAR=0,DIS=0,REG=1
    0;255;3;0;9;TSF:MSG:READ,12-4-0,s=18,c=1,t=16,pt=1,l=1,sg=0:1
    0;255;3;0;9;TSF:MSG:READ,12-4-0,s=31,c=1,t=16,pt=1,l=1,sg=0:1

    Also, I should see Gateway Startup Complete as the last line, but for some reason it is not working.. The wiring is exactly the same as before..? Also cleared the EEProm; republish the sketch.. but no luck
    So it does not initialize correctly I think... but why?

    Troubleshooting

  • Usage problem with 2.0 library
    rnollenR rnollen

    OK... I will try to find v2.0 code for my projects :) And will upgrade the GW first then :)

    Troubleshooting

  • Usage problem with 2.0 library
    rnollenR rnollen

    HI,

    I have several sensors running on the V1.0 my sensors library, this for quite some time now... All works like a charm.

    Now, i wanted to create a new Lux sensor, so I have decided to make this one using the v2.0 library code
    For starters I had some installation issues. I I didn't know how to upgrade the library from v1 to v2, so I have decided to uninstall/install Arduino software and to use the tutorial how to add the 2.0 library to the arduino software. For some reason the new sketches didn't work and I didn't saw how to upgrade it on my earlier version of the Arduino software. But this fixed it.

    Then, I was not able to use Bh1750.h library, so I have donwloaded it from gifthub and added it to the library. All was working and compiling wel from then.

    But now, the lux sensor itself is not working. It gives me an error:
    TSM:ID
    TSM:CHKID:OK (ID=6)
    TSM:UPL
    TSP:PING:SEND (dest=0)
    TSP:MSG:SEND 6-6-0-0 s=255,c=3,t=24,pt=1,l=1,sg=0,ft=0,st=ok:1
    TSP:CHKUPL:FAIL (hops=255)
    !TSM:UPL:FAIL
    TSM:FPAR
    TSP:MSG:SEND 6-6-255-255 s=255,c=3,t=7,pt=0,l=0,sg=0,ft=0,st=bc:
    TSP:MSG:READ 0-0-6 s=255,c=3,t=8,pt=1,l=1,sg=0:0
    TSP:MSG:FPAR RES (ID=0, dist=0)
    TSP:MSG:PAR OK (ID=0, dist=1)
    TSM:FPAR:OK
    TSM:ID
    TSM:CHKID:OK (ID=6)
    TSM:UPL
    TSP:PING:SEND (dest=0)
    TSP:MSG:SEND 6-6-0-0 s=255,c=3,t=24,pt=1,l=1,sg=0,ft=0,st=ok:1

    I see a fail on TCP:CHKUPL:FAIL.. I found on the internet, that maybe ID 0 was used in the (used the example sketch from this site), changed this to a different value, but with no luck..

    I need to say that my GW is still using the V1.0 library code. I didn't upgraded this yet because I am not sure when I change my GW that I need to upgrade all my other sensors? Hopefully this is not the case :).....

    Anyone got an idea what this error could mean?

    Troubleshooting

  • Problem with Wind Speed sensor
    rnollenR rnollen

    @AWI Thanks! The sketch works. But, I am not quite sure if the readings in m/s are correct. As a test, I have used a normal table fan, then I got 3.3 m/s on full speed..
    Then I used a hairdryer, that on full speed.. It spins then very very fast, but it is still only 11 m/s. This is classified as normal, somewhat powerfull wind? Looks to me it's pretty low? Or could this correct for this case? :)'

    Edit-> Maybe it is correct :) Saw somewhere on internet a test with somewhat smaller hairdryer, which gave 9.5 m/s :)
    Unfortunately I don't have any experience with windmeters :) Don't know how hard it should spin and how to test the output :)

    Troubleshooting

  • Problem with Wind Speed sensor
    rnollenR rnollen

    @AWI Thanks for the sketch, but I still run in some issues. When i download the sketch, I got an error with the line "#include <MySensor.h> ". The strange thing is, everything seems to be OK, but it say it cannot be found. When I copy/paste the lines from a different sketch, it does work correct?? The strange thing is, I don't see difference. Maybe something wrong with a font or some sort?

    But, then the issues really start. All the Mysensors stuff, is not recognized (e.g.send). I was able to fix that, copying from other sketches and add gw. before everything. In the serial monitor it then looks OK. That seems for me to solve the issues on that side.

    But finally, in domoticz, it does not work then :( Everything is looking perfect, I see the sensors appear, but no new device is added). I saw a topic on the domoticz forum where the same thing happened :) and where you also replyed in: https://www.domoticz.com/forum/viewtopic.php?f=42&t=11490&p=82522&hilit=wind#p82522

    Tried some various stuff, but no result sofar

    Any idea?

    Troubleshooting

  • Problem with Wind Speed sensor
    rnollenR rnollen

    @AWI said:
    @rnollen take care.. This is how it should be (with the anemometer) I will post the MySensors version tomorrow (need some sleep now)

    @AWI ..Awesome ☺ Thanks so far ☺

    Troubleshooting

  • Problem with Wind Speed sensor
    rnollenR rnollen

    @AWI I am still ill, while doing this :) Hopefully tomorrow will be better, Hahaha.. :)
    But, the results looks promising and OK I guess :)
    8.13
    10.87
    14.08
    20.00
    27.78
    23.81
    25.64
    10.75
    0.00
    1.81
    12.66
    11.49
    10.75
    10.00
    9.35
    8.85
    8.33
    7.87

    It's 0 when I am not turning it around, so that is OK. Low number, when rotating it slowly. High number when rotating it fast :)

    Troubleshooting

  • Problem with Wind Speed sensor
    rnollenR rnollen

    @AWI Sorry for the late reply, I got the flu :( But did test the sketch, but I got the same results basically.. Mostly 1000, inf and sometimes a 500? So what can be wrong here?

    Thanks for all you're efforts so far!! Really appreciate it :)

    Troubleshooting

  • Problem with Wind Speed sensor
    rnollenR rnollen

    @AWI Hmm.. I see this:
    1000.00
    1000.00
    1000.00
    1000.00
    1000.00
    1000.00
    1000.00
    1000.00
    1000.00
    500.00
    1000.00
    0.00
    inf
    1000.00
    0.00
    0.00

    Don't think that this is correct right? Am I doing something wrong, or does these numbers say anything to you :)

    Troubleshooting

  • Problem with Wind Speed sensor
    rnollenR rnollen

    @AWI said:

    @rnollen the "inf" means infinite and is caused by a 0 division. You can try to remove the line starting with 'float' and print the time values.
    I assume you changed the anemometer pin in the sketch to d7...?

    I have did some additional testing. The DC12 is wrong I think, when I use that then the whole sketch does not give any values back. Now used the 5V of the arduino, then I got something readings using this sketch. I have added some additional serial print lines for logging. But when times are zero, then the frequency is INF and that happens when I don't rotate, so that looks OK I think
    ..
    Timeon: 0
    Timeoff: 0
    TimePeriod: 0
    Frequency: inf
    Timeon: 0
    Timeoff: 87951
    TimePeriod: 87951
    Frequency: 11.37
    Timeon: 24222
    Timeoff: 22899
    TimePeriod: 47121
    Frequency: 21.22
    Timeon: 24960
    Timeoff: 27680
    TimePeriod: 52640
    Frequency: 19.00
    Timeon: 27545
    Timeoff: 28273
    TimePeriod: 55818
    Frequency: 17.92
    Timeon: 63310
    Timeoff: 0
    TimePeriod: 63310
    Frequency: 15.80

    The serial.print lines:
    Serial.print("Timeon: ");
    Serial.println(timeon);
    Serial.print("Timeoff: ");
    Serial.println(timeoff);
    Serial.print("TimePeriod: ");
    Serial.println(timePeriod);
    Serial.print("Frequency: ");
    Serial.println(frequency);

    But any idea, because I am still lost don't know exactly what the conclusion of this is :)

    Troubleshooting

  • Problem with Wind Speed sensor
    rnollenR rnollen

    @AWI said:

    @rnollen good news. Npn needs a pull-up so the sketch above should be able to do it. It uses the internal pull-up of the Arduino. I am curious to the outcome.

    It does not work entirely correct I think. In the serial Monitor I see "Inf" as outcome of the sketch :( Don't see exactly where that is coming from :)

    Maybe something wrong with the wiring? I Attached the 12V DC to red and blue. The Yellow, connected it to the breadboard and a cable from the D7 also to this connection. I took a 4.7K resistor, connected also to this group and the other side of this resistor I connected to the 5V of the Arduino? Is that correct?

    When I remove the resistor: then this is my outcome of the sketch:
    12.82
    inf
    inf
    3.36
    1.88
    55.06
    inf
    37037.03
    inf
    333333.34
    30.95
    17.43
    inf
    142857.14
    inf
    125000.00
    500000.00
    500000.00
    90909.10
    500000.00
    39.47
    inf
    250000.00
    500000.00
    inf
    20.54
    45.67
    58823.53
    inf
    9.88
    inf
    inf
    9.17
    inf

    Then I got some numbers, but what they mean :) The very high numbers are when rotating..

    Troubleshooting

  • Problem with Wind Speed sensor
    rnollenR rnollen

    @AWI Thanks, I will give it a try. Today I also received some additional info. The device is a NPN model. Type 12CM, according to the supplier it is 12 pulses for 1m/s per second. But the manual says that this model is 10 pulses for 1m/s.

    So basically I could now connect the device as NPN, only I need to find out how :)

    Troubleshooting
  • Login

  • Don't have an account? Register

  • Login or register to search.
  • First post
    Last post
0
  • MySensors
  • OpenHardware.io
  • Categories
  • Recent
  • Tags
  • Popular