MX022 - Dual Channel Temperature Logger

Forum to discuss articles which have been published in Matrix Multimedia's article zone. If you have any comments or questions regarding the articles please post them here.

Moderators: Benj, Mods

Post Reply
User avatar
DavidA
Matrix Staff
Posts: 1070
Joined: Fri Apr 23, 2010 2:18 pm
Location: Matrix Multimedia Ltd
Contact:

MX022 - Dual Channel Temperature Logger

Post by DavidA »

Article: http://www.matrixmultimedia.com/resourc ... php?id=433

Please discuss this article here!

User avatar
JohnCrow
Valued Contributor
Valued Contributor
Posts: 1367
Joined: Wed Sep 19, 2007 1:21 pm
Location: Lincolnshire
Contact:

Dual Channel Temperature Logger - Remote Ch2

Post by JohnCrow »

This article shows a simple modification to my system to allow remote monitoring

The LM35 is a very useful device, however if it is mounted any distance from the microcontroller, the voltage drop in the cables can introduce errors. 10mV/°C equates to 1mV/0.1°C.
i.e. for every mV lost gives an error of 0.1°C

The following system uses two EB006 programmers linked using the USART on Port C.
However this could easily be replaced by a full RS232 or RS 485 connection.

For the purpose of this version, I have removed the min-max functions and the USB interface.

The remote sensor can use a simpler microcontroller, and I have selected the 16F877A

Remote Board
Uses a PIC 16F877A

Port A (ADC 0) has a LM35 connected
Port B is the standard LCD E-Block
Port C has a 9 pin D-plug wired with pins 7 & 8 crossover to the second programmer, and pins 9 to 9 connected as a ground link.
The LCD shows the temperature in degrees Celsius.
The label on the LCD shows “Local Temperature”.
This is because, although this is designated the remote board, if you are looking at the display it is local to you.
The temperature is sent as a data string using the RS232 protocol.
The software is set to transmit every 5 seconds, though this can be changed if needed.
The display will also show “Tx” in the bottom right when the data is sent, for 100ms

Remote Board
Remote Board
Remote.jpg (170.25 KiB) Viewed 16040 times
Local Board
Uses a PIC 18F4550

Port A has the E-Block Card Reader with 2GB SD Card
Port B is my custom 4x20 LCD Board
Port C has a 9 pin D-plug wired with pins 7 & 8 crossover to the second programmer, and pins 9 to 9 connected as a ground link.
Port E (ADC 5) has a LM35 connected

This shows both Local Temperature and Remote Temperature.
Although I have retained the data logging option, the max-min and HyperTerminal connections have been removed in this version.

Local Board
Local Board
Local.jpg (185.12 KiB) Viewed 16040 times

Part 3 will follow soon
Last edited by JohnCrow on Sun Jun 19, 2011 11:45 am, edited 3 times in total.
1 in 10 people understand binary, the other one doesn't !

User avatar
JohnCrow
Valued Contributor
Valued Contributor
Posts: 1367
Joined: Wed Sep 19, 2007 1:21 pm
Location: Lincolnshire
Contact:

Re: MX022 - Dual Channel Temperature Logger

Post by JohnCrow »

Flowcode Files
Dual Remote Rx - 18F4550.fcf
(22.69 KiB) Downloaded 843 times
Dual Remote Tx - 16F877A.fcf
(14 KiB) Downloaded 874 times
1 in 10 people understand binary, the other one doesn't !

User avatar
medelec35
Valued Contributor
Valued Contributor
Posts: 9186
Joined: Sat May 05, 2007 2:27 pm
Location: Northamptonshire, UK
Contact:

Re: MX022 - Dual Channel Temperature Logger

Post by medelec35 »

Hi John,
Great artical!

I'm going to have a play as this is something I could use for work and home.

Thanks for sharing it.

Martin
Martin

User avatar
petesmart
Valued Contributor
Valued Contributor
Posts: 395
Joined: Thu May 06, 2010 11:42 am
Location: Sydney, Australia
Contact:

Re: MX022 - Dual Channel Temperature Logger

Post by petesmart »

Hi John,

Great article.

I noticed your custom 4line display. Any chance you could provide detail on the hardware and also the V4 flow code component that you used to drive the display.

Many thanks

Pete
sorry about that Chief!

User avatar
JohnCrow
Valued Contributor
Valued Contributor
Posts: 1367
Joined: Wed Sep 19, 2007 1:21 pm
Location: Lincolnshire
Contact:

Re: MX022 - Dual Channel Temperature Logger

Post by JohnCrow »

Hi Pete

The display is from Rapid Electonics http://www.rapidonline.com

The part no. 57-0946 - data sheet is on rapids website
Not sure where you'll get one in your country, but the data sheet should point you in the right direction.

Though any display with these connections and a Hitachi HD44780 or Samsung KS0066U compatible controller chip will work.

They are wired exactly the same way as the 2x16 standard e-block. Full data for this is on the Matrix data sheet.
The board is the Matrix EB017 Patch board.
Uses the normal LCD flowcode component, just select LCD, right click on it and select 4x2


I would also recommend trying a smaller value pot, 20k was shown on the data sheet but it only operates over the top 30% or so of the travel.
1 in 10 people understand binary, the other one doesn't !

User avatar
petesmart
Valued Contributor
Valued Contributor
Posts: 395
Joined: Thu May 06, 2010 11:42 am
Location: Sydney, Australia
Contact:

Re: MX022 - Dual Channel Temperature Logger

Post by petesmart »

Many thanks John,

Appreciate the fast response...

All the best

Pete
sorry about that Chief!

dan@ttl
Posts: 12
Joined: Thu Dec 06, 2012 2:39 am
Contact:

Re: MX022 - Dual Channel Temperature Logger

Post by dan@ttl »

Hi to all,
I have tried the Remote Tx on hardware, but am getting high swing readings on the display. Increasing the delay doesn't help. The voltage on the adc seem constant eneough. I have all my power connections decoupled.
Attachments
Remote Tx - 16F877A.fcf
(16.5 KiB) Downloaded 569 times

Post Reply