Sonsivri

Electronics => Projects => Topic started by: peppeviruz on May 01, 2010, 11:44:15 11:44



Title: control 6 relays by telephone in the word+2 relays opendoos at home!
Post by: peppeviruz on May 01, 2010, 11:44:15 11:44
Hi all, this is my 1st project, consist into a pic (16f876) and a dtmf receiver (CM8870), for the main component, connected to telephone line in home, by that you can turn on-off (also with timers!) 6 relays, to pilote what you want, using a remote teephone, and a pic 16F84 and a 3x4 keypad to put near home intercom to open 2 doos (device controls other 2 relays for local control), in local.
in rar you will find:
hexs for pics , eagle projects and howto for all commands supported by device in remote control!, if someone needed a similiar project!!!
bye!

http://www.megaupload.com/?d=NF5HB2WY


Title: Re: control 6 relays by telephone in the word+2 relays opendoos at home!
Post by: pushycat on May 01, 2010, 04:25:19 16:25
Thanks for the nice project. But regrets that i dont have Eagle to open the given files. I shall apreciate if all the .BRD and .SCH files are uploaded in PDF which are generally accepted by most of the members.


Title: Re: control 6 relays by telephone in the word+2 relays opendoos at home!
Post by: peppeviruz on May 01, 2010, 04:51:53 16:51
I posted them into eagle format (you can get eagle here, in the appropriate 3d!) if someone wants make some modifications or builds own personal PCB files.


Title: Re: control 6 relays by telephone in the word+2 relays opendoos at home!
Post by: leptro on May 02, 2010, 01:43:13 13:43
hi, just for fun i have redesign the remote pcb.



Title: Re: control 6 relays by telephone in the word+2 relays opendoos at home!
Post by: peppeviruz on May 02, 2010, 02:07:27 14:07
hi, just for fun i have redesign the remote pcb.



well done, leptro, I like it!, the best could be have the intere controller (16F876+CM8870) in single side, with all 8 relays, I made the controller with a lot of welds and spacersk, with only 5 relays (2 for opendoors and 3 for remote controls)


Title: Re: control 6 relays by telephone in the word+2 relays opendoos at home!
Post by: leptro on May 02, 2010, 07:09:59 19:09
and again for fun (this time it was long), i have made some modification of the schematic, in the way of driving the relay. make it a little bit clear.
and finaly route the board.

enjoy.. please note that i'm not a pic user and you don't have to change your code.


Adding an extra board, you will be abble to drive 6 relays.




Posted on: May 02, 2010, 08:07:49 20:07 - Automerged

the board was missing


Title: Re: control 6 relays by telephone in the word+2 relays opendoos at home!
Post by: peppeviruz on May 03, 2010, 09:29:24 09:29
well, I like it , if you modified some the schematics, important that you haven't changed the pic's pin sequences, for the rest, all on 1 face pcb, is really usefull!!!.


Title: Re: control 6 relays by telephone in the word+2 relays opendoos at home!
Post by: LazBoy on May 03, 2010, 10:23:27 10:23
Thanks for sharing.
Are there any possibilities to get source codes ?


Title: Re: control 6 relays by telephone in the word+2 relays opendoos at home!
Post by: peppeviruz on May 03, 2010, 12:51:50 12:51
shure!!!!
used mikrobasic pro for controller, and picbasic pro (proton ide) for 16F84 and 3x4 keypad.
here mikrobasic source.
but for 16F84, maybe I lost the source, but are few lines of code, only I used command to intercept keypad_key pressed, and DtmfOut command to send relative dtmf codes, instead of 16f84 (8Mhz xtal), you can use every device hardcoded to send dtmf, a TCM5089 or similiar. (or you can disassemble an old dtmf telephone and see inside if there is an ic used only to send dtmf by keypad)
bye!

controller source.

http://uploading.com/files/dab24719/telecontrol_mikrobasic_source.rar/

P.S.: I'm not a real programmer or a Technical elettronic, I made it only for fun (and becouse I nedded it, at my home!!!) , so the code could result a little confused in some parts! (the code is enabled for pabx installed and intercom comunication on pabx)


Title: Re: control 6 relays by telephone in the word+2 relays opendoos at home!
Post by: leptro on May 03, 2010, 02:26:24 14:26
if someone need the pcb and sch files, please tell me. i will upload them when at home.

Regards.



Title: Re: control 6 relays by telephone in the word+2 relays opendoos at home!
Post by: pushycat on May 04, 2010, 09:46:05 09:46
if someone need the pcb and sch files, please tell me. i will upload them when at home.

Regards.


Yes.. your PDF's were really usefull. It would be great if the Remote schematic is also uploaded in PDF, and all the PCB layouts too...Cheers and thank you.


Title: Re: control 6 relays by telephone in the word+2 relays opendoos at home!
Post by: leptro on May 04, 2010, 06:24:07 18:24
Ok enjoy, in the rar file all eagle files.


Title: Re: control 6 relays by telephone in the word+2 relays opendoos at home!
Post by: peppeviruz on May 04, 2010, 07:20:47 19:20
one note more, the transformer, is a 1:1 transformer, exsactly a 1:1 at 600 ohms of resistance, but I found only a 1:1 at 60 ohms, and worked well!!!!!
so, work well also 1:1 at 120 ohms, ecc....
bye!


Title: Re: control 6 relays by telephone in the word+2 relays opendoos at home!
Post by: leptro on May 04, 2010, 07:42:38 19:42
600 ohm is needed for the telephone spécification. 60 will work but you will draw 10 times the standard current from the telephone compagnie. not shure that they will be happy.
here in france it's not allowed.



Title: Re: control 6 relays by telephone in the word+2 relays opendoos at home!
Post by: peppeviruz on May 04, 2010, 07:52:17 19:52
yes, in fact there is a 1W-620 ohms resistor in serie with the transformer, I 've search in more shops, in more town, but no-one had, I disassembled some old analogic modems and telephones of mine, and sometimes I've found transformers into, but a lot were (ever 1:1), but usually they were 60 ohms or nearly, if they used them...... :)
Only in internet-shops I've found something on, but all works well, I can send and receive all signals (dtmf), and all tones (beeps) by microcontroller!, btw, better to specify ;)
bye!


Title: Re: control 6 relays by telephone in the word+2 relays opendoos at home!
Post by: peppeviruz on May 15, 2010, 12:19:31 12:19
finally, I've mounted all at home: electrical contacts on doors; both lock on garden gate and home door; controller on line and intercom, and all works well!!! :)


Title: Re: control 6 relays by telephone in the word+2 relays opendoos at home!
Post by: peppeviruz on May 30, 2010, 10:29:16 10:29
Hi all, there are some updates.....
in this last versio, you can open dooes directly pushing the keypad, not need anymore to ring the intercom outdoor, only have to insert right code on keypad and choose 1,2,3 to open door1, door2, or both.....
here updated.

(mikrobasic project)
http://www.megaupload.com/?d=14PTTF1W

bye!

Posted on: May 30, 2010, 11:21:50 11:21 - Automerged

a strange problem....
if you compile the project with mikrobasic 3.2, all seems work well, if compile with 3.8 version, the controller doesn't read the the telephone rings, so it newer goes in on-hook (newer you'll have an answer from it, if you call by phone.....) so, use 3.2 version to compile it!
P.S., if you wrong the secret code by outdoor keypad, only have to wait 10 seconds and then you can reinsert right code!
bye!


Title: Re: control 6 relays by telephone in the word+2 relays opendoos at home!
Post by: peppeviruz on June 02, 2010, 07:30:01 07:30
well....
finally I found also the picbasic pro source for pic 16f84 to send dtmf by a 3x4 matrix keypad, are few lines of code, and the pic became a "DTMF Encoder". with some modifications, you can use it without keypad, like an home alarm by telephone that at needed send alarm signals calling other telephone numbers, advising that there is an intrusion, or simply, that refrigerator has stopped working while you are on holidays!!! ;)

the code:

http://uploading.com/files/m8114da6/dtmf_keypad_for_16f84.bas/