-
MillerG replied to the topic Recording data from pressure sensors on an SD card in the forum Mayfly Data Logger 7 years, 6 months ago
Thanks Hank! You’re right, that was all we needed.
-
MillerG replied to the topic Recording data from pressure sensors on an SD card in the forum Mayfly Data Logger 7 years, 6 months ago
#include <SPI.h> #include <SD.h> #include <Wire.h> #include <Adafruit_MPL115A2.h> Adafruit_MPL115A2 mpl115a2; //Digital pin 12 is the MicroSD slave select pin on the Mayfly #define SD_SS_PIN 12 //The data log file #define FILE_NAME "DataLog5.txt" //Data header (these lines get written to the beginning of a file when it's created) #define…
-
MillerG replied to the topic Recording data from pressure sensors on an SD card in the forum Mayfly Data Logger 7 years, 6 months ago
Anthony,
The first code complied just fine. I will try and upload it to the Mayfly later and let you know how it goes. Thanks!
-
MillerG replied to the topic Recording data from pressure sensors on an SD card in the forum Mayfly Data Logger 7 years, 6 months ago
I don’t get an error code from the sketch. The sketch will upload and show data in the serial monitor. But, it will not log the data onto an SD card, which is my goal.
-
MillerG replied to the topic Recording data from pressure sensors on an SD card in the forum Mayfly Data Logger 7 years, 6 months ago
#include <Wire.h> #include <SparkFun_MS5803_I2C.h> #include <Wire.h> #include <Adafruit_MPL115A2.h> Adafruit_MPL115A2 mpl115a2; #include <Wire.h> #include "Sodaq_DS3231.h" char weekDay[][4] = {"Sun", "Mon", "Tue", "Wed", "Thu", "Fri", "Sat" }; //year, month, date, hour, min, sec and week-day(starts from 0 and goes to 6) //writing any…
-
MillerG replied to the topic Recording data from pressure sensors on an SD card in the forum Mayfly Data Logger 7 years, 6 months ago
#include <Wire.h> #include <SparkFun_MS5803_I2C.h> #include <Wire.h> #include <Adafruit_MPL115A2.h> Adafruit_MPL115A2 mpl115a2; #include <Wire.h> #include "Sodaq_DS3231.h" char weekDay[][4] = {"Sun", "Mon", "Tue", "Wed", "Thu", "Fri", "Sat" }; //year, month, date, hour, min, sec and week-day(starts from 0 and goes to 6) //writing any…
-
MillerG replied to the topic Recording data from pressure sensors on an SD card in the forum Mayfly Data Logger 7 years, 6 months ago
Anthony,
I have run that Sample Code but do not have success when I try to merge it in with my code.
This is my current code:
#include <Wire.h> #include <SparkFun_MS5803_I2C.h> #include <Wire.h> #include <Adafruit_MPL115A2.h> Adafruit_MPL115A2 mpl115a2; #include <Wire.h> #include "Sodaq_DS3231.h" char weekDay[][4] = {"Sun", "Mon", "Tue",…
-
MillerG replied to the topic Recording data from pressure sensors on an SD card in the forum Mayfly Data Logger 7 years, 6 months ago
Anthony,
I have run that Sample Code but do not have success when I try to merge it in with my code.
This is my current code:
-
MillerG replied to the topic Recording data from pressure sensors on an SD card in the forum Mayfly Data Logger 7 years, 6 months ago
Anthony,
I have run that Sample Code but do not have success when I try to merge it in with my code.
This is my current code:
#include <Wire.h>
#include <SparkFun_MS5803_I2C.h>#include <Wire.h>
#include <Adafruit_MPL115A2.h>
Adafruit_MPL115A2 mpl115a2;#include <Wire.h>
#include “Sodaq_DS3231.h”char weekDay[][4] = {“Sun”, “Mon”,…[Read more]
-
MillerG started the topic Recording data from pressure sensors on an SD card in the forum Mayfly Data Logger 7 years, 7 months ago
Hello,
I have a Mayfly data logger and am looking for some advice on how to log data from 2 pressure sensors onto an SD card. I am a novice in the data logger community so please, bear with me.
I have a Sparkfun MS5803-14BA Breakout aqueous pressure sensor and an Adafruit MPL115A2 I2C Barometric pressure sensor. I am looking to get the data…[Read more]
-
MillerG became a registered member 7 years, 7 months ago