Forum Replies Created
-
AuthorPosts
-
SJ-12 is for enabling the pullup resistor on D10. SJ-1 is for changing the square wave alarm signal from the RealTimeClock from A7 (default) to D10. As stated on the Jumper Settings page (https://envirodiy.org/mayfly/hardware/jumper-settings/), you should never use SJ-12 if you’ve also changed SJ-1 to D10. The two can’t be used together or it will cause problems.
So remove your solder bridge on SJ-1 and put it back to the default setting by connecting the middle pad to the one labeled “A7”. Then have your sketch look for a LOW pulse on D10 by using this line:
attachInterrupt(2, tip, LOW);
Then anytime you get a tip by the bucket (assuming you connect D10 and GND to the two NormallyOpen poles of you rain gauge switch, the Mayfly will go into the “tip” function. If you still need help, I can post an entire sketch for how to sleep the Mayfly all the time and only wake up briefly whenever there’s a tip, record the tip, then go back to sleep.
We use sensors from a variety of companies, and most times every sensor on our stations will come from a different company. This is because we like to mix and match the sensors for the exact needs of the location and research questions being answered. What parameters are you interested in measuring?
I have used several solar radiation sensors with my Mayfly boards, so it’s possible, however it really depends on what the excitation voltage of the sensor is, and what the analog signal’s output voltage is. Can you tell me the make and model of the sensor, or at least what are the power requirements and output voltage?
The temperature compensation sensor for the Maxbotix sensor doesn’t interact with the Mayfly at all. It’s connected directly to the ultrasonic sensor’s pin #1, so the Mayfly doesn’t need to know anything about it. All the Mayfly does is capture the serial data that comes from the sensor’s data pin.
I’ll be away from my desk most of the day doing remote sensor station installation, but when I get back to my lab I’ll try to take some pictures of the wiring setup for my ultrasonic stations and post those along with a description of how to hook up the cables.
The Mayfly boards and starter kits are fully stocked on Amazon, as well as the protoshield and a new listing for the Grove-to-3.5mmStereo adapter board we use for connecting Decagon Devices sensors to the Mayfly: https://www.amazon.com/dp/B0725Y7B4B
The SIM808 module on the FONA must be powered directly from a 3.7v LiPo battery because it draws around 500mA during data operation, and can have occasional draw of up to 2 amps during a TX burst. The SIM808 module also requires a power source of 4.0v nominal, with a minimum of 3.4v and a max of 4.4v. So powering it directly from a 3.7v Lipo is the only reasonable option.
This is the reason there are two JST “LiPo Batt” jacks on the Mayfly. If you want to use a FONA with a Mayfly, you’ll need to connect a LiPo battery directly to one of the JST jacks labeled “LiPo” on the Mayfy. Then use a JST jumper to connect the JST jack on the FONA’s to the Mayfly’s other “LiPo” jack.
I’ve attached a picture of a JST jumper. We use GPRSbee cellular modules with almost all of our deployments and they come with one of these jumpers. You can make you own jumper by splicing together 2 standard JST pigtail cables.
Be sure to connect the “Vio” pin on the FONA to the 3.3v rail of the Mayfly in order to properly configure the logic level shifting of the FONA’s circuitry.
If you’re looking for the easiest 2G option, I highly recommend the GPRSbee (https://shop.sodaq.com/en/gprsbee.html). It plugs directly into the Bee socket on the Mayfly. Just add the JST power jumper and the u.fl antenna (included) and it’s ready to go. I’ve been using dozens of them for several years now and I really like them.
Attachments:
You don’t have to post the actual sketch here since it likely contains the unique URLs, registration tokens, and UUIDs that we’ve developed for transmitting the data to the online database portal. We can contact you directly through email to get the code and can then take a look at it to see what’s causing the instability. I have some ideas about what might be causing your problem. Once we figure that out, I can post an update here for anyone else who might be having similar issues.
Mayfly boards have been back in stock on Amazon since earlier this week. The starter kits should be available on Amazon next week.
What logging sketch was your Mayfly running? Was this a sketch that you wrote yourself, or is it one we provided to you with the board?
Depending on the browser you’re using, your save options might be worded differently in the drop down box when you right-click on a link. You could also just go directly to the library.zip file page: https://github.com/EnviroDIY/Libraries/blob/master/libraries.zip
and then click the gray “Download” button on the lower-right side of the page. Note that this is different than using the green “Clone or Download” button on the previous page. Because our library repository is linking to submodules and not actual files, that green button doesn’t work, which is why you have to download the actual “libraries.zip” file. -
AuthorPosts