This discussion has been locked.
You can no longer post new replies to this discussion. If you have a question you can start a new discussion

How to Give Hour delay in 851

hi..
am having an old Refrigerator.
Itz continuously working , causes heavy current charge
i wish to construct a timer circuitry for cut off the above device
am using 8051 micro controller .. I wish to use P1.7 as energizing pin.

i wish to give half an hour cut off after every 2 hours of operation.

so.. help me to create the code ..
thanks..

Parents
  • Sorry but 851 sounds like an extremely old processor. Or did you possibly mean the 8051?

    Anyway - if you see issues with creating a simple delay, why not use something like a 555 to create the delay? A processor is best when you need some intelligent logic. Refridgerators managed their task long before we got microcontrollers. Cars managed to blink their turn indicator lights long before we got microcontrollers.

    Or alternatively - consider looking if the thermostat is still working or if it's the electrical circuit that responds to it that has failed. A trivial OP-amp with a thermistor and a bit of hysterese can manage quite well to have the fridge start to temperature-control the compressor again. But you probably save on your electricity bill by buying a new fridge that probably draws half the power of what your current fridge needed even when new.

Reply
  • Sorry but 851 sounds like an extremely old processor. Or did you possibly mean the 8051?

    Anyway - if you see issues with creating a simple delay, why not use something like a 555 to create the delay? A processor is best when you need some intelligent logic. Refridgerators managed their task long before we got microcontrollers. Cars managed to blink their turn indicator lights long before we got microcontrollers.

    Or alternatively - consider looking if the thermostat is still working or if it's the electrical circuit that responds to it that has failed. A trivial OP-amp with a thermistor and a bit of hysterese can manage quite well to have the fridge start to temperature-control the compressor again. But you probably save on your electricity bill by buying a new fridge that probably draws half the power of what your current fridge needed even when new.

Children
No data