Continue to Site

Welcome to EDAboard.com

Welcome to our site! EDAboard.com is an international Electronics Discussion Forum focused on EDA software, circuits, schematics, books, theory, papers, asic, pld, 8051, DSP, Network, RF, Analog Design, PCB, Service Manuals... and a whole lot more! To participate you need to register. Registration is free. Click here to register now.

[PIC] water temp monitoring & heater control

Status
Not open for further replies.

KVN1477

Junior Member level 3
Joined
Nov 18, 2013
Messages
26
Helped
4
Reputation
8
Reaction score
4
Trophy points
3
Activity points
184
hi all,
i have developed a small project using PIC16F877A to monitor water temp and heater control.
in this project i have made provision to set temperature manually , when temp of water reaches to set temperature value heater will be automatically disconnected by relay. project is working fine if there is no power cut during operation. if there is power cut during heating of water manually set temperature value becomes zero. i need solution to retain manual set temp value to be retained during power failure also.
 

The PIC16F877A has 256 bytes of data EEPROM - could you use that to store non volatile data?
 
Stote Set Temprature value in eeprom. If your set temperature value doesn't exceed 255 degrees then you can store it at any one eeprom address (1 byte wide). If temperature is more than 255 then you have to store it at 2 eeprom locations as low byte and high byte.

Mention Compiler used, Temperature sensor used. Provide Circuit and also Zip and post Complete project files.
 
Hi,

As said you can use EEProm to store and retain your data when power is off.

You can also pre load your EEProm with data during programming time so it can have a default Temperature vaalue in there.

Your program loop would be to start up and first load/read the EEprom Temperature value and work with that.
You can copy the value into RAM to make things work quicker rather than reading from slow EEProm all the time.
If you manually change the temperature then once that subroutine has ended the value should be written into the EEprom.
 
Re: water temp monitoring & heater control

thanks a lot for suggestion.......

- - - Updated - - -

thanks a lot for suggestion...

- - - Updated - - -

got it ....thanks a lot for suggestion
 

sir,
can eeprom value is changed every time as per requirement?
or it will be stored permanently in that location once it is programmed
 

sir,
can eeprom value is changed every time as per requirement?
or it will be stored permanently in that location once it is programmed


Hi,

The Eeprom is Re -writeable so you can change the values in the same or different locations.

The only restriction is that you can only rewrite to the same area about one million times before it wears out :wink:
 

writes to EEPROM are limited (typically 100000 times) [/url]

Hmmm.. for the chip mentioned they quote 100k as the Minimum, 1meg is Typical.

Did some endurance test on that chip some years ago and it was 500k R/W before a single bit error given; and that routine really 'worked' the chip.

For his project think standard eeprom would be fine, saving the data once a hour , every hour he could get 12 years use based on the minimum target of 100k writes...
 

Attachments

  • 000008.jpg
    000008.jpg
    25.7 KB · Views: 87

Hmmm.. for the chip mentioned they quote 100k as the Minimum, 1meg is Typical.

Did some endurance test on that chip some years ago and it was 500k R/W before a single bit error given; and that routine really 'worked' the chip.

For his project think standard eeprom would be fine, saving the data once a hour , every hour he could get 12 years use based on the minimum target of 100k writes...
we had a number of systems installed where the user assured us that the number of writes would mean a system lifetime of 10 years (writes were triggered by event from machines)
in practice systems began to fail after 2 or 3 years - it was a very electrically noisy environment so this may have contributed to the problems
these days we use FRAMs not EEPROMs
 

we had a number of systems installed where the user assured us that the number of writes would mean a system lifetime of 10 years (writes were triggered by event from machines)
in practice systems began to fail after 2 or 3 years - it was a very electrically noisy environment so this may have contributed to the problems
these days we use FRAMs not EEPROMs


Interesting, have used regular saves and restores to eeprom for several years on the same chips without a problem, but only in a domestic environment; expect other areas could well cause such problems, though not a device I have ever looked at, not sure how or why Fram would be any less susceptible ?

Also a bit surprised that only eeprom would be affected and nothing else on the pic. though as you say if using Fram cures the problem, other areas clearly are not being affected ..
 

Re: water temp monitoring & heater control

Interesting, have used regular saves and restores to eeprom for several years on the same chips without a problem, but only in a domestic environment; expect other areas could well cause such problems, though not a device I have ever looked at, not sure how or why Fram would be any less susceptible ?

Also a bit surprised that only eeprom would be affected and nothing else on the pic. though as you say if using Fram cures the problem, other areas clearly are not being affected ..
we did have some other components fail due we think to electrical noise (better filters on the electrical supplies seemed to help) - the application was machine control and monitoring with reports being sent to a server over ethernet using UDP datagrams every few seconds
I think the main problem with EEPROMs was that there were more events from the machines than originally estimated and the FRAMs fixed it
 

Status
Not open for further replies.

Similar threads

Part and Inventory Search

Welcome to EDABoard.com

Sponsor

Back
Top