Welcome to EnviroDIY, a community for do-it-yourself environmental science and monitoring. EnviroDIY is part of WikiWatershed, an initiative of Stroud Water Research Center designed to help people advance knowledge and stewardship of fresh water.
New to EnviroDIY? Start here

Gera

Forum Replies Created

Viewing 9 posts - 1 through 9 (of 9 total)
  • Author
    Posts
  • in reply to: SD Data Recording #13337
    Gera
    Participant

      Oh… Well I decided to leave that thread for later because I wanted to focus on getting something recorded on the SD card. I see now the mistakes I did. I would change to SdFat if it makes things better, I was trying to get something to work first. The code is now working for me. Thank you very much! The Filename issue was the only thing that I did not knew.

      in reply to: SD Data Recording #13335
      Gera
      Participant

        Yes, I am using Mayfly. I am using the built-in microSD card slot. My output I get the values in the serial monitor but nothings gets written into the SD card. The last question is kind of confusing to me, but what I am thinking is that you are asking me if I ever put the code of the SD card somewhere else in this code then yeah, but I still get nothing written into the card.

        in reply to: SD Card Recording Data Issue #13127
        Gera
        Participant

          I removed Sdfat from it and it did not work either. Should I try with sdFat library only?

          in reply to: SD Card Recording Data Issue #13122
          Gera
          Participant

            I am trying to get a txt file of the data from all four sensors to the SD card. It works when I use the first code for the DHT sensor only, the data is recorded inside the SD card as a txt file and I can open it when I connect the SD card into my laptop to see the contents of it. I use this
            to record all the data from the four sensors which is the second code I uploaded here and it does not work. A txt file is not created, and no data is collected. The code itself works. I can replace the “sensorsdata” with “Serial” instead, and it does display the data of the sensors in the monitor. But the code to make the txt file and place all the data of the four sensors in the SD card does not work.

            in reply to: PH Sensor Issue #12981
            Gera
            Participant

              Alright. I am getting the data right. Thank you for your help.

              in reply to: PH Sensor Issue #12979
              Gera
              Participant

                Also, with the code you provided, if I do not use the voltage divider I can calibrate it to 2.5V if I remove the *2 from the equation. I am first time coder and also the mayfly is something new for me as well, I am learning little by little how this thing works. So the calibration will be right if I use the code without multiplying the 2?

                in reply to: PH Sensor Issue #12977
                Gera
                Participant

                  Sorry for the late answer I had some stuff to do.
                  Okay so, the circuit is connected like this:

                  Voltage: V+ which is the 5V DC connected to SW5
                  Ground: Ground to Ground
                  Analog = PO or PH analog output is connected to the Analog pin A0
                  I used three resistors to test which one will be close to the voltage required, I will post a picture of the three of them.
                  The voltage output I get from your code displays more than 5V, I can’t calibrate it to 2.5V that way.
                  The circuit is guarantee is properly connected.

                  Also you have been helping me out a lot, I appreciate it.

                  in reply to: PH Sensor Issue #12974
                  Gera
                  Participant

                    The pin is USB5V, I tried using that SW5 as well. I tried using all those slots, all of them gave me the exact same value of 3.73V.

                    in reply to: PH Sensor Issue #12972
                    Gera
                    Participant

                      pin A0,

                      here is the code:
                      void setup() {
                      // initialize serial communication at 9600 bits per second:
                      Serial.begin(9600);
                      }

                      // the loop routine runs over and over showing the voltage on A0
                      void loop() {
                      // read the input on analog pin 0:
                      int sensorValue = analogRead(A0);
                      // Convert the analog reading (which goes from 0 – 1023) to a voltage (0 – 5V):
                      float voltage = sensorValue * (5.0 / 1023.0);
                      // print out the value you read:
                      Serial.println(voltage);
                      delay(300);
                      }

                    Viewing 9 posts - 1 through 9 (of 9 total)