-
Notifications
You must be signed in to change notification settings - Fork 1
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
add sensors #13
Comments
@jerabaul29 There are two options to include the other environmental sensors.
The first will be difficult, as the I2C sensors take quite a bit of time to be read. I think the maximum speed of reading is about 40 ms. So in that time, I don't think you can actually record the other sensors I guess as the Arduino will be busy? Alternatively, after each 15 min records of the vibration signals, the sensors get 1 minute to get as many samples as possible, take the average and write it to a file. I was thinking of adding the exact same to the "LoggerWavesInIce_InSituWithIridium". So first it logs the IMU, after IMU it records for a minute or two the environ. sensors. Then sends the GPS + environ.sensor data through Iridium and continues as normal. What do you think? Considering the following probes: |
I think it may / should work with simultaneous logging, because the ADC logging is interrupt based, so it will happen in the background even if the board is busy with something else, that's the beauty of interrupt based actions :) . For each of your external sensors, can you provide a link to the GitHub repo or other explaining how to use it? |
So regarding these additional sensors:
|
Pressure: Temperature: Sonar: I have a Sonar sensor here, but haven't had time yet to test it yet due to covid. https://learn.adafruit.com/adafruit-tca9548a-1-to-8-i2c-multiplexer-breakout |
Great, I will write some software for all of these in the days to come then :) . Do you have some working arduino sketches where you already use these / could you upload it on the repo? Btw, the sonar looks really nice. Do you think it may be possible to measure ice thickness using it? Do you have any more information about that? Or do you plan for another use? :) |
I do. It is functional, but looks pretty inefficient. I had to re-initialize the sensors in the loop, otherwise I was getting very weird values when using the GPS breakout. I tried to reset the TCA9548A instead but that didn't help. That is the aim of sonar, but have only been able to try in air (couldn't find the speed of sound setting). It started drifting like crazy when placed under a small angle. Maybe it won't do that in water but have to check that. |
Ok, sounds good! I do not have all the hardware, so may be a bit back and forth getting it to work with code development from my side and test from yours :) . |
Btw, so fun that you choose some equipment from BlueRobotics. We have a ROV from them and we are very happy with it :) We use it to take PIV pictures under the ice to evaluate turbulence. That's still challenging though ^^ . |
That is impressive, in the field? PIV/PTV is already complex in the laboratory. I've wanted to do the same in the field, but there is no ice around Australia unfortunately ;) I've picked BlueRobotics as they are reasonably cheap, provide good specifications and perhaps most important is that they are waterproof :) |
This is exactly what we have been doing: we use a compressor to generate the bubbles. There are challenges, but we got some images a few months ago. :) Yes. Btw, which sensors are having the same address and conflicting? Or do you want to have several temperature sensors in use? |
Yes, multiple temperature sensors :) |
Ok :) How do you want to read them? One after the other / all at the same time / other? |
And how many temperature sensors do you want to use? |
What is easiest is good enough. Just need to get an average reading over a given period of time. If it can run simultaneously with vibration measurements, then an average over 15 minutes would be great. Generally one reading a second is already more than enough as we can't use these sensors to measure small scale turbulence anyway... I was thinking of 3 temperature sensors, but can be 4 as well (I won't be giving every instrument that many sensors though). Two in the air, one in the ice, the other underwater. The length of the I2C wires might be an issue for the water measurements though if the ice thickness is large. I still need to find a good way to protect the air measurements from solar radiation. Given the price, perhaps it is more accurate to just have two probes stuck out of the side of the Pelican case and orientate it in such a way one is always in the shadow. Anyway, those are different types of issues :) |
The temperature sensors should be part of the CHR data now. I will add pressure / sonar. How many pressure sensors do you plan on adding? |
CHR data? Btw, how are they connected or did you describe that already somewhere? One pressure sensor should be enough :) |
CHR = the char data. I.e. this part of the data in the output of the python parser: Vibration_Logger/material_Jean/BinarySdDataParser/script_perform_parsing.py Lines 55 to 57 in c35d6c1
|
I just tested the sonar, which works well. Have to ask the BlueRobotics techs for more info how it works exactly. This one works on serial: I used the following sketch to get correct output, only tried it on the mega (didn't bring a due) at 3.3V input voltage:
It consumes quite a bit of power though. Any way to turn it on and off? |
@jerabaul29 add an explanation / example about how to add sensors.
The text was updated successfully, but these errors were encountered: