Article: https://www.matrixtsl.com/resources/get ... php?id=433
Please discuss this article here!
MX022 - Dual Channel Temperature Logger
- JohnCrow
- Valued Contributor
- Posts: 1367
- Joined: Wed Sep 19, 2007 1:21 pm
- Location: Lincolnshire
- Has thanked: 364 times
- Been thanked: 716 times
Dual Channel Temperature Logger - Remote Ch2
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
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.
Part 3 will follow soon
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
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.
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 !
-
- Matrix Staff
- Posts: 9521
- Joined: Sat May 05, 2007 2:27 pm
- Location: Northamptonshire, UK
- Has thanked: 2585 times
- Been thanked: 3815 times
Re: MX022 - Dual Channel Temperature Logger
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
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
- petesmart
- Valued Contributor
- Posts: 395
- Joined: Thu May 06, 2010 11:42 am
- Location: Sydney, Australia
- Has thanked: 187 times
- Been thanked: 140 times
Re: MX022 - Dual Channel Temperature Logger
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
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!
- JohnCrow
- Valued Contributor
- Posts: 1367
- Joined: Wed Sep 19, 2007 1:21 pm
- Location: Lincolnshire
- Has thanked: 364 times
- Been thanked: 716 times
Re: MX022 - Dual Channel Temperature Logger
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.
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 !
Re: MX022 - Dual Channel Temperature Logger
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.
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 866 times