Skip to content

My Project

Show off and share your great projects here! We love pictures!
961 Topics 13.4k Posts
  • Pool Pressure Sensor

    6
    1 Votes
    6 Posts
    6k Views
    BulldogLowellB
    @Dwalt said: Depending on your controller and what you plan on doing with this data, I would send the data to your controller as a simple number using V_LIGHT_LEVEL or V_VAR1 and not mess with atmospheric pressure with V_PRESSURE. or just use the temperature device... you can attach logic a lot easier with controller-friendly device types. Vera knows temperature, for example.
  • Heated garden beds.

    1
    0 Votes
    1 Posts
    963 Views
    No one has replied
  • 0 Votes
    4 Posts
    12k Views
    epierreE
    discussion follow up: http://forum.mysensors.org/topic/990/soil-tensiometer-sensor-network/28
  • New Project with MySensor network and autonomous nodes

    7
    0 Votes
    7 Posts
    4k Views
    JohnJ
    With PiDome you are able to add options to device skeletons you create (so you can re-use devices). When you add a device to the server you can set these options. Example: You have 5 temperature nodes, you create a skeleton once with your temperature node setup, you add the option poll time with a drop down choosing between 1, 5, 10 minutes (you can also use input fields off course). When you add these devices to the server you then can set the polling time per device. By using the mysensors functionality to do a data request you will be able to get the option's value (See "Requesting data" on the API page: http://www.mysensors.org/download/sensor_api_15). But. The above does not work yet for PiDome as this is not implemented in the mysensors plugin. Too be honest i did not even have thought about it. I have created a feature request for the mysensors plugin to have this implemented at: https://bitbucket.org/pidome/pidome-mysensors/issues/4/be-able-to-create-options-for-devices-in So if you are going to use PiDome or not, this will be implemented (so other users will also be able to use it when it becomes available). I can not yet give an estimate on when this is implemented as the Custom devices editor is on the optimization list, and currently i'm extremely busy with the raspberry pi client to have it compatible on multiple display resolutions (starting from 240*320). You have the possibility to vote for the option so it can go up on the prio list (It is the three of PiDome deciding which option is next to pick up). Regarding of booting all the sensors at the same time. The server does not care. It is capable of handling bulk messages from the gateway. So you need @hek to answer this one.
  • My Ugly ESP GW Prototype

    34
    2 Votes
    34 Posts
    17k Views
    Lucas FiggL
    Does anyone have any working examples of Sensebender Micro working with a Photon? I have all the parts but finding it difficult to unravel all GW libs and so on. I just want to use my sensebender with a Onewire waterproof temp sensor and for it to report back to the Photon every 5 minutes or so.
  • Ethernet Gateway - Using an Arduino UNO

    2
    0 Votes
    2 Posts
    2k Views
    N
    The error I get is as follows; and I am using U17 and NRF24L01. I have power to the UNO as well. MySensors plugin : Cannot send command - communications error ERROR : Error in lua for scenes and events Not sure if this is related to this or my calendar issue.
  • Unable to upload to my Arduino

    6
    0 Votes
    6 Posts
    8k Views
    SparkmanS
    @Burtonian I have a couple of those boards as well and have uploaded sketches to them using W7 64 bit. You do need to install special drivers. I downloaded the driver from here: http://www.wch.cn/download/CH341SER_EXE.html Cheers Al
  • Energy monitor from existing CT's

    12
    0 Votes
    12 Posts
    6k Views
    G
    @ewgor, like I said, I couldnt get mine built. Not sure what i did wrong. I got values, but they were the same whether current was going through or not. So i kind of gave up on it for a while. I too need some help getting it built.
  • Hacking a wireless weather station display

    5
    4 Votes
    5 Posts
    6k Views
    Andy PepA
    well done :) l33t hack :)
  • Here's how to verify the clock frequency on your Pro Mini

    1
    0 Votes
    1 Posts
    1k Views
    No one has replied
  • What board for battery powered 5V Sensors?

    3
    0 Votes
    3 Posts
    2k Views
    bpairB
    Thanks - your schematic/drawing is really helpful. I just ordered some of those step-up components and a few sensebenders.
  • My upcoming project

    8
    5 Votes
    8 Posts
    4k Views
    sundberg84S
    Hahaha, that dutch guy is crasy :) Love his homepage... never seen before but thats something to aim for, lol.
  • water level for pool

    12
    0 Votes
    12 Posts
    8k Views
    boanjoB
    I agree with "notforyou23", the eTape is a great product (although a bit pricy). I use it in this project where i easily keep my pond water level +-5mm. And i rever overfill the pond anymore... https://github.com/epkboan/pc
  • Pond Control

    1
    1 Votes
    1 Posts
    1k Views
    No one has replied
  • homeautomation

    1
    0 Votes
    1 Posts
    1k Views
    No one has replied
  • my first weather station

    19
    0 Votes
    19 Posts
    11k Views
    Andy PepA
    well thats cool .. my recycled tipping bucket works and seams to be close to accurate .. [image: 1440013836167-rain.jpeg]
  • Sound Sensor

    31
    0 Votes
    31 Posts
    25k Views
    G
    @epierre thanks. I do have 4 pins, and im using the analog one. I noticed the increasing value you mentioned. I tried to get raw and got a value, but when taking into the mic, the value doesn't appear to change. Does yours?
  • Any mass produced prototyping shields for the pro mini?

    6
    0 Votes
    6 Posts
    3k Views
    SparkmanS
    @NeverDie Not exactly mass produced, but here are some other options: https://oshpark.com/shared_projects/uXIff7XO https://oshpark.com/shared_projects/pRJiKWxV https://oshpark.com/shared_projects/nJ8HNuZj Cheers Al
  • Binary Control Modules , Switches, or Outlets on a Vera Edge

    sensor
    33
    0 Votes
    33 Posts
    14k Views
    mntlvrM
    @BulldogLowell said: @mntlvr said: And if all six switches are set to gnd the total current would only be 1.5 ma (5volts /20k)x6=.0015 amps I believe. the internal pullup resistors are 20k-50k according to arduino spec. yeah, I know, but if you are underpowered already (the radio....) the extra draw may create an issue... who the heck knows. I'll try on one of mine when I get the chance... your code works, and that's a treat, but now I need to understand why the simpler execution of the same code doesn't seem to cooperate with your rig. weird... you code with pinMode(buttonPin[i], INPUT); exactly same board and USB power supply and same transceiver, here are the results Sending device info...sensor started, id 32 send: 32-32-0-0 s=255,c=0,t=17,pt=0,l=5,st=ok:1.4.1 send: 32-32-0-0 s=255,c=3,t=6,pt=1,l=1,st=ok:0 read: 0-0-32 s=255,c=3,t=6,pt=0,l=1:I send: 32-32-0-0 s=255,c=3,t=11,pt=0,l=13,st=ok:RemoteControl send: 32-32-0-0 s=255,c=3,t=12,pt=0,l=4,st=ok:1.15 Setting up Pin0 send: 32-32-0-0 s=0,c=0,t=0,pt=0,l=0,st=ok: Setting up Pin1 send: 32-32-0-0 s=1,c=0,t=0,pt=0,l=0,st=ok: Setting up Pin2 send: 32-32-0-0 s=2,c=0,t=0,pt=0,l=0,st=ok: Setting up Pin3 send: 32-32-0-0 s=3,c=0,t=0,pt=0,l=0,st=ok: read: 32-32-0 s=3,c=0,t=0,pt=0,l=0: read: 32-32-0 s=3,c=0,t=0,pt=0,l=0: read: 32-32-0 s=3,c=0,t=0,pt=0,l=0: read: 32-32-0 s=3,c=0,t=0,pt=0,l=0: read: 32-32-0 s=3,c=0,t=0,pt=0,l=0: read: 32-32-0 s=3,c=0,t=0,pt=0,l=0: read: 32-32-0 s=3,c=0,t=0,pt=0,l=0: read: 32-32-0 s=3,c=0,t=0,pt=0,l=0: read: 32-32-0 s=3,c=0,t=0,pt=0,l=0: read: 32-32-0 s=3,c=0,t=0,pt=0,l=0: read: 32-32-0 s=3,c=0,t=0,pt=0,l=0: read: 32-32-0 s=3,c=0,t=0,pt=0,l=0: read: 32-32-0 s=3,c=0,t=0,pt=0,l=0: read: 32-32-0 s=3,c=0,t=0,pt=0,l=0: read: 32-32-0 s=3,c=0,t=0,pt=0,l=0: read: 32-32-0 s=3,c=0,t=0,pt=0,l=0: read: 32-32-0 s=3,c=0,t=0,pt=0,l=0: read: 32-32-0 s=3,c=0,t=0,pt=0,l=0: read: 32-32-0 s=3,c=0,t=0,pt=0,l=0: read: 32-32-0 s=3,c=0,t=0,pt=0,l=0: read: 32-32-0 s=3,c=0,t=0,pt=0,l=0: read: 32-32-0 s=3,c=0,t=0,pt=0,l=0: read: 32-32-0 s=3,c=0,t=0,pt=0,l=0: read: 32-32-0 s=3,c=0,t=0,pt=0,l=0: read: 32-32-0 s=3,c=0,t=0,pt=0,l=0: read: 32-32-0 s=3,c=0,t=0,pt=0,l=0: read: 32-32-0 s=3,c=0,t=0,pt=0,l=0: read: 32-32-0 s=3,c=0,t=0,pt=0,l=0: read: 32-32-0 s=3,c=0,t=0,pt=0,l=0: read: 32-32-0 s=3,c=0,t=0,pt=0,l=0: read: 32-32-0 s=3,c=0,t=0,pt=0,l=0: read: 32-32-0 s=3,c=0,t=0,pt=0,l=0: read: 32-32-0 s=3,c=0,t=0,pt=0,l=0: read: 32-32-0 s=3,c=0,t=0,pt=0,l=0: read: 32-32-0 s=3,c=0,t=0,pt=0,l=0: read: 32-32-0 s=3,c=0,t=0,pt=0,l=0: read: 32-32-0 s=3,c=0,t=0,pt=0,l=0: read: 32-32-0 s=3,c=0,t=0,pt=0,l=0: read: 32-32-0 s=3,c=0,t=0,pt=0,l=0: read: 32-32-0 s=3,c=0,t=0,pt=0,l=0: read: 32-32-0 s=3,c=0,t=0,pt=0,l=0: read: 32-32-0 s=3,c=0,t=0,pt=0,l=0: read: 32-32-0 s=3,c=0,t=0,pt=0,l=0: read: 32-32-0 s=3,c=0,t=0,pt=0,l=0: read: 32-32-0 s=3,c=0,t=0,pt=0,l=0: read: 32-32-0 s=3,c=0,t=0,pt=0,l=0: read: 32-32-0 s=3,c=0,t=0,pt=0,l=0: read: 32-32-0 s=3,c=0,t=0,pt=0,l=0: read: 32-32-0 s=3,c=0,t=0,pt=0,l=0: read: 32-32-0 s=3,c=0,t=0,pt=0,l=0: read: 32-32-0 s=3,c=0,t=0,pt=0,l=0: read: 32-32-0 s=3,c=0,t=0,pt=0,l=0: read: 32-32-0 s=3,c=0,t=0,pt=0,l=0: read: 32-32-0 s=3,c=0,t=0,pt=0,l=0: read: 32-32-0 s=3,c=0,t=0,pt=0,l=0: read: 32-32-0 s=3,c=0,t=0,pt=0,l=0: read: 32-32-0 s=3,c=0,t=0,pt=0,l=0: read: 32-32-0 s=3,c=0,t=0,pt=0,l=0: read: 32-32-0 s=3,c=0,t=0,pt=0,l=0: read: 32-32-0 s=3,c=0,t=0,pt=0,l=0: read: 32-32-0 s=3,c=0,t=0,pt=0,l=0: read: 32-32-0 s=3,c=0,t=0,pt=0,l=0: read: 32-32-0 s=3,c=0,t=0,pt=0,l=0: read: 32-32-0 s=3,c=0,t=0,pt=0,l=0: read: 32-32-0 s=3,c=0,t=0,pt=0,l=0: read: 32-32-0 s=3,c=0,t=0,pt=0,l=0: read: 32-32-0 s=3,c=0,t=0,pt=0,l=0: read: 32-32-0 s=3,c=0,t=0,pt=0,l=0: read: 32-32-0 s=3,c=0,t=0,pt=0,l=0: read: 32-32-0 s=3,c=0,t=0,pt=0,l=0: read: 32-32-0 s=3,c=0,t=0,pt=0,l=0: read: 32-32-0 s=3,c=0,t=0,pt=0,l=0: read: 32-32-0 s=3,c=0,t=0,pt=0,l=0: read: 32-32-0 s=3,c=0,t=0,pt=0,l=0: read: 32-32-0 s=3,c=0,t=0,pt=0,l=0: read: 32-32-0 s=3,c=0,t=0,pt=0,l=0: read: 32-32-0 s=3,c=0,t=0,pt=0,l=0: read: 32-32-0 s=3,c=0,t=0,pt=0,l=0: read: 32-32-0 s=3,c=0,t=0,pt=0,l=0: read: 32-32-0 s=3,c=0,t=0,pt=0,l=0: read: 32-32-0 s=3,c=0,t=0,pt=0,l=0: read: 32-32-0 s=3,c=0,t=0,pt=0,l=0: read: 32-32-0 s=3,c=0,t=0,pt=0,l=0: read: 32-32-0 s=3,c=0,t=0,pt=0,l=0: read: 32-32-0 s=3,c=0,t=0,pt=0,l=0: read: 32-32-0 s=3,c=0,t=0,pt=0,l=0: read: 32-32-0 s=3,c=0,t=0,pt=0,l=0: read: 32-32-0 s=3,c=0,t=0,pt=0,l=0: read: 32-32-0 s=3,c=0,t=0,pt=0,l=0: read: 32-32-0 s=3,c=0,t=0,pt=0,l=0: read: 32-32-0 s=3,c=0,t=0,pt=0,l=0: read: 32-32-0 s=3,c=0,t=0,pt=0,l=0: read: 32-32-0 s=3,c=0,t=0,pt=0,l=0: read: 32-32-0 s=3,c=0,t=0,pt=0,l=0: read: 32-32-0 s=3,c=0,t=0,pt=0,l=0: read: 32-32-0 s=3,c=0,t=0,pt=0,l=0: read: 32-32-0 s=3,c=0,t=0,pt=0,l=0: read: 32-32-0 s=3,c=0,t=0,pt=0,l=0: Setting up Pin4 send: 32-32-0-0 s=4,c=0,t=0,pt=0,l=0,st=ok: read: 32-32-0 s=4,c=0,t=0,pt=0,l=0: read: 32-32-0 s=4,c=0,t=0,pt=0,l=0: read: 32-32-0 s=4,c=0,t=0,pt=0,l=0: read: 32-32-0 s=4,c=0,t=0,pt=0,l=0: read: 32-32-0 s=4,c=0,t=0,pt=0,l=0: read: 32-32-0 s=4,c=0,t=0,pt=0,l=0: read: 32-32-0 s=4,c=0,t=0,pt=0,l=0: read: 32-32-0 s=4,c=0,t=0,pt=0,l=0: read: 32-32-0 s=4,c=0,t=0,pt=0,l=0: read: 32-32-0 s=4,c=0,t=0,pt=0,l=0: read: 32-32-0 s=4,c=0,t=0,pt=0,l=0: read: 32-32-0 s=4,c=0,t=0,pt=0,l=0: read: 32-32-0 s=4,c=0,t=0,pt=0,l=0: read: 32-32-0 s=4,c=0,t=0,pt=0,l=0: read: 32-32-0 s=4,c=0,t=0,pt=0,l=0: read: 32-32-0 s=4,c=0,t=0,pt=0,l=0: read: 32-32-0 s=4,c=0,t=0,pt=0,l=0: read: 32-32-0 s=4,c=0,t=0,pt=0,l=0: read: 32-32-0 s=4,c=0,t=0,pt=0,l=0: read: 32-32-0 s=4,c=0,t=0,pt=0,l=0: read: 32-32-0 s=4,c=0,t=0,pt=0,l=0: read: 32-32-0 s=4,c=0,t=0,pt=0,l=0: read: 32-32-0 s=4,c=0,t=0,pt=0,l=0: read: 32-32-0 s=4,c=0,t=0,pt=0,l=0: read: 32-32-0 s=4,c=0,t=0,pt=0,l=0: read: 32-32-0 s=4,c=0,t=0,pt=0,l=0: read: 32-32-0 s=4,c=0,t=0,pt=0,l=0: read: 32-32-0 s=4,c=0,t=0,pt=0,l=0: read: 32-32-0 s=4,c=0,t=0,pt=0,l=0: read: 32-32-0 s=4,c=0,t=0,pt=0,l=0: read: 32-32-0 s=4,c=0,t=0,pt=0,l=0: read: 32-32-0 s=4,c=0,t=0,pt=0,l=0: read: 32-32-0 s=4,c=0,t=0,pt=0,l=0: read: 32-32-0 s=4,c=0,t=0,pt=0,l=0: read: 32-32-0 s=4,c=0,t=0,pt=0,l=0: read: 32-32-0 s=4,c=0,t=0,pt=0,l=0: read: 32-32-0 s=4,c=0,t=0,pt=0,l=0: read: 32-32-0 s=4,c=0,t=0,pt=0,l=0: read: 32-32-0 s=4,c=0,t=0,pt=0,l=0: read: 32-32-0 s=4,c=0,t=0,pt=0,l=0: read: 32-32-0 s=4,c=0,t=0,pt=0,l=0: read: 32-32-0 s=4,c=0,t=0,pt=0,l=0: read: 32-32-0 s=4,c=0,t=0,pt=0,l=0: read: 32-32-0 s=4,c=0,t=0,pt=0,l=0: read: 32-32-0 s=4,c=0,t=0,pt=0,l=0: read: 32-32-0 s=4,c=0,t=0,pt=0,l=0: read: 32-32-0 s=4,c=0,t=0,pt=0,l=0: read: 32-32-0 s=4,c=0,t=0,pt=0,l=0: read: 32-32-0 s=4,c=0,t=0,pt=0,l=0: read: 32-32-0 s=4,c=0,t=0,pt=0,l=0: read: 32-32-0 s=4,c=0,t=0,pt=0,l=0: read: 32-32-0 s=4,c=0,t=0,pt=0,l=0: read: 32-32-0 s=4,c=0,t=0,pt=0,l=0: read: 32-32-0 s=4,c=0,t=0,pt=0,l=0: read: 32-32-0 s=4,c=0,t=0,pt=0,l=0: read: 32-32-0 s=4,c=0,t=0,pt=0,l=0: read: 32-32-0 s=4,c=0,t=0,pt=0,l=0: read: 32-32-0 s=4,c=0,t=0,pt=0,l=0: read: 32-32-0 s=4,c=0,t=0,pt=0,l=0: read: 32-32-0 s=4,c=0,t=0,pt=0,l=0: read: 32-32-0 s=4,c=0,t=0,pt=0,l=0: read: 32-32-0 s=4,c=0,t=0,pt=0,l=0: read: 32-32-0 s=4,c=0,t=0,pt=0,l=0: read: 32-32-0 s=4,c=0,t=0,pt=0,l=0: read: 32-32-0 s=4,c=0,t=0,pt=0,l=0: read: 32-32-0 s=4,c=0,t=0,pt=0,l=0: read: 32-32-0 s=4,c=0,t=0,pt=0,l=0: read: 32-32-0 s=4,c=0,t=0,pt=0,l=0: read: 32-32-0 s=4,c=0,t=0,pt=0,l=0: read: 32-32-0 s=4,c=0,t=0,pt=0,l=0: read: 32-32-0 s=4,c=0,t=0,pt=0,l=0: read: 32-32-0 s=4,c=0,t=0,pt=0,l=0: read: 32-32-0 s=4,c=0,t=0,pt=0,l=0: read: 32-32-0 s=4,c=0,t=0,pt=0,l=0: read: 32-32-0 s=4,c=0,t=0,pt=0,l=0: read: 32-32-0 s=4,c=0,t=0,pt=0,l=0: read: 32-32-0 s=4,c=0,t=0,pt=0,l=0: read: 32-32-0 s=4,c=0,t=0,pt=0,l=0: read: 32-32-0 s=4,c=0,t=0,pt=0,l=0: read: 32-32-0 s=4,c=0,t=0,pt=0,l=0: read: 32-32-0 s=4,c=0,t=0,pt=0,l=0: read: 32-32-0 s=4,c=0,t=0,pt=0,l=0: read: 32-32-0 s=4,c=0,t=0,pt=0,l=0: read: 32-32-0 s=4,c=0,t=0,pt=0,l=0: read: 32-32-0 s=4,c=0,t=0,pt=0,l=0: read: 32-32-0 s=4,c=0,t=0,pt=0,l=0: read: 32-32-0 s=4,c=0,t=0,pt=0,l=0: read: 32-32-0 s=4,c=0,t=0,pt=0,l=0: read: 32-32-0 s=4,c=0,t=0,pt=0,l=0: read: 32-32-0 s=4,c=0,t=0,pt=0,l=0: read: 32-32-0 s=4,c=0,t=0,pt=0,l=0: read: 32-32-0 s=4,c=0,t=0,pt=0,l=0: read: 32-32-0 s=4,c=0,t=0,pt=0,l=0: read: 32-32-0 s=4,c=0,t=0,pt=0,l=0: Setting up Pin5 send: 0-0-0-0 s=5,c=0,t=0,pt=0,l=0,st=ok: read: 36-81-0 s=0,c=5,t=0,pt=0,l=0: version mismatch read: 36-81-0 s=0,c=5,t=0,pt=0,l=0: version mismatch read: 36-81-0 s=0,c=5,t=0,pt=0,l=0: version mismatch read: 36-81-0 s=0,c=5,t=0,pt=0,l=0: version mismatch read: 36-81-0 s=0,c=5,t=0,pt=0,l=0: version mismatch read: 36-81-0 s=0,c=5,t=0,pt=0,l=0: version mismatch read: 36-81-0 s=0,c=5,t=0,pt=0,l=0: version mismatch read: 36-81-0 s=0,c=5,t=0,pt=0,l=0: version mismatch read: 36-81-0 s=0,c=5,t=0,pt=0,l=0: version mismatch read: 36-81-0 s=0,c=5,t=0,pt=0,l=0: version mismatch read: 36-81-0 s=0,c=5,t=0,pt=0,l=0: version mismatch read: 36-81-0 s=0,c=5,t=0,pt=0,l=0: version mismatch read: 36-81-0 s=0,c=5,t=0,pt=0,l=0: version mismatch read: 36-81-0 s=0,c=5,t=0,pt=0,l=0: version mismatch read: 36-81-0 s=0,c=5,t=0,pt=0,l=0: version mismatch read: 36-81-0 s=0,c=5,t=0,pt=0,l=0: version mismatch read: 36-81-0 s=0,c=5,t=0,pt=0,l=0: version mismatch read: 36-81-0 s=0,c=5,t=0,pt=0,l=0: version mismatch read: 36-81-0 s=0,c=5,t=0,pt=0,l=0: version mismatch read: 36-81-0 s=0,c=5,t=0,pt=0,l=0: version mismatch read: 36-81-0 s=0,c=5,t=0,pt=0,l=0: version mismatch read: 36-81-0 s=0,c=5,t=0,pt=0,l=0: version mismatch read: 36-81-0 s=0,c=5,t=0,pt=0,l=0: version mismatch read: 36-81-0 s=0,c=5,t=0,pt=0,l=0: version mismatch read: 36-81-0 s=0,c=5,t=0,pt=0,l=0: version mismatch read: 36-81-0 s=0,c=5,t=0,pt=0,l=0: version mismatch read: 36-81-0 s=0,c=5,t=0,pt=0,l=0: version mismatch read: 36-81-0 s=0,c=5,t=0,pt=0,l=0: version mismatch read: 36-81-0 s=0,c=5,t=0,pt=0,l=0: version mismatch read: 36-81-0 s=0,c=5,t=0,pt=0,l=0: version mismatch read: 36-81-0 s=0,c=5,t=0,pt=0,l=0: version mismatch read: 36-81-0 s=0,c=5,t=0,pt=0,l=0: version mismatch read: 36-81-0 s=0,c=5,t=0,pt=0,l=0: version mismatch read: 36-81-0 s=0,c=5,t=0,pt=0,l=0: version mismatch read: 36-81-0 s=0,c=5,t=0,pt=0,l=0: version mismatch read: 36-81-0 s=0,c=5,t=0,pt=0,l=0: version mismatch read: 36-81-0 s=0,c=5,t=0,pt=0,l=0: version mismatch read: 36-81-0 s=0,c=5,t=0,pt=0,l=0: version mismatch read: 36-81-0 s=0,c=5,t=0,pt=0,l=0: version mismatch read: 36-81-0 s=0,c=5,t=0,pt=0,l=0: version mismatch read: 36-81-0 s=0,c=5,t=0,pt=0,l=0: version mismatch read: 36-81-0 s=0,c=5,t=0,pt=0,l=0: version mismatch read: 36-81-0 s=0,c=5,t=0,pt=0,l=0: version mismatch read: 36-81-0 s=0,c=5,t=0,pt=0,l=0: version mismatch read: 36-81-0 s=0,c=5,t=0,pt=0,l=0: version mismatch read: 36-81-0 s=0,c=5,t=0,pt=0,l=0: version mismatch read: 36-81-0 s=0,c=5,t=0,pt=0,l=0: version mismatch read: 36-81-0 s=0,c=5,t=0,pt=0,l=0: version mismatch read: 36-81-0 s=0,c=5,t=0,pt=0,l=0: version mismatch read: 36-81-0 s=0,c=5,t=0,pt=0,l=0: version mismatch read: 36-81-0 s=0,c=5,t=0,pt=0,l=0: version mismatch read: 36-81-0 s=0,c=5,t=0,pt=0,l=0: version mismatch read: 36-81-0 s=0,c=5,t=0,pt=0,l=0: version mismatch read: 36-81-0 s=0,c=5,t=0,pt=0,l=0: version mismatch read: 36-81-0 s=0,c=5,t=0,pt=0,l=0: version mismatch read: 36-81-0 s=0,c=5,t=0,pt=0,l=0: version mismatch read: 36-81-0 s=0,c=5,t=0,pt=0,l=0: version mismatch read: 36-81-0 s=0,c=5,t=0,pt=0,l=0: version mismatch read: 36-81-0 s=0,c=5,t=0,pt=0,l=0: version mismatch read: 36-81-0 s=0,c=5,t=0,pt=0,l=0: version mismatch read: 36-81-0 s=0,c=5,t=0,pt=0,l=0: version mismatch read: 36-81-0 s=0,c=5,t=0,pt=0,l=0: version mismatch read: 36-81-0 s=0,c=5,t=0,pt=0,l=0: version mismatch read: 36-81-0 s=0,c=5,t=0,pt=0,l=0: version mismatch Sensor presentation complete send: 0-0-0-0 s=3,c=1,t=16,pt=2,l=2,st=ok:1 Pin 3 changed state... New State: Tripped send: 0-0-0-0 s=0,c=1,t=16,pt=2,l=2,st=ok:1 Pin 0 changed state... New State: Tripped send: 0-0-0-0 s=1,c=1,t=16,pt=2,l=2,st=ok:1 Pin 1 changed state... New State: Tripped send: 0-0-0-0 s=2,c=1,t=16,pt=2,l=2,st=ok:1 Pin 2 changed state... New State: Tripped send: 0-0-0-0 s=3,c=1,t=16,pt=2,l=2,st=ok:0 Pin 3 changed state... New State: Not Tripped
  • Leaf Wetness

    45
    0 Votes
    45 Posts
    33k Views
    epierreE
    Hello, I guess it is the same as Vinduino : [image: 1438411787359-4533105.jpg] with their test code: // This program tests 3 soil sensor inputs and prints bias caused by galvanic effects // Copyright (C) 2015, Reinier van der Lee // www.vanderleevineyard.com // This program is free software: you can redistribute it and/or modify // it under the terms of the GNU General Public License as published by // the Free Software Foundation, either version 3 of the License, or // any later version. // This program is distributed in the hope that it will be useful, // but WITHOUT ANY WARRANTY; without even the implied warranty of // MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the // GNU General Public License for more details. #include <math.h> // Conversion equation from resistance to % // Setting up format for reading 3 soil sensors #define NUM_READS 10 // Number of sensor reads for filtering long buffer[NUM_READS]; int index; typedef struct { // Structure to be used in percentage and resistance values matrix to be filtered (have to be in pairs) int moisture; long resistance; } values; const long knownResistor = 1500; // Constant value of known resistor in Ohms int supplyVoltage; // Measured supply voltage int sensorVoltage; // Measured sensor voltage values valueOf[NUM_READS]; // Calculated moisture percentages and resistances to be sorted and filtered int i; // Simple index variable void setup() { // initialize serial communications at 9600 bps: Serial.begin(115200); // initialize the digital pins as an output. // Pin 6,7 is for sensor 1 pinMode(6, OUTPUT); pinMode(7, OUTPUT); } void loop() { measure(1,6,7,1); Serial.print ("\t"); Serial.println (average()); long read1 = average(); measure(1,7,6,0); Serial.print ("\t"); Serial.println (average()); long read2= average(); long sensor1 = (read1 + read2)/2; Serial.print ("resistance bias =" ); Serial.println (read1-read2); Serial.print ("sensor bias compensated value = "); Serial.println (sensor1); Serial.println (); delay (3000); } void measure (int sensor, int phase_b, int phase_a, int analog_input) { // read sensor, filter, and calculate resistance value // Noise filter: median filter for (i=0; i<NUM_READS; i++) { // Read 1 pair of voltage values digitalWrite(phase_a, HIGH); // set the voltage supply on delayMicroseconds(25); supplyVoltage = analogRead(analog_input); // read the supply voltage delayMicroseconds(25); digitalWrite(phase_a, LOW); // set the voltage supply off delay(1); digitalWrite(phase_b, HIGH); // set the voltage supply on delayMicroseconds(25); sensorVoltage = analogRead(analog_input); // read the sensor voltage delayMicroseconds(25); digitalWrite(phase_b, LOW); // set the voltage supply off // Calculate resistance // the 0.5 add-term is used to round to the nearest integer // Tip: no need to transform 0-1023 voltage value to 0-5 range, due to following fraction long resistance = (knownResistor * (supplyVoltage - sensorVoltage ) / sensorVoltage)-457 ; delay(1); addReading(resistance); Serial.print (resistance); Serial.print ("\t"); } } // Averaging algorithm void addReading(long resistance){ buffer[index] = resistance; index++; if (index >= NUM_READS) index = 0; } long average(){ long sum = 0; for (int i = 0; i < NUM_READS; i++){ sum += buffer[i]; } return (long)(sum / NUM_READS); } and my hall of fame and shame of sensors I've tried : [image: 1438411911101-img_20150801_083113.jpg]

20

Online

11.7k

Users

11.2k

Topics

113.1k

Posts