-
Sara Damiano replied to the topic Calculated Variable Celsius to Fahrenheit DS18 in the forum Mayfly Data Logger 4 years, 10 months ago
The C-to-F is working for me with this calculation function:
float calculateTempF(void) { float TempCFromMaximDS18_Temp = ds18Temp->getValue(); float TempF = (TempCFromMaximDS18_Temp)*1.8 + 32; if (TempCFromMaximDS18_Temp == -9999) { TempF = -9999; } // Serial.print("DS18 Temperature in Celsius:"); //… -
BrianJastram replied to the topic Calculated Variable Celsius to Fahrenheit DS18 in the forum Mayfly Data Logger 4 years, 10 months ago
There should be no u in Maxium in line 194.
-
BrianJastram replied to the topic Calculated Variable Celsius to Fahrenheit DS18 in the forum Mayfly Data Logger 4 years, 10 months ago
Yes, thank you. Here it is.
/***************************************************************************** Based on logging_to MMW.ino Adapted by Anthony and Brian from source by: Sara Damiano (sdamiano@stroudcenter.org) Development Environment: PlatformIO Hardware Platform: EnviroDIY Mayfly Arduino Datalogger Software License: BSD-3.…
-
Sara Damiano replied to the topic Calculated Variable Celsius to Fahrenheit DS18 in the forum Mayfly Data Logger 4 years, 10 months ago
Hm. Can you post your current code? I’ll try running it. I have a DS18 here so hopefully once I attach things and start trying to run them whatever issue I’m missing will jump out at me.
-
BrianJastram replied to the topic Calculated Variable Celsius to Fahrenheit DS18 in the forum Mayfly Data Logger 4 years, 10 months ago
I tried just DS18Temp but that didn’t work.
The Celsius temperature from the DS18 is a reasonable 22.25 degrees. -
Sara Damiano replied to the topic Calculated Variable Celsius to Fahrenheit DS18 in the forum Mayfly Data Logger 4 years, 10 months ago
You can throw a
Serial.println(TempCFromMaxiumDS18_Temp);into the middle of your calculation equation just for testing. I can try testing your code myself later this afternoon. -
Sara Damiano replied to the topic Calculated Variable Celsius to Fahrenheit DS18 in the forum Mayfly Data Logger 4 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
ds18Tempnamed 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 4 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 4 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 4 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 updateor 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 4 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 4 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 4 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 4 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 4 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 4 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 4 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 4 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 4 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 4 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]
- Load More
Welcome to EnviroDIY, a community for do-it-yourself environmental science and monitoring. EnviroDIY is part of