Forum Replies Created
-
AuthorPosts
-
I sent you some code last year that should work with the Y511-A. I can’t tell what other changes you’ve made to the code, but in snippet you posted above, the address should be 0x01 on line 7, not 0x02.
When you did the address changing sketch, did you get a positive result using the serial monitor that showed the channel was changed to something other than 1? Sometimes there’s a glitch where you have to set the channel twice before the change actually happens and it stays on the new channel.
What sketch are you using for the logging sketch where you’re getting -9999 results from the sensor? Is the sensor connected to the logger with a 3.5mm headphone jack, or bare wires and a screw terminal board? Which grove jack are they connected to on the Mayfly? What’s the voltage selection jumper next to that Grove jack set to?
Did you do the example “b_address_change” sketch first, to change the sensor’s default channel from 0 to 1?
They are actually Turner Designs Cyclops-7F sensors that we use for measuring chlorophyll and phycocyanin (https://www.turnerdesigns.com/cyclops-7f-submersible-fluorometer). They are supported by the ModularSensors library and there’s more information about them here: https://envirodiy.github.io/ModularSensors/group__sensor__cyclops.html
That’s a good question, and something that I’m sure a few other people have accidentally done before, me included. Luckily the charger chip and the Mayfly v1.0 and v1.1 board should not be affected by having a solar panel connected with the wires reversed. I just did a test here with a Mayfly v1.0 and a v1.1, where I first connected a panel with the correct orientation. The battery was charging fine and the board performed properly. Then I connected the panel with the wrong polarity. The battery did not charge, but the Mayfly continued to work fine, because the battery was supplying all the operating voltage. Once I reconnected the panel with the right polarity, the battery started charging again at the same rate. So the charger chip or any of the other components on the board did not appear to be damaged during my test. But depending on what battery situation you’ve got or solar panel size, or Mayfly version, things may have been damaged. But if you station is operating properly after correcting the polarity issue and the battery is charging like normal, then I think you should be okay.
I’m not familiar with the new C model, but I did use the older, now-discontinued one awhile back. Without digging into the manual and the library too deep, I’m guessing it might be an I2C address issue? The old model used 0xB8 whereas the new one uses 0x38. So go into the ModularSensors/src/sensors folder and edit AOSongAM2315.cpp, find line 34 and change the address from 0xB8 to 0x38.
That’s not much current, so most relay boards should be able to handle that with no problem. I think that latching Grove board (https://www.seeedstudio.com/Grove-2-Coil-Latching-Relay.html) would probably work good for your situation so your Mayfly board could activate the relay 15 minutes before you want to sample, and then go back to sleep and it won’t have to hold a pin high to keep the relay closed. You can connect the relay board to the Mayfly via one of the unused Grove jacks (but make sure you set the voltage selection jumper next to that Grove jack to 5v since the relay board operates at 5v). I’m sure there are other latching relay boards out there that would work as well, but the Grove jack makes wiring it up convenient.
What’s the current draw of your heaters? There’s a variety of relays you could use, but I know several people have had good luck with various Grove-compatible relay boards, like the ones from Seeed. But your options are going to depend on how many amps of current the heater draws from the battery.
Have you tried a different microSD card? Either it’s a defective card or sometimes one or more of the pins in the microSD card socket can get damaged when inserting a card and cause a short-circuit inside the socket that prevents the Mayfly from operating properly. Are you using the onboard microSD socket on the Mayfly board, or the optional vertical microSD card board plugged into the 2×4 header next to the power switch?
Sensor values of -9999 for the Hyrdos21 CTD sensor mean that the Mayfly board isn’t hearing any communication from the sensor. Did you carefully follow all the directions in the Monitoring Station Manual (specifically section 6) for preparing and programming a Mayfly for use with the Hydros21? The sensor’s default SDI12 channel number needs to be changed from 0 to 1 (if you’re using one of our example ModularSensor sketches), and it must be connected securely to the 3.5mm headphone jack and connected to one of the Grove jacks labeled SDI-12. If you’re using a bare-wire CTD sensor, then doublecheck that you’ve got the appropriately-colored wires connected to the right terminals of the screw terminal adapter board (for power, data, and ground).
And the OBS-3 turbidity sensor doesn’t appear to be connected either, because with no sensor connected the low range value is usually around 60NTU and the high range is around 250NTU. The online Monitoring Station Manual doesn’t show instructions for how to connect an OBS-3 sensor anymore because they were discontinued 4 years ago. You’ll need either our old-style 6-terminal screw adapter board, or our newer multipurpose 6-terminal adapter board. That board gets connected to the Mayfly via the AA0-AA1 aux analog Grove jack. The wiring colors on the OBS-3 cable should be green, black, and shield all connected to ground. Red connected to 5V (be sure to move the voltage-selection jumper next to the Aux Analog Grove jacks to the 5v position (it ships in the default 3v position). The blue wires goes to D1 (or S1), and the white wire goes to D2 (or S2). If you’re using the newer multipurpose screw terminal adapter board, be sure the 3 solder jumpers on the back of the adapter board are soldered in the DEFAULT position (as shown in on of the product photos on the shop page for the adapter: https://www.envirodiy.org/product/envirodiy-grove-6-pin-screw-terminal-adapter-pack-of-5/)
-
AuthorPosts