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
  1. Home
  2. Troubleshooting
  3. Watermark arduino 3.3 headache

Watermark arduino 3.3 headache

Scheduled Pinned Locked Moved Troubleshooting
5 Posts 3 Posters 3.4k Views 3 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • E Offline
    E Offline
    ecabanas
    wrote on last edited by
    #1

    Hi all,

    I'm programming a watermark sensor and an arduino 3.3v. I tried a lot of sketches and connections and did not work.

    Anybody used this sensor? does anybody has docs or sketch or pictures connecting...?

    I'm desperate!!!

    thank's

    Eduard

    AWIA 1 Reply Last reply
    0
    • E ecabanas

      Hi all,

      I'm programming a watermark sensor and an arduino 3.3v. I tried a lot of sketches and connections and did not work.

      Anybody used this sensor? does anybody has docs or sketch or pictures connecting...?

      I'm desperate!!!

      thank's

      Eduard

      AWIA Offline
      AWIA Offline
      AWI
      Hero Member
      wrote on last edited by
      #2

      @ecabanas Reading from what is published on the watermark sensors it is "resistance" based. E.g. a couple of electrodes in a nice housing and corrosion resistant. Standard method of reading these sensors is determine resistance (Ohms law) by applying a (AC = reversing polarity) current and measuring the voltage over the sensor. Most of the moisture sketches are written this way. You need to know the "resistance / moisture curve" of the sensor.

      Can you show us what have and tried?

      1 Reply Last reply
      0
      • E Offline
        E Offline
        ecabanas
        wrote on last edited by ecabanas
        #3

        @AWI said in Watermark arduino 3.3 headache:

        how us

        Hi @AWI

        I tryied this hardware as a watermark: WATERMARK 200SS from http://www.irrometer.com/sensors.html

        My logger is a Sodag One based on arduino:
        http://support.sodaq.com/sodaq-one/

        I followed this schema to wire it because the One is working at 3.3V

        0_1491590848328_upload-39c6ebc4-f302-4310-9652-c23bc66734b4

        and this sketch

        I don't know if you need more info about it.

        Thank's

        Eduard

        //Tabular Serial Printing  of Leaf Sensor Signal Data - AgrHouse.com
        
        const int LeafSensor1=0;  //Leaf Sensor on Analog Pin 0
        
        void setup()
        {
          Serial.begin(9600); //Start Serial Port with Baud = 9600
        }
        
        void loop()
        {
          Serial.println("Leaf Sensor Arduino Data Logger");  // AgriHouse.com 
          Serial.println("\nAnalog Pin #\tRaw Value\tPercent");
          Serial.println("------------------------------------------");
          for (int i = 0; i < 10; i++)
          {
            int val = analogRead(LeafSensor1);           //Read Leaf Sensor Pin A0
            
            int per = map(val, 0, 1023, 0, 100); //Convert to Percentage
          
            Serial.print("A0\t\t");
            Serial.print(val);
            Serial.print("\t\t");     
            Serial.print(per);           //Print Percentage Analog Value
            Serial.println("%");         //Print % Sign and Newline
            delay(1000);                 //Wait 1 second, then repeat
          }  
        }```
        AWIA 1 Reply Last reply
        0
        • E ecabanas

          @AWI said in Watermark arduino 3.3 headache:

          how us

          Hi @AWI

          I tryied this hardware as a watermark: WATERMARK 200SS from http://www.irrometer.com/sensors.html

          My logger is a Sodag One based on arduino:
          http://support.sodaq.com/sodaq-one/

          I followed this schema to wire it because the One is working at 3.3V

          0_1491590848328_upload-39c6ebc4-f302-4310-9652-c23bc66734b4

          and this sketch

          I don't know if you need more info about it.

          Thank's

          Eduard

          //Tabular Serial Printing  of Leaf Sensor Signal Data - AgrHouse.com
          
          const int LeafSensor1=0;  //Leaf Sensor on Analog Pin 0
          
          void setup()
          {
            Serial.begin(9600); //Start Serial Port with Baud = 9600
          }
          
          void loop()
          {
            Serial.println("Leaf Sensor Arduino Data Logger");  // AgriHouse.com 
            Serial.println("\nAnalog Pin #\tRaw Value\tPercent");
            Serial.println("------------------------------------------");
            for (int i = 0; i < 10; i++)
            {
              int val = analogRead(LeafSensor1);           //Read Leaf Sensor Pin A0
              
              int per = map(val, 0, 1023, 0, 100); //Convert to Percentage
            
              Serial.print("A0\t\t");
              Serial.print(val);
              Serial.print("\t\t");     
              Serial.print(per);           //Print Percentage Analog Value
              Serial.println("%");         //Print % Sign and Newline
              delay(1000);                 //Wait 1 second, then repeat
            }  
          }```
          AWIA Offline
          AWIA Offline
          AWI
          Hero Member
          wrote on last edited by AWI
          #4

          @ecabanas Your sketch and circuit look fine to me. I don't know the Sodaq One, but should the line
          const int LeafSensor1=0; //Leaf Sensor on Analog Pin 0 not refer to pin "A0"...
          const int LeafSensor1=A0; //Leaf Sensor on Analog Pin 0 ?

          1 Reply Last reply
          0
          • P Offline
            P Offline
            pierrot10
            wrote on last edited by
            #5

            Hello,
            I hope your are still around about this topic.

            I very very oft read that we need to take twice the measure by inversing the polarity. As say the doc

            A special circuit is needed to measure the electrical resistance of the Watermark sensor. DC currents
            must not be allowed to flow through the wet part of the circuit, or else irreversible reactions
            will occur and spoil the readings. AC excitation avoids these problems, by reversing the polarity
            of the current many times per second, so that no net reaction takes place at either electrode
            

            In your above sketch, you do not inverse the polarity and it's look like you read 10 time with the same polarity.

            However, in the above schema, it look like you power (3.3 at the sensor) once the WATERMAK, and then 3.3 at the resistance.

            Could you explian me your sketch code? And what does the capacitor?

            Thank a lot..

            1 Reply Last reply
            0
            Reply
            • Reply as topic
            Log in to reply
            • Oldest to Newest
            • Newest to Oldest
            • Most Votes


            24

            Online

            11.7k

            Users

            11.2k

            Topics

            113.1k

            Posts


            Copyright 2025 TBD   |   Forum Guidelines   |   Privacy Policy   |   Terms of Service
            • Login

            • Don't have an account? Register

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