-
Sara Damiano replied to the topic Calculated Variable Celsius to Fahrenheit DS18 in the forum Mayfly Data Logger 3 years, 10 months ago
-17966.20 does seem a little bit cold for most offices. Did you change your variable array so it has the
ds18Temp
named variable in it instead of the other new variable? If not update step will update that other new variable and not the one that you’re calculating F from, though adding the “true” to the getValue should force it to update a…[Read more] -
BrianJastram replied to the topic Calculated Variable Celsius to Fahrenheit DS18 in the forum Mayfly Data Logger 3 years, 10 months ago
Now I got it to be 33.8 F by replacing
float TempF = TempCFromMaxiumDS18_Temp*1.8+32 with
float TempF = true*1.8+32 -
BrianJastram replied to the topic Calculated Variable Celsius to Fahrenheit DS18 in the forum Mayfly Data Logger 3 years, 10 months ago
Awesome, thank you. That solved the error. I was wondering about my variable array because I saw the format of the variable array in the baro_rho_correction sketch and it was more bare bones.
Now I’m puzzling on the -17966.20 Degree F output I’m seeing in the serial monitor. I tried adding true to the ds18->getValue(true) but that didn’t work. -
Sara Damiano replied to the topic Announcement: New ModularSensors release v0.28.01 in the forum Environmental Sensors 3 years, 10 months ago
Thank you @mbarney! That’s all correct!
And just FYI, prior to version ~5 of PlatformIO, libraries were only updated in the PlatformIO registry when the registry crawler got to it and noticed the change. So sometimes it would be a day or two before you could see the updates using the
pio lib update
or similar commands. With the current ve…[Read more] -
Matt Barney replied to the topic Announcement: New ModularSensors release v0.28.01 in the forum Environmental Sensors 3 years, 10 months ago
Thanks @srgdamiano — and thanks so much for announcing the release here on the forum and sharing links to the release notes on GitHub!
Until somewhat recently, I didn’t fully grasp the connection between a ModularSensors GitHub release number and the version number in the PlatformIO library registry. To clarify for others who may be new to these…[Read more]
-
Sara Damiano replied to the topic Calculated Variable Celsius to Fahrenheit DS18 in the forum Mayfly Data Logger 3 years, 10 months ago
Does that make sense?
So, for example, in line 178 you created a variable for the DS18 (
Variable *ds18Temp = new MaximDS18_Temp(&ds18, "12345678-abcd-1234-ef00-1234567890ab");
) Since you’ve already done that, down in line 234 instead you can replacenew MaximDS18_Temp(&ds18, "12345678-abcd-1234-ef00-1234567890ab"),
with justds18Temp,
. And you…[Read more] -
Sara Damiano replied to the topic Calculated Variable Celsius to Fahrenheit DS18 in the forum Mayfly Data Logger 3 years, 10 months ago
In line 237 you don’t need the “new” or anything else with the calcTempF.
Replace
new CalcTempF(&ds18, "12345689-abcd-1234-ef00-1234567890ab"),
with justCalcTempF,
You’ve already created and named the variable, so you don’t need to re-create it, just reference it. Actually, since you’ve created all your variables with names, you should…[Read more]
-
BrianJastram started the topic Calculated Variable Celsius to Fahrenheit DS18 in the forum Mayfly Data Logger 3 years, 10 months ago
My problem is that during compilation I get the error
C:/Users/brian.jastram/Documents/GitHub/Dev/WXMMBME280OLEDFtoC/WXMMBME280OLEDFtoC.ino:237:9: error: expected type-specifier before 'CalcTempF' new CalcTempF(&ds18, "12345689-abcd-1234-ef00-1234567890ab"),…
-
Sara Damiano started the topic Announcement: New ModularSensors release v0.28.01 in the forum Environmental Sensors 3 years, 10 months ago
Yesterday, I put out a new release of the ModularSensors library: https://github.com/EnviroDIY/ModularSensors/releases/tag/v0.28.01
Here are some of the highlights of the changes:
- Fixed a large bug in the SDI-12 code that was introduced in v0.27.5 (2020-12-15)
- Added support for Turner Cyclops-7F submersible fluorometers
- Some minor…
-
Madbird replied to the topic Optical dissolved oxygen solutions? in the forum Environmental Sensors 3 years, 10 months ago
Hi Sara,
Just wanted to say thank you for your help and kind support, now everything is working as expected and just need to calibrate the Y4000.
Attached is a screenshot about the final results, I needed to twerk the delay time a little bit and make sure grounding overall is respected, but other than that everything worked fine.
Thanks again.
-
Sara Damiano replied to the topic How to save sketches in the forum Mayfly Data Logger 3 years, 10 months ago
If it’s not going back to 2000, your battery is ok.
Is the board still running the “now” or “adjust” sketch? If so, every time the board re-starts, it will reset to whatever time you told it in that program.
-
Cheryl Nolan replied to the topic How to save sketches in the forum Mayfly Data Logger 3 years, 10 months ago
Yes, I do and it’s inserted print side up. I guess it’s possible the battery is dead, although it’s new. I also just saw that the day, date and time are not changing. I last set it on Tuesday and left it plugged in and turned on and when I hit the Serial Monitor it’s still showing Tuesday 2/9/2021. Is that also a sign the battery is dead?
-
Sara Damiano replied to the topic How to save sketches in the forum Mayfly Data Logger 3 years, 10 months ago
Do you have a coin battery in the slot? Could that battery be dead? If you don’t have a battery in the coin slot or if it’s dead, then the clock will reset to Jan 1, 2000 every time the board is unplugged from the computer or battery
-
Cheryl Nolan started the topic How to save sketches in the forum Mayfly Data Logger 3 years, 10 months ago
I have uploaded the temperature, now and adjust sketches to my data logger a couple of times now. If I disconnect the board from the USB port of my computer it seems I lose them. I haven’t turned the board off, just unplugged the USB cord. Is this suppose to happen? I’ve been following along on the second workshop YouTube video and had to stop…[Read more]
-
Matt Barney replied to the topic Printing floats with MS_DBG() in the forum Mayfly Data Logger 3 years, 10 months ago
Ah, perfect – thanks Sara!
-
Sara Damiano replied to the topic Printing floats with MS_DBG() in the forum Mayfly Data Logger 3 years, 10 months ago
The Arduino print function defaults to two decimal places for a float. Normally, if you were using
Serial.print(float)
you could control the decimal places withSerial.print(float, decimalPlaces)
. But because of the way the MS_DBG macro is written, that won’t work. You’ll have to create a String from the number and then MS_DBG that:MS_DBG(Stri…
[Read more] -
Matt Barney started the topic Printing floats with MS_DBG() in the forum Mayfly Data Logger 3 years, 10 months ago
How can I specify floating-point precision when using MS_DBG()? For example:
float myFloat = 0.0001875; MS_DBG(myFloat);
prints:
0.00
-
John became a registered member 3 years, 10 months ago
-
mbullard became a registered member 3 years, 10 months ago
-
David Lutz wrote a new post 3 years, 10 months ago
Photo 1: Dartmouth undergraduate Emma Hazard configures a sensor station, July 2019.
A forest floor is a complex place. Throughout the depths of the litter and soil layers, dead organic material is broken down […]
-
Fascinating the network. Thankyou so much.
I was just wondering if you where planning on describing any of the stations in more detail?.
I’d be interested in how you did the powering, and what was taking the power. Though the whole software architecture of the data flow, (and challenges you found) would be fascinating 🙂 -
Excellent writeup, David. Thank you for sharing it!
-Matt
-
- Load More