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

Scott Murrison

Forum Replies Created

Viewing 10 posts - 1 through 10 (of 14 total)
  • Author
    Posts
  • in reply to: Mayfly and Maxbotix MB7386 Range Issue #12299
    Scott Murrison
    Participant

      I thought about that too. I’m not sure if there is a way to check. The model number says it is supposed to be a 10 meter sensor. And the reading shows 9999 when the object is out of range. This is typical of the 10 meter models. I believe the 5 meter models show 4999 when out of range. Maxbotix isn’t sure what the problem is. They sent me an RMA to send it in and have it evaluated. Hopefully doing so finds the issue.

      in reply to: Connecting to the Internet #12281
      Scott Murrison
      Participant

        Thank you Heather.

        in reply to: Connecting to the Internet #12279
        Scott Murrison
        Participant

          FYI, the link to the data portal is not working. Or at least it isn’t working for me.

          in reply to: Connecting to the Internet #12278
          Scott Murrison
          Participant

            Sara

            Thanks for the information on the data portal. I would like to use it for the simplicity, but I’m sure my clients would not like to have their data publicly available.

            I have the database set up and the php script working to add the data to the database. Now I just need to get the sensor data sent to the database. I was confused on how Shannon’s code worked. After her explanation I think I have an idea. Basically my sensor code needs to be changed to create a string with the website address and the sensor data, and time stamp. I have spent several days reading examples trying to figure out how to generate the script. Finally last night I found one that I believe does what I need it to. Now I just have to sit down and figure out what parts of the existing code I don’t need and remove it. This is all way above my pay grade, so anything I come up with will not look right and probably won’t be the most efficient way to tie everything together. Add that to my lack of knowledge and that always makes if fun to try and figure out where the problems are.

            Thanks for the help.

            Scott

            in reply to: Connecting to the Internet #12263
            Scott Murrison
            Participant

              I’m 99% sure most if not all of this code is yours or someone associated with Envirodiy. If you can’t tell, I know very very very little about arduinos. I have a friend that put this together for me and I pointed him to this website for guidance. I’m sure he used the copy and paste method for coding. He didn’t have time to work with the xbee radios, so I took the code and changed things to serial1 to try and get the communication to work. It works, but obviously it isn’t the way things should be done. I have the V0.3 boards. I got them when you first went live with them. They are great boards and fun to play with.

              The plan is to take the sonar reading, battery voltage, and date string send it to the base unit then have the base unit send it to the website and MySQL database. I would also like to save the string to an SD card at the base station. This way I have a backup if the network should go down.

              You mentioned having a table for each sensor in the database. I could have up to 15 sensor loggers communicating to the base station in 1 to 5 minute intervals for one client. Is it possible to combine the strings from all sensor loggers into one and send it to one table in the database? The sensors will be setup on individual ponds, then the report would look like:
              Pond 1, Pond 2, Pond 3, etc.

              These could probably be inserted into separate tables in the database then generate a report to combine them by date read.

              This is getting way over my head. I appreciate all the help and code examples you are willing to share.

              Scott

              in reply to: Connecting to the Internet #12257
              Scott Murrison
              Participant

                Ok, so it is the code on my sensor/logger that needs to be changed. Do you by chance have any example code that I can look at to try and figure out where I need to go? The sensor is an ultrasonic sensor. I have attached the code I am using for the sensor. This code will change as I only want to send data one time per day.

                in reply to: Connecting to the Internet #12255
                Scott Murrison
                Participant

                  Ok, I can post data to the database via the URL, so the problem is somewhere in the Arduino code. I’m using your code above at my base. I changed all the required parameters to my network settings. It appears the Arduino Ethernet is communicating with the website as the php script is inserting the id and timestamp in the database table. I’m a little confused with the Arduino code. The php script is looking for “thisData” from the Arduino. Is that the string that is sent from your code above?

                  Thanks for the help.

                  Scott

                  in reply to: Connecting to the Internet #12253
                  Scott Murrison
                  Participant

                    Shannon

                    I got your code to communicate with MySQL database. I have a table set up for ID(auto-increment, primary key) TimeStamp, and thisData. The auto increment ID and TimeStamp work, but the data is not populating the table, column is there, it is just blank. I do get data on the serial monitor. I’m guessing the problem is in the php file of the database setup.

                    Any Ideas?

                    in reply to: Connecting to the Internet #12250
                    Scott Murrison
                    Participant

                      Shannon

                      Can you tell me where you source your cellular modules?

                      Thanks

                      Scott

                      in reply to: Connecting to the Internet #12224
                      Scott Murrison
                      Participant

                        Shannon

                        Thank you very much. This is exactly what I am wanting to do. I appreciate your willingness to help.

                        Scott

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