Forum Replies Created
-
AuthorPosts
-
So I think that I’m out of luck on this sensor, based upon what you just said. I’ll have to abandon this sensor.
thank you for all your help and sorry again for the miscommunication.
I apologize for not saying that from the get go. My knowledge with all of this is rather limited, to be honest. I thought you were just trying to talk between the Sensor and the MayFly. The current library that I am using is on GitHub at <https://github.com/NorthernWidget-Skunkworks/Walrus_Library>
The previous is the code that they gave me to begin with. It does work when directly connected to the MayFly and Arduino Uno. IT does also work on the Arduino Uno (5v) when using the 3m cable.
1234567891011121314151617181920212223242526// Include the Walrus library#include "Walrus_I2C.h"// Declare variables -- just as stringsString header;String data;// Instantiate classWalrus myWalrus;void setup(){// Begin Serial connection to computer at 38400 baudSerial.begin(38400);// Obtain the header just onceheader = myWalrus.getHeader();// Print the header to the serial monitorSerial.println(header);}void loop(){// Take one reading every (10 + time to take reading) secondsdata = myWalrus.getString();// and print it to the screenSerial.println(data);delay(10000); // Wait 10 seconds before the next reading, inefficiently}They are good values and slightly vary. I have verified the output with the MPL115A2 sensor that I have and the values are the same.
They said that the 3m cable works great with their data loggers on I2C protocol, but yes it would make sense to use an RS485 to just be sure that the signal won’t be lost over the length.
Is there anything strange about the fact that the walrus sensor does output good values when I have it connected directly (via grove connector) to the MayFly? And of course it is only when I connect it via the 3m cable that the values do not output.
It sounds as if Northern Widget is not willing at this time to do any more trouble shooting with me, so this may be the end of the line with the sensor. It’s just to bad, since I was ready to deploy these and the MayFly is working great with the barometric sensor I was deploying as well.
Thank you for all the help and I’ll let you know what happens on this.
See the link below to the firmware that they say is on the sensor. It is probably the same firmware you are looking at. I am requesting also the I2C registers and commands.
https://github.com/NorthernWidget-Skunkworks/Project-Walrus/tree/master/Firmware/Walrus_I2C_5BA
I will contact Northern Widget to see if they will send the firmware that they uploaded for verification on this end.
Ran the second bit of code and the scanner code. The scanner codes serial output is at the end.
See attached
Attachments:
It’s reading something, which is a lot better than before, as it read nothing before.
-
AuthorPosts