Electronics Lab Philippines

Refrigerator Power-ON Delay; PIC timer

Offline Super zHero

  • *****
  • 5807
  • 310
  • Simple problem- ...simple solution.
Refrigerator Power-ON Delay; PIC timer
« on: November 27, 2013, 10:20:57 PM »
Here's my version of the "Ref Guard" using a low-cost PIC IC.



I chose the PIC10F202 because of its simplicity and single pricing of about P35 only.  The schematics shows the PDIP version, this IC also comes in SOT-23, a six pin SMD.


Offline Super zHero

  • *****
  • 5807
  • 310
  • Simple problem- ...simple solution.
Re: Refrigerator Power-ON Delay; PIC timer
« Reply #1 on: November 27, 2013, 10:28:45 PM »
I programmed the chip to sound off a chirp at Power-UP and blink a RED LED every four seconds until five minutes times up, then it chirps again as the output changes state.  Notice that pins 5 & 4 are the Q and /Q (Q not) outputs of the timer.  You can pick one to drive your transistor, FET for your Relay or Triac, whatever.....

I did not use a Relay because I wanted to switch the load (the Ref) at zero crossing of the AC, which U2, a zero crossing Triac driver, provides.  Switching a heavy load at zero crossing ensures a "soft start" for the appliance and there are no Relay contacts to burn from arcing.

Offline djkingchristian

  • *
  • 1881
  • 137
  • Gender: Female
  • more projects to do
Re: Refrigerator Power-ON Delay; PIC timer
« Reply #2 on: November 27, 2013, 10:36:27 PM »
parang meron po akong mga moc dito, m check nga bukas

Offline Super zHero

  • *****
  • 5807
  • 310
  • Simple problem- ...simple solution.
Re: Refrigerator Power-ON Delay; PIC timer
« Reply #3 on: November 27, 2013, 10:42:02 PM »
Compared to using a 555 chip, this PIC10F202 is the same 8-pin DIP size, but uses less components.  The timing can also be changed to your liking via firmware change only.  You may want this to time-out at 6 minutes instead and not have to worry about computing for your R-C values.

The Piezo transducer, LEDs and their resistors are all optional, making this timer cost less in price and in PCB "real estate" than the 555.

Offline Super zHero

  • *****
  • 5807
  • 310
  • Simple problem- ...simple solution.
Re: Refrigerator Power-ON Delay; PIC timer
« Reply #4 on: November 27, 2013, 11:20:02 PM »
BTW, a transformerless 5V PS can be used here to really make this cheap and small.  No transformer, no relay.

Offline marcelino

  • *****
  • 6597
  • 312
  • ...keep moving forward! - Robinson's
Re: Refrigerator Power-ON Delay; PIC timer
« Reply #5 on: November 27, 2013, 11:49:33 PM »
nice one there... actually I think this project is much robust compared to that 555-based power on delays.
the SOT-23 is much cheaper @ 24pesos. :D
"Don't take life seriously. After all, no one has ever come out of it alive. -Bugs Bunny"

Offline marcelino

  • *****
  • 6597
  • 312
  • ...keep moving forward! - Robinson's
Re: Refrigerator Power-ON Delay; PIC timer
« Reply #6 on: November 28, 2013, 12:00:13 AM »
uy... parang mas mura pa pala ito.
PIC10F202 = Php35
MOC3063   = about Php40
price for a typical triac that can handle a refrigerator is not more than 80pesos.
plus a passive devices and transformerless power supply.
... do the math.

mas mura nga ito!
"Don't take life seriously. After all, no one has ever come out of it alive. -Bugs Bunny"

Offline macky

  • *
  • 1164
  • 58
Re: Refrigerator Power-ON Delay; PIC timer
« Reply #7 on: November 28, 2013, 06:19:19 AM »
sis zhero, care to share  your code? :)
psalm 46:10

Offline motion55

  • *****
  • 3171
  • 520
  • Gender: Male
  • Been at this longer than you've been alive.
Re: Refrigerator Power-ON Delay; PIC timer
« Reply #8 on: November 28, 2013, 06:52:30 AM »
Nice. Once naka setup ka for programming these chips, you can use them for all sorts of things like light dimmers, Xmas lights, etc.


"Set your mind free!"

Offline TBG

  • **
  • 2765
  • 259
Re: Refrigerator Power-ON Delay; PIC timer
« Reply #9 on: November 28, 2013, 07:11:58 AM »


nice one sis.

mura na konting parts lang.

Offline Super zHero

  • *****
  • 5807
  • 310
  • Simple problem- ...simple solution.
Re: Refrigerator Power-ON Delay; PIC timer
« Reply #10 on: November 28, 2013, 07:34:54 AM »
sis zhero, care to share  your code? :)

I can share the Hex file.  Just burn it to the chip.  Gamit ko kasi PICBasic PRO, marami kasi sa inyo C users.

Offline macky

  • *
  • 1164
  • 58
Re: Refrigerator Power-ON Delay; PIC timer
« Reply #11 on: November 28, 2013, 09:49:12 AM »
^oks yan kahit hex lang, kahit algo na lang :D
psalm 46:10

Offline Deantyne

  • *
  • 1281
  • 126
  • Gender: Male
  • A grease monkey & recycler
Re: Refrigerator Power-ON Delay; PIC timer
« Reply #12 on: November 28, 2013, 11:34:28 AM »
NICE one po sis zHero..

care to share also sa hex file?

thanks +1

Offline Super zHero

  • *****
  • 5807
  • 310
  • Simple problem- ...simple solution.
Re: Refrigerator Power-ON Delay; PIC timer
« Reply #13 on: November 28, 2013, 12:48:34 PM »
Hex files PM'd to those who asked.  Is there an easy way to send a link in this forum so members can access the file?

Offline Deantyne

  • *
  • 1281
  • 126
  • Gender: Male
  • A grease monkey & recycler
Re: Refrigerator Power-ON Delay; PIC timer
« Reply #14 on: November 28, 2013, 05:01:27 PM »
^4shared account sir.

Offline Ikasamoko

  • *****
  • 6436
  • 492
  • Gender: Male
  • ..sexually deficit..
    • My "BLAG!"
Re: Refrigerator Power-ON Delay; PIC timer
« Reply #15 on: November 28, 2013, 06:53:39 PM »
Plus 1 sis!

much simplier nga ito..

Offline >>>^żżż^<<<

  • *****
  • 13845
  • 706
  • żżż
Re: Refrigerator Power-ON Delay; PIC timer
« Reply #16 on: November 28, 2013, 07:44:42 PM »
Pashare ng hex sir.
http://www.elab.ph/index.php?topic=52236.0 TF?
http://www.elab.ph/index.php?topic=41860 ? ? ? DIY traffo Test Build Uli
http://www.elab.ph/index.php?topic=33717  I2c / spi programmer
http://www.elab.ph/index.php?topic=37150.0 Lcr esr makikigulo rin ba kayo ??? Test Build
http://www.elab.ph/index.php?topic=29963.0 Esr collection na malamig
http://www.elab.ph/index.php?topic=25854.0 Basic C++ Programming Tutorials by Prof Asimo
We only live once,treasure those we love, make friends not enemies and keep our family closer. And we will be at peace.
FISH

Offline marcelino

  • *****
  • 6597
  • 312
  • ...keep moving forward! - Robinson's
Re: Refrigerator Power-ON Delay; PIC timer
« Reply #17 on: November 28, 2013, 11:18:34 PM »
Ayos ah... I did look into this particular MCU. Isa pala ito sa resurrected MCU from  General instruments (yung original na gumawa ng PICmicro). around 1976 pa.

Wala pala itong TMR0 overflow interrupt na katulad ng x14 PICmicros! :D
Talagang dapat magbilang. ;D

At dahil dyan, mapaglibangan nga... kahit proteus lang. :)
"Don't take life seriously. After all, no one has ever come out of it alive. -Bugs Bunny"

Offline Super zHero

  • *****
  • 5807
  • 310
  • Simple problem- ...simple solution.
Re: Refrigerator Power-ON Delay; PIC timer
« Reply #18 on: November 29, 2013, 08:10:48 AM »
For simple timing, loops lang ginawa ko.
The main reason I like this IC is the SOT23 package.

Offline marcelino

  • *****
  • 6597
  • 312
  • ...keep moving forward! - Robinson's
Re: Refrigerator Power-ON Delay; PIC timer
« Reply #19 on: November 29, 2013, 10:05:24 AM »
For simple timing, loops lang ginawa ko.
The main reason I like this IC is the SOT23 package.

yes sir, for simple task like simple switching, a software delay would suffice. :)
"Don't take life seriously. After all, no one has ever come out of it alive. -Bugs Bunny"