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.

DTMF with AT89S52 and relay

Status
Not open for further replies.

Ogu Reginald

Full Member level 6
Joined
Oct 7, 2011
Messages
369
Helped
47
Reputation
94
Reaction score
46
Trophy points
1,308
Location
Nigeria
Activity points
3,391
Please I urgently need a working circuit and source code for a DTMF(eg.8870) and AT89S52 to control 4 relays(ON and OFF as desired) connected on Port2 of the AT89S52.
The DTMF should be fed to port3 of the AT89S52.
The Relays should be turned ON by the pressing of keys 1,2,3 and 4 respectively but can be Turned OFF by keys 5,6,7 and 8.
In case my email is ogureginald@rocketmail.com
 

if i may ask wot effort have u made in this regards?... ;-) if neccessary upload ur code/circuit so that the forum can help you
 

I have done the first step in every problem(defining the problem). With the little description I gave concerning the ports where the relays are to be connected and the keys to turn them ON and OFF, I believe that one can picture how the circuit diagram will looks like. For now, I am writing an exam but by next week I will be able to produce the circuit diagram but if you can help me in this regard please do and give me a little description of what you did I will be glad you did.
 

This can be done only with one uC (PIC12F 1 channel or PIC16F for 8 channel) and several discrete components, also password for accessing exist. If you are interested say.
 

This can be done only with one uC (PIC12F 1 channel or PIC16F for 8 channel) and several discrete components, also password for accessing exist. If you are interested say.

Please can you give me the reason why you said it can only be done with PIC microcontroller, don't you think that a modification can be done to make AT89S52 be used for the purpose. With respect to the PIC, can you help me with the circuit diagram and the source code? I will be glad you did.
 

I sayd only in meaning just one uC, no need for DTMF decoder IC such as MT8870, and not in meaning of exact and only PIC can do this job.

http://pe1grl.khds.nl/dtmf/dtmf.htm

(Audio input can be telephone isolation transformer 600 : 600 ohm removed from some cheap modem, if you want to use this over PSTN network, also with this you need ring detector and automatic pickup if you need this say).


http://www.libstock.com/projects/view/68/dtmf-de-coding-using-just-a-pic-16f

When you start to use some uC or plan to use some uC, first check capabilities and architecture of that uC.
 
Last edited:

Please I urgently need a working circuit and source code for a DTMF(eg.8870) and AT89S52 to control 4 relays(ON and OFF as desired) connected on Port2 of the AT89S52.
The DTMF should be fed to port3 of the AT89S52.
The Relays should be turned ON by the pressing of keys 1,2,3 and 4 respectively but can be Turned OFF by keys 5,6,7 and 8.
In case my email is ogureginald@rocketmail.com


try this
View attachment dtmf.bmp

Code:
;%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
;%%%%%%%%%%%DTMF 8870 use 89S52%%%%%%%%%%%%%
;%%%%%created by wan_solutech@yahoo.com%%%%%%%%%%%%
;%%%%%%%%%%%%Paris Van Java, Indonesia%%%%%%%%%%%%
;Bismillah
;-----------------------------------------------------------------------------------------------------------
;key 1 on relayA 	key 2 on relayB	key 3 on relayC	key 4 on relayD
;key 5 off relayA 	key 6 off relayB	key 7 off relayC	key 8 off relayD
;----------------------------------------------------------------------------------------------------------

DTMF   equ p3
relayA   bit p2.0
relayB   bit p2.1
relayC   bit p2.2
relayD   bit p2.3
std        bit p2.4

	org 0h
init:
	mov p2,0ffh  ; relay all off
start:
	setb std
	jnb std,start
	mov DTMF,#0fh
              mov a,DTMF
              acall cek_dtmf
	sjmp start
;----------------------------------------
cek_dtmf:                          
dig1:           
	cjne a,#01H,dig2  ;relayA on
	setb relayA
	ret
dig2:     
              cjne a,#02h,dig3 ;relayB on
	setb relayB               
              ret
dig3:                
              cjne a,#03h,dig4  ;relayC on
	setb relayC
              ret
dig4:           
              cjne a,#04h,dig5  ;relayD on
	setb relayD
              ret
dig5:         
              cjne a,#05,dig6   ;relayA off
	clr relayA
              ret
dig6:           
              cjne a,#06h,dig7	;relayB off
	clr relayB
              ret
dig7:     
              cjne a,#07h,dig8 	;relayC off
	clr relayC                
              ret
dig8:                
              cjne a,#08h,balik	;relayD off
	clr relayD
              ret
balik:      ret           
;----------------Shodakallohilaziim-----------
                    END
 

Please I urgently need a working circuit and source code for a DTMF(eg.8870) and AT89S52 to control 4 relays(ON and OFF as desired) connected on Port2 of the AT89S52.
The DTMF should be fed to port3 of the AT89S52.
The Relays should be turned ON by the pressing of keys 1,2,3 and 4 respectively but can be Turned OFF by keys 5,6,7 and 8.
In case my email is ogureginald@rocketmail.com

Try using HT9170. Fairly simpe IC, which gives you 5 outputs to be connected to PORT3 as required.
https://www.alldatasheet.com/datasheet-pdf/pdf/64508/HOLTEK/HT9170.html
 

Please I need a working microcontroller project on DTMF to control fpour relays. The microcontroller can be AT89S52 or any of the PIC microcontroller, any DTMF IC can be used. Please make sure that the circuit is working.

- - - Updated - - -

Please I need a working microcontroller project on DTMF to control fpour relays. The microcontroller can be AT89S52 or any of the PIC microcontroller, any DTMF IC can be used. Please make sure that the circuit is working.
 

Status
Not open for further replies.

Part and Inventory Search

Welcome to EDABoard.com

Sponsor

Back
Top