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

Richard

Forum Replies Created

Viewing 10 posts - 1 through 10 (of 11 total)
  • Author
    Posts
  • in reply to: Water level monitor with a Mayfly. #2293
    Richard
    Participant

      Hi
      Further to my last little input I have managed to get the code to compile and run on my MAYFLY with a MB7389 sonar by changing the #include <Sodaq_PcInt_Mod.h> to #include <Sodaq_PcInt_PCINT0.h> and
      #include <SoftwareSerialMod.h> to #include <SoftwareSerial_PCINT12.h>
      also a few lines down form there I changed
      SoftwareSerialMod sonarSerial(11, -1); to SoftwareSerial sonarSerial(11, -1);
      It all seems to be working fine after making these changes but wonder if I may be doing it wrong or potentially going to have problems.
      Also the way I have it now seems to make the samples get taken every two minutes and I got the impression from the code it would be every minute, am I missing something??

      in reply to: Water level monitor with a Mayfly. #2292
      Richard
      Participant

        Hi
        I tried to use this code but it wouldn’t compile due to the #include <Sodaq_PcInt_Mod.h>

        #include <SoftwareSerialMod.h> libraries not being found. I looked and dowloaded the entire package of libraries from the GITHUB page but still couldn’t find it. any ideas??

        in reply to: Mayfly GPRSbee #1720
        Richard
        Participant

          I am using GPRSbee Rev.4

          in reply to: Mayfly GPRSbee #1717
          Richard
          Participant

            Thanks for the link, I was more hoping you could help more with code for making the most of the mayfly when it comes to turning the GPRSbee on off.
            I am trying to make the battery measurement code send the data via the GPRSbee.
            I want to achieve something along the lines of this.
            1. Take a measurement of the battery on A6 and convert it to volts
            2. Turn on and initialize a connection using the GPRSbee.
            3. Upload the converted measurement via some data portal.
            4. Shut down The GPRSbee.
            I’m struggling to find a way to make this happen that will compile.
            If I work it out I’ll post it but until then any help would be really appreciated.
            Cheers

            in reply to: Water level monitor with a Mayfly. #1714
            Richard
            Participant

              Hi
              It’s been a little while since I have had a chance to spend any time on this project but over the last few days I made some time.
              Thank you to Danny Waz for your suggestions as they confirmed my suspicions and I have removed the TTL-232 from the Circuit and I am just inverting in code.
              I currently have just fudged together all the code that has been provided in the Mayfly software page and have been able to get a file written to the sd card on the Mayfly that contains Sample Number, Battery volts, Temperature from RTC, Millimeters from Maxbotix 7360 Serial( I know this is not the best choice and will change in the next iteration), Year, Month, Day, Time.
              I have attached the code below for anyone who may want to use it and to hopefully get some ideas on how to improve it, (I dont really know how to code and cant take any credit for the code good or bad)
              Now that I have the data I want coming in,my next goal is to send it using a GPRSbee, any advice or help here would be really appreciated as it’s something I have never had any experience with.
              Cheers
              Rich

              in reply to: Water level monitor with a Mayfly. #1675
              Richard
              Participant

                Hi
                As usual Thanks for the support, I have added an RS232-to-TTL converter inline between the board and the mayfly and have had a go with the code you posted with only average success I seemed to be getting every second measurement as a 0 reading and some unreliable repeat-ability.
                As I was dubious about the cheap converter I had added to the circuit I decided to try some code that worked well as a software serial option and just turned off the software converter. It seemed to be really good so I’ll go with that. I’ll attach it below for anyone else that may be playing around with these things. I agree the other 2 sensors you mention would be better for the job but I guess I’ll make do with what I have for now.
                The example below can be used with a RS232 or TTL just by changing the true/false statement. true if you are using an RS232, false for TTL.

                in reply to: Seeeduino Stalker v3.0 discussion #1628
                Richard
                Participant

                  Awesome, I will be one of the first to buy one once they are back in stock.
                  The 10 11 pin issue is what seems to have made things screwy all along, Now to go find some free pins, using pin 8 seems to make it cycle through the sleep awake about 4 times before getting another sample. It may still be broken but at least it’s different broken 😉

                  in reply to: Seeeduino Stalker v3.0 discussion #1626
                  Richard
                  Participant

                    Hi
                    I have just double checked the jumpers I soldered across P2 and P3 as you say to make sure it was not some sort of dry joint problem and all seems well.
                    The problem I am having it seems is that the software serial is not playing ball after the first sleep, wake up cycle. I have just tried the re allocating sonar onto pin 8 instead of pin 11 and got totally different behavior so will try some more things and give an update. All of the info I can find pointed to pin 11 being free as was pin 8 so I wonder if I am Missing something.

                    in reply to: Seeeduino Stalker v3.0 discussion #1619
                    Richard
                    Participant

                      Ok so I have the sensor reading well with the code above and I have a sample of the seeduino datalogger that also seems to work but I cant seem to embed one code to the other and have it keep working. it just seems to put the poor little arduino into a coma after taking and writing one sample to the SD card.
                      Ill attach the datalogger code and hopefully some clever person out there can help.
                      this code works well on its own.

                      in reply to: Seeeduino Stalker v3.0 discussion #1617
                      Richard
                      Participant

                        Hi
                        Thanks for the help, I really appreciate the well commented code as I really have no idea whats going on without it.
                        I tried your code and perhaps I was having data issues because Of something I did or because of a different sensor but I was getting quite a few out of sync readings that would throw a spanner in the works for using the data later.
                        I have had really good data coming from the code attached here, hopefully between the two options someone may get some benefit out of these options.

                      Viewing 10 posts - 1 through 10 (of 11 total)