Show Posts
|
|
Pages: [1]
|
|
3
|
Using Arduino / Programming Questions / Sequential file naming on SD card
|
on: January 27, 2013, 09:17:30 am
|
|
I'm struggling here a bit. I want to write a fresh file each time the SD card is inserted. e.g. data0.csv data1.csv data2.csv
so I thought that something like count++ fileName="data" & count & ".csv" could work. but this approach looks to be rubbish. What is the correct approach? Yours Simon M.
|
|
|
|
|
6
|
Development / Other Hardware Development / Re: Altium MEGA shield template
|
on: July 23, 2012, 06:04:14 am
|
|
Umm, didn't show as I'd hoped. Now I'm awake, I've redone with the supplier link on the schematic. Used Samtec parts:
SSQ-106-03-G-S /LL SSQ-106-04-G-S /LL
SSQ-108-03-G-S /LL SSQ-108-04-G-S /LL
SSQ-110-03-G-S /LL SSQ-110-04-G-S /LL
SSQ-118-03-G-D /LL SSQ-118-04-G-D /LL
SSQ-106-02-G-D /LL SSQ-106-03-G-D /LL
Arrow have the biggest range. Yet to find out from Newark if there database is out as as it has these parts as 2mm parts.
|
|
|
|
|
9
|
Using Arduino / Programming Questions / Re: Memory creep any suggestions?
|
on: October 30, 2011, 04:32:44 am
|
|
I have used the #include <MemoryFree.h> 'utility' and indeed when I go below 240 ish it dies. Why does is number go down over time? is the SP overflowing? I do expect the amount to drop through the program execution, but I can't understand why on each loop it gets less & less? I do use arrays for averaging but these are reused on each full loop through. I might resort to storing raw data and calculate the other stuff when called. Will clearing the arrays save memory, or will filling the arrays at boot to their max stop fragmentation?
Yours Simon M.
|
|
|
|
|
10
|
Using Arduino / Programming Questions / Memory creep any suggestions?
|
on: October 29, 2011, 02:33:31 pm
|
|
I know my listing is a mess but it is work in progress. It is yet another weather monitor with a simple web printout of current status, with averaging function on all readings, saved to SD card with time stamp.
I seem to be suffering memory creep thus my program and data is crashing into each other. how can I reduce the overheads? I noticed that Long's and floats use 4 bytes each. I could use strings more but not sure if this would save much? (or even how!) Yours Simon M.
|
|
|
|
|