Need:-
1. I have a relay which will connect the water heater to AC mains.
2. The relay should be on for 15 min i.e. heater will be on for 15 min.
3. After 15min the relay should disconnect heater from ac mains. Also, it should play a buzzer as an indication that heater is disconnected.
Solution:-
The solution I got, is to use a timer which will be ON for 15 min and then OFF till it gets next trigger.
I thought to use IC LM7555 in monostable mode. But the ic costs $3.5 :sad:
Now, I am hopeful that I will get a microcontroller in range of $1 which can serve my purpose. Further, the mc will make the timer flexible enough. :idea:
Can anyone tell me, if I am thinking in right direction? What will be the cost effective solution for the above problem? If it is mc, which mc will be cheapest and serve the purpose? :?
Hi,
Are you a first time programmer? If so, then I recommend you use something like mikroC or mikroBASIC to program the PIC. For programmer, if you want cheap you could build a serial port programmer, or you could look for a cheap Chinese made programmer. However, if you intend to use PIC for a long time, I suggest you spend $50 and get a PICKit2. Will serve you great.
Hope this helps.
Tahmid.
---------- Post added at 19:04 ---------- Previous post was at 18:01 ----------
Hi,
It works without external crystal but gives most precision with external crystal. However, you need a delay of 15mins and a second or two here and there wouldn't make that much of a difference, so you can avoid the external crystal to reduce parts count and make it more simple.
Also take a look here: mikroElektronika - PIC Compilers
I have never programmed pic.
And I think if I could build my own serial port programmer, it would be learning experience too.
Though, I searched for how to build the serial programmer for pic10, I didnt get anything.
Do you have any link or tutorial which explains abt how to build serial port programmer for pic10F200 ??
Also, if I build it, can it be used for other pic like pic16, pic18 in future?
The programming software is available on those pages.
I recommend building the parallel port one, however it is your choice. After you're done building this, I still recommend getting a PICKit2 as it will support more PICs and continue to do so in the future, especially useful if you're going to use PIC24, dsPIC (30 and 33) and/or PIC32.
However for the time being, your own one will do just fine.
hi...
the link you mentioned supports only PIC 12, 16 and 18 version. I am thinking to use PIC10F200. So, I dont think those programmer would be useful to me.
The datasheet has given that PIC10F200 supports ICSP and has only 2 pins(ICSP_DATA and ICSP_CLK) for that purpose.
I was thinking, if by some way I can transfer the hex file to the pic through these pins. Wont it be possible?
I have some PIC10F222 (or F202), so I could check and let you know. My idea is to use combination of MultiPic v2 with WinPic SW, also I have PonyProg and PicKit2 so I will try all of them )))
---------- Post added at 09:11 ---------- Previous post was at 09:01 ----------
I have just found, that JDM programmer + WinPic is working for PIC10F202.
Below is link to Russian forum. JDM + WinPic = PIC10F202.
Although 10f206, 12f510, 12f683 are not working with this combination...