SparkFun Forums 

Where electronics enthusiasts find answers.

Hardware or product specific questions are best asked here.
#229610
Hello!

I was wondering if I could get some help with an issue Im having.

I have a bunch of sensors (RTC, BME280, CCS811, SHTC3, ZioQwiic, AS7265X) that I am collecting data from and I am collecting them to print out in CSV format. I have done this and monitored the output through the serial monitor and it came out like this;
''
Date , Time , Humidity , Pressure , Altitude , Temperature , CO2 , TVOC , Humidity , Temperature , Soil Moisture , A , B , C , D , E , F , G , H , R , I , S , J , T , U , V , W , K , L
10/31/2021 , 10:33:48PM , 23 , 95550 , 492.2 , 25.84 , 400 , 0 , 32.29 , 23.38 , 1023 , 89.72 , 380.28 , 139.05 , 370.83 , 121.30 , 601.43 , 368.31 , 417.12 , 2086.99 , 118.34 , 136.83 , 84.38 , 45.90 , 34.69 , 74.43 , 37.51 , 23.59 , 18.79
10/31/2021 , 10:33:50PM , 22 , 99682 , 137.7 , 25.83 , 400 , 0 , 32.27 , 23.38 , 1021 , 89.72 , 380.28 , 139.05 , 370.83 , 121.30 , 602.17 , 368.31 , 417.12 , 2086.99 , 118.34 , 136.83 , 84.38 , 45.90 , 34.69 , 74.43 , 37.51 , 23.59 , 18.79
''
This was easy enough to do and I have attached the code I used for this, "SensorTestSerialMonitor". However, when I try to save the data on an SD card using the Openlog, I run into a few problems. First, none of the sensor data seem to print, I get no value. Second, I can't seem to able to print the updated data. I attached my attempt to the post, "LoggingData".
Any help would be very useful,

Thanks!
You do not have the required permissions to view the files attached to this post.
#229639
Not enough information to even guess.

Which Arduino are you using?
How have you wired it to OpenLog? Post a wiring diagram.
What do you expect to be printed?
What do you mean by "I can't seem to able to print the updated data"? What are "updated data" and how did you try to print them?
#229642
Sorry about that! I'm using a RedBoard qwicc and I have the Openlog and sensors all connected on the qwiic connection. I'm trying to print the csv text (I put a sample in the post). As you can see it prints data every 2 seconds. This works perfectly when I'm justing priniting on the Serial Monitor, but it doesn't work at all when I try to save the data on the Openlog. I attached the Serial Monitor code (that works) and the Openlog code (that didn't work) to the post.
#229647
when I try to print the sensor data in void loop it does not work.
How do you know? You have not provided any useful information about the problem. "Does not work" just tells us that you are unhappy with the result.

Explain what you expected to happen, and what happened instead.

Describe what steps you have taken to troubleshoot the problem, and what you discovered.

I looked at the code, but it is a mess. Start with one of the working logging examples, and modify it to log data from just one of your sensors. A good test is to collect and record some data, remove the card from the Arduino, read the file on a PC, and verify that you recover correct data in the expected format.
 Topic permissions

You can post new topics in this forum
You can reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

long long title how many chars? lets see 123 ok more? yes 60

We have created lots of YouTube videos just so you can achieve [...]

Another post test yes yes yes or no, maybe ni? :-/

The best flat phpBB theme around. Period. Fine craftmanship and [...]

Do you need a super MOD? Well here it is. chew on this

All you need is right here. Content tag, SEO, listing, Pizza and spaghetti [...]

Lasagna on me this time ok? I got plenty of cash

this should be fantastic. but what about links,images, bbcodes etc etc? [...]