Home
JAQForum Ver 24.01
Log In or Join  
Active Topics
Local Time 15:28 01 Jul 2025 Privacy Policy
Jump to

Notice. New forum software under development. It's going to miss a few functions and look a bit ugly for a while, but I'm working on it full time now as the old forum was too unstable. Couple days, all good. If you notice any issues, please contact me.

Forum Index : Microcontroller and PC projects : Logging data

Author Message
Benzol
Regular Member

Joined: 07/01/2015
Location: Australia
Posts: 64
Posted: 09:06pm 20 Mar 2016
Copy link to clipboard 
Print this post

Has anyone used a micromite for logging data? I want to record temperatures on a regular basis (every 60 mins) using a DS18B20 as a precursor to another project but unsure how. I thought using a thermal printer may be a possibility but I want some long term data so it needs an electronic log.
Thanks
 
palcal

Guru

Joined: 12/10/2011
Location: Australia
Posts: 1982
Posted: 10:14pm 20 Mar 2016
Copy link to clipboard 
Print this post

Log it onto an SD card. You could then put the card in your PC and do whatever.
Paul.
"It is better to be ignorant and ask a stupid question than to be plain Stupid and not ask at all"
 
Grogster

Admin Group

Joined: 31/12/2012
Location: New Zealand
Posts: 9584
Posted: 10:25pm 20 Mar 2016
Copy link to clipboard 
Print this post

Agreed.
Smoke makes things work. When the smoke gets out, it stops!
 
matherp
Guru

Joined: 11/12/2012
Location: United Kingdom
Posts: 10180
Posted: 10:36pm 20 Mar 2016
Copy link to clipboard 
Print this post

For a Micromite use an "Openlog" or this code (NB not retested on 5.1 - pleae could somebody let me know if there are any issues). The Micromite+ handles the SDcard directEdited by matherp 2016-03-22
 
Benzol
Regular Member

Joined: 07/01/2015
Location: Australia
Posts: 64
Posted: 06:13pm 21 Mar 2016
Copy link to clipboard 
Print this post

Thanks matherp. There is a lot of information there and if I can use my newby status to ask what may seem basic questions.
The top photo shows a ILI9341 with a SD card inserted.

Can just a SD card socket be used stand-alone for logging or is it easier to use the integrated unit?
My programming skills do not give me enough of an understanding of your code but if I may summarise what I think is required.

Your most recent code allows usage of the standard SPI pins but that is code to display the picture.
I can use your original log demo "2015-12-02_194820_logdemo.zip" if I am using just a SD card socket.

I'm starting to think I'm well out of my depth here but I suppose it is the only way to learn.

thanks
 
VK2MCT
Senior Member

Joined: 30/03/2012
Location: Australia
Posts: 120
Posted: 07:40pm 21 Mar 2016
Copy link to clipboard 
Print this post

I think we need a bigger idea of whatyou plan.
What do you intend to do with the temperature data ?
What power supply is available ?
How much space ?
How accurate does each sample need to be time wise ? date wise ?
What operational interface is OK? keyboard / size screen ?
Is it a set and forget solution you are after ?
Does it matter if logger crashes ?
Why not an available 'built' commercial system?

Some solutions (maximite ?) have an SD card carrier already built onto circuit card & the commands to access the card 'built-in'.

Bye,
John B
 
Benzol
Regular Member

Joined: 07/01/2015
Location: Australia
Posts: 64
Posted: 08:12pm 21 Mar 2016
Copy link to clipboard 
Print this post

Hi John
The long version; it's getting hotter in Perth and for longer in summer. My plan is to build microprocessor controlled roof space vents with Fan assist. I already have a home built 12v solar system with 250Ah capacity so 12v power is not a problem. I can build the roof vents with actuator controlled seals to keep the heat in during Winter.
The idea of logging data was to learn more about the micromite but also measure temperatures in the roof space and then determine best temperatures to turn on and off the fans.
Space is not a problem. I intended to log hourly temperatures, just a simple date/time stamp and the corresponding temperature. I have considered a commercial unit as a controller but that's not the way to learn.
thanks

db
 
VK2MCT
Senior Member

Joined: 30/03/2012
Location: Australia
Posts: 120
Posted: 04:00pm 22 Mar 2016
Copy link to clipboard 
Print this post

Questions, questions ?

How many inputs to the controller do you need?

1 or more temp measures ?
day or night sensing ?

outputs from controller ?
temp in some form ?
turning fans on/off/variable speed?
control of actuators ?

Just trying to start with hardware which will suit your endpoint.

John.
 
Grogster

Admin Group

Joined: 31/12/2012
Location: New Zealand
Posts: 9584
Posted: 04:16pm 22 Mar 2016
Copy link to clipboard 
Print this post

There is always EEPROM or FRAM memory chips on the I2C or SPI bus too, depending on how you want to access your data. SD cards give nice easy compatibility with a PC or MAC for reading that data, but if you are only interested in being able to read back the data on the unit you have, then an LCD of some description and an EEPROM or FRAM memory chip would do that job nicely.
Smoke makes things work. When the smoke gets out, it stops!
 
Zonker

Guru

Joined: 18/08/2012
Location: United States
Posts: 767
Posted: 04:20pm 22 Mar 2016
Copy link to clipboard 
Print this post

Another idea to consider Benzol, is saving your data records in "CSV" format...
That way, when you want to review the data, you could import it into the
Microsoft Excel program and create time/temp data charts with it...
 
Benzol
Regular Member

Joined: 07/01/2015
Location: Australia
Posts: 64
Posted: 06:08pm 22 Mar 2016
Copy link to clipboard 
Print this post

Hi All
I really appreciate the feedback and comments.
In order;
I think only a single temp sensor will be needed for both the data collection and the final controller. The data logging and collection is just to determine most suitable on and off temperatures.
Output from the controller will be via a 5v relay driven directly from the micromite, something I have already done with my lighting system. That can then drive the 12v system with 12v automotive fans. These are cheap as on Ebay and come in a multitude of sizes. Just need to turn on or off, variable is not needed.
I don't need day / night, temperature is the main driver.
There are a quite a few existing roof space vents around, like the ones with the whirly thing on top. Insert a suitable diameter fan in the tube with a plate inside much like a butterfly valve on a carburetor. I have automotive door lock actuators that i can use to open and close the plate. I can use the micro to open the plates a second or two before the fan comes on to ensure it is fully open.
CSV would be great, I love data analysis. The data logging is really the only problem I have, the controller side of things is all good.
Cheers everyone.
 
panky

Guru

Joined: 02/10/2012
Location: Australia
Posts: 1114
Posted: 10:39pm 23 Mar 2016
Copy link to clipboard 
Print this post

Hi Benzol,

I would recommend the Circuitgizmos Microboard which uses the 470 chip and includes a micro SD card socket. MMBasic 5.1 includes file manipulation routines on the 470 and also, if you need them, extensive graphic manipulation commands to use with a variety of displays.

I wrote a program some years ago to display battery information for my caravan that included data logging in csv format to an sd card (it was on a cg colormaximite) but it should port easily to the 470 and 5.1. If you want, I can post a copy of the logging code for you or have a look in the library for batmon.bas

Cheers,
Doug.
... almost all of the Maximites, the MicromMites, the MM Extremes, the ArmMites, the PicoMite and loving it!
 
Benzol
Regular Member

Joined: 07/01/2015
Location: Australia
Posts: 64
Posted: 12:47am 24 Mar 2016
Copy link to clipboard 
Print this post

Hi Doug
Thanks for the guidance and pointing to your CVBM code. It looks really good and I'm sure I can get it to do what I want. Plus, I can use it to monitor my solar system when i really start putting a load on it.

Most appreciated.

Dave
 
Lightrock
Newbie

Joined: 19/05/2014
Location: Australia
Posts: 26
Posted: 02:38am 29 Mar 2016
Copy link to clipboard 
Print this post

@matherp
Tested you code on a 44 pin Micromite running V5.1. Displayed the Tiger2 picture with no problems.
Now to learn how to log data to the SD card. Thanks for all you efforts.
Roy
 
Print this page


To reply to this topic, you need to log in.

The Back Shed's forum code is written, and hosted, in Australia.
© JAQ Software 2025