Getting graphical output from a temperature sensor

I quickly put together a small program that I hope will get you closer to what you need.
It should print out to your serial port as CSV format and also, it should control an output to which you can connect a relay for heating.

I haven't tested it, but it compiles fine in Eclipse.

You will need to either copy and paste the code or rename the file from copjohn.cpp to copjohn.ino

In the code, there are notes at the beginning to give you more information and the code is documented and is kept simple with no special tricks.

Attached is a PDF of the code as well from Eclipse, which may appear neater. I use tabs as my delimiter, not spaces, so the neatness of indentation and comments will be spoilt if you import into Arduino IDE, which uses spaces.


Paul

copjohn.cpp (5.63 KB)

copjohn.pdf (34.8 KB)

Thank you Paul I'ii give them a go. My daughter's presentation is on the 30th August so got a little bit more time than I thought to get this right. :slight_smile:

It was late at night when I put that together and missed a few lines of code, hence an update :slight_smile:


Paul

copjohn.pdf (33 KB)

main.cpp (5.69 KB)

Thanks Paul Downloaded first program seems to be working well. I getting 3 temperature outputs in real time, putting together the relay circuit today to see how that works. :slight_smile:

Good to hear.
Just noticed this project which may offer you another alternative to graphing.
Enhanced Serial Monitor - Version 3.1
I only read the first few posts to see it's features.
It is windows application only.


Paul