Forum Replies Created
-
AuthorPosts
-
Okay, sorry I am not very software savvy (especially when it comes to C++). Would you suggest just copying and pasting the Teros 11 sensor files and then just adjusting the copy to handle the Teros 12? I’m not very confident in my abilities to make a new module that captures everything correctly.
@srgdamiano would you know how to best approach this?
2023-06-16 at 3:45 PM in reply to: Compilation Error with Adafruit ADS1015 in Modular Sensors #17901I was! For some reason my Adafruit folder didn’t include the ADS1015.cpp and ADS1015.h files. I have my library up to date now though and it’s working great. Thanks!
Okay, gotcha. It’s of interest for me because I am looking at attaching multiple apogee pyranometers and pyrgeometers to the Mayfly that are all analog outputs. Because the pyrgeometers also require adjustments based on an internal thermistor reading, it would require more than 4 analog pins, so I am just seeing if I could get a decent resolution from the 10-bit ADC on some of the sensors while the rest operate on the 16-bit ADC.
Is the 3.3 V for the 10-bit ADC on the Mayfly a value that is fixed, or can it be changed? I don’t know if this is related or not, but does the ADC voltage come from the default analog reference, or is it completely different? Could the analog reference voltage be lowered, using the analogReference() function, giving us a higher resolution as a smaller voltage is spread over the same amount of bits? Again, I don’t know if that is what the ADC voltage is tied to, but it is something that was brought to my attention, and I wanted to see if that’s a possibility or not.
I’m wondering when the LTE Bee modules and RS-485 adapters will be in stock. Thanks!
I am very new to the world of electronics and circuit boards. I am a graduate student of civil engineering looking to deploy snow sensing stations using the Mayfly. They will be satellite stations around an existing piece of infrastructure that already has radio communication set up with Campbell Scientific data loggers. I don’t think the network needs to be anything too advanced. I believe I just need communication between two RF modules, sending data from the satellite station to the Campbell Scientific data logger. I’ve been reading manuals and watching videos, and they have been helpful, but it’s easy to get lost in the sea of information when you are just starting out.
The XBee Pro S3B is just what I have at the moment. I am not familiar with all the differences in modules and what the advantages and disadvantages are.
Okay, so this is what I have now for my sender code:
1234567891011121314151617181920212223242526#include <Wire.h>#include "Sodaq_DS3231.h"void setup(){pinMode(18, OUTPUT);digitalWrite(18, HIGH);Serial1.begin(9600);Wire.begin();rtc.begin();delay(3000);}void loop(){digitalWrite(8, HIGH);rtc.convertTemperature();Serial1.print(rtc.getTemperature());Serial1.println(" deg C");delay(1000);digitalWrite(8, LOW);delay(1000);}And this is what I have for my receiver code:
1234567891011121314151617#include <Wire.h>void setup(){pinMode(18, OUTPUT);digitalWrite(18, HIGH);Serial.begin(57600);Serial1.begin(9600);delay(100);delay(3000);}void loop(){Serial.println(Serial1.read());delay(3000);}I am still getting a -1 value printed to my serial port. If everything looks right on the coding side of it, then maybe I just need to double-check/reconfigure the modules in XCTU.
Hello, I am new to using Mayflies and XBee modules, so I’m hoping I can get some help here since the modules I’m planning on using are the 900 MHz XBee Pro S3B. Programming the modules correctly in the XTCU is something I don’t entirely grasp, but for the moment I will focus on programming the Mayfly.
Right now I am just trying to get two Mayflies to send/receive temperature measurements from the Mayfly’s built-in temperature sensor. This first bit of code is for the Mayfly making the measurement and sending the data. The green LED (pin 8) is just so I can easily tell that the Mayfly is running the loop when I have it plugged into a wall.
123456789101112131415161718192021222324#include <Wire.h>#include "Sodaq_DS3231.h"void setup(){Serial1.begin(9600);Wire.begin();rtc.begin();}void loop(){digitalWrite(8, HIGH);rtc.convertTemperature();Serial1.print(rtc.getTemperature());Serial1.println(" deg C");delay(1000);digitalWrite(8, LOW);delay(1000);}This next bit of code is for the Mayfly receiving the data and then printing it to the serial monitor so that I can verify that it is indeed receiving the data.
12345678910111213#include <Wire.h>void setup(){Serial.begin(57600);Serial1.begin(9600);}void loop(){Serial.println(Serial1.read());delay(250);}Right now my serial monitor just prints out a bunch of -1 values. Any help is appreciated. Thanks!
I am confused on how we get the 0.1875 conversion factor for the 16-bit ADC. Does it operate on a different voltage? In my mind, if the board operates at 3.3 volts and there are 65,535 bits, then you would be multiplying the analog reading by 3300 mV / 65,535 bits, which is 0.050 mV / bit.
I’m asking because I am looking at connecting two apogee thermopile pyranometers and two thermopile pyrgeometers to the Mayfly (which will require more than four analog pins), and I am curious if the 10-bit ADC would have sufficient resolution for some of the sensors. Once I know how many millivolts are represented in each bit, do I just compare the ADC resolution with the sensors’ sensitivity, or what is the best way to make sure that I am using an ADC that has a good enough resolution for my sensor?
-
AuthorPosts