The Philippine Electronics and Technology Forum
February 09, 2012, 06:16:00 PM *
Welcome, Guest. Please login or register.

Login with username, password and session length
 
   Home   Help Search Login Register  

Pages: [1] 2 3 4   Go Down
  Print  
Author Topic: Question about relays to be used with MICROCONTROLLERS  (Read 5537 times)
reaver26
Size AAA Battery
***

Pogi/Ganda Points: 0
Offline Offline

Gender: Male
Posts: 99



« on: January 15, 2010, 09:24:54 AM »

nag hanap ako kahapon sa net about relays and i had came up with this...

http://www.instructables.com/id/Self_Automated_Plug_In_Appliances/


is it ok i would use:

220V Relay (Look for one with a LOW trigger voltage that matches that of your control source's voltage levels. AKA TTL (5V) for most microcontrollers, RS-232 (~3-12V) for computers' COM port outputs.

Diode (Rated at 120V AC or higher).
TIP120 Transistor
1K-Ohm Resistor


is it ok i will use 6VOLTS trigger relay for my MCU to relay output?
Logged
The Philippine Electronics and Technology Forum
« on: January 15, 2010, 09:24:54 AM »

 Logged
tiktak
Gas Turbine
**

Pogi/Ganda Points: 171
Offline Offline

Gender: Male
Posts: 2498



WWW
« Reply #1 on: January 15, 2010, 09:37:52 AM »

OK lang, even 12V relay can be used
Logged

Bakit andaming hindi marunong gumamit ng search?Huh
reaver26
Size AAA Battery
***

Pogi/Ganda Points: 0
Offline Offline

Gender: Male
Posts: 99



« Reply #2 on: January 15, 2010, 09:49:58 AM »

OK lang, even 12V relay can be used

MCU input source namin is 9v(10watts)

5volts lang ang MCU output namin.

gagamit po ako relay para using MCU mapa work namin ang electrical devices on 220vAC

ok naba gagamit ako nun 6volts trigger RELAY to run 220vAC?

clarification lang po... bka kasi di mag work if mataas masyado ang relay namin at di kya abutin ng output current namin sa MCU.
Logged
krazeneth
Size AA Battery
****

Pogi/Ganda Points: 1
Offline Offline

Gender: Male
Posts: 138


The electrons is not there till we put it there


« Reply #3 on: January 15, 2010, 11:04:35 AM »

clarification lang po... bka kasi di mag work if mataas masyado ang relay namin at di kya abutin ng output current namin sa MCU.
lagay ka ng transistor para mag drive ng relay mo. 2m222 pwede na (yan kasi lagi kong gamit).
Logged
marcelino
Moderator
Solar Power Satellite
*****

Pogi/Ganda Points: 247
Offline Offline

Posts: 5861


...keep moving forward! - Robinson's


« Reply #4 on: January 15, 2010, 12:41:52 PM »

Hopefully, you can get from this.



also, be sure that the contact rating is rated to be able to work with 220Vac.
Logged

"Don't take life seriously. After all, no one has ever come out of it alive. -Bugs Bunny"
reaver26
Size AAA Battery
***

Pogi/Ganda Points: 0
Offline Offline

Gender: Male
Posts: 99



« Reply #5 on: January 15, 2010, 02:11:49 PM »



take a look po sa ginawa ko...

yan po ang setup ng MCU ko....

ok na po ang LED indicator namin... paano ko makakabit ang relay ko sa mcu ko po?

kasi po ang VDD ko wla po ako pwed paglagyan ng wire maliban lang po gawa ako ng bagong wire input connection

on PIN 31


saan ko po kukunin ang ground?
Logged
reaver26
Size AAA Battery
***

Pogi/Ganda Points: 0
Offline Offline

Gender: Male
Posts: 99



« Reply #6 on: January 15, 2010, 07:36:36 PM »

Update to this topic... ok. na po nakahanap na ako ng 5vdc relay trigger to 250vAC

tnx po sa help... pa delete na lang ng threat na ito... thnx
Logged
reaver26
Size AAA Battery
***

Pogi/Ganda Points: 0
Offline Offline

Gender: Male
Posts: 99



« Reply #7 on: January 19, 2010, 11:38:26 PM »

RE OPEN THIS THREAD:   tama po ba ang sequence ng circuit ko?

       ( + ) --> RESISTORS --> LED --> TRANSISTOR (2N2222A) -->
MCU                                                                                       RELAY(5VDC) / 250VAC
       ( - ) -->  --> --------------------------------------------->



Tama po ba ang proposed Relay circuit ko?

naguguluhan lang ako... saan ko e connect ang Ground ng TRANSISTOR(2N2222A)?




Logged
nucleus
Gas Turbine
**

Pogi/Ganda Points: 113
Offline Offline

Gender: Male
Posts: 2339



« Reply #8 on: January 19, 2010, 11:50:29 PM »

RE OPEN THIS THREAD:   tama po ba ang sequence ng circuit ko?

       ( + ) --> RESISTORS --> LED --> TRANSISTOR (2N2222A) -->
MCU                                                                                       RELAY(5VDC) / 250VAC
       ( - ) -->  --> --------------------------------------------->



Tama po ba ang proposed Relay circuit ko?

naguguluhan lang ako... saan ko e connect ang Ground ng TRANSISTOR(2N2222A)?







masisira ang transistor mo Smiley wala kang pull down sa base tsaka yung symbol mo ay baligtad PNP yung nasa diagram mo NPN ang 2N2222
Logged

Hi! I'm nucleus and i carry the charge Cool

Hindi ako nandito para makipagkumpitensya kanino man
LTSGü
Size C Battery
*****

Pogi/Ganda Points: 10
Offline Offline

Gender: Male
Posts: 190


~two things in life: RIGHT and WRONG~


« Reply #9 on: January 19, 2010, 11:53:29 PM »

dapat pointing out po yung emitter arrow.. Grin Grin

yung transistor mo pong 2n2222a is an NPN po..

Logged

Extremely Cute Engineer

~Craving for Knowledge~
marcelino
Moderator
Solar Power Satellite
*****

Pogi/Ganda Points: 247
Offline Offline

Posts: 5861


...keep moving forward! - Robinson's


« Reply #10 on: January 20, 2010, 12:17:08 AM »

reaver, why don't you use a schematic capture software... dami naman dyan libre... express pcb would be ok.


ok naman yung schematic mo... but i would recommend this one:


in this case, current for the LED will be pulled from the supply 5V supply rail instead from the MCU pin. note that most MCU I/Os can only source up to 25mA. yung sa schematic mo, ok naman... yun. i am just saying this one is better.

R3 should be replaced if in case you'd use a higher voltage coil rating for the relay.
Logged

"Don't take life seriously. After all, no one has ever come out of it alive. -Bugs Bunny"
nucleus
Gas Turbine
**

Pogi/Ganda Points: 113
Offline Offline

Gender: Male
Posts: 2339



« Reply #11 on: January 20, 2010, 12:40:20 AM »

reaver, why don't you use a schematic capture software... dami naman dyan libre... express pcb would be ok.


ok naman yung schematic mo... but i would recommend this one:


in this case, current for the LED will be pulled from the supply 5V supply rail instead from the MCU pin. note that most MCU I/Os can only source up to 25mA. yung sa schematic mo, ok naman... yun. i am just saying this one is better.

R3 should be replaced if in case you'd use a higher voltage coil rating for the relay.


ang opinyon ko sa circuit nya, pagkatapos mag logic high at bumalik na sa pagkalogic low ng input magflofloat na yung base na magreresulta sa paginit ng transistor dahil sa dahan dahang pagbaba ng base bias, magreresulta din sa pagkasensitive nito sa RF noise.
Logged

Hi! I'm nucleus and i carry the charge Cool

Hindi ako nandito para makipagkumpitensya kanino man
marcelino
Moderator
Solar Power Satellite
*****

Pogi/Ganda Points: 247
Offline Offline

Posts: 5861


...keep moving forward! - Robinson's


« Reply #12 on: January 20, 2010, 12:54:44 AM »

ang opinyon ko sa circuit nya, pagkatapos mag logic high at bumalik na sa pagkalogic low ng input magflofloat na yung base na magreresulta sa paginit ng transistor dahil sa dahan dahang pagbaba ng base bias, magreresulta din sa pagkasensitive nito sa RF noise.

natest ko na yan sir na walang pull down... pero sa high speed, parang di nga magwowork. baka magresult nga sa floating. dapat may pull-down talga.
just to be safe lagyan nalang... isang resistor lang naman yan.
Logged

"Don't take life seriously. After all, no one has ever come out of it alive. -Bugs Bunny"
nucleus
Gas Turbine
**

Pogi/Ganda Points: 113
Offline Offline

Gender: Male
Posts: 2339



« Reply #13 on: January 20, 2010, 01:00:11 AM »

natest ko na yan sir na walang pull down... pero sa high speed, parang di nga magwowork. baka magresult nga sa floating. dapat may pull-down talga.
just to be safe lagyan nalang... isang resistor lang naman yan.

paalala ko lang sir sa circuit nya may nakaseries na LED Smiley
Logged

Hi! I'm nucleus and i carry the charge Cool

Hindi ako nandito para makipagkumpitensya kanino man
nucleus
Gas Turbine
**

Pogi/Ganda Points: 113
Offline Offline

Gender: Male
Posts: 2339



« Reply #14 on: January 20, 2010, 01:07:35 AM »

masyadong sensitive din ang 2N2222

yung circuit nyo sir, * may 10k pull down try nyong hawakan yung 1k resistor magooscillate yung relay

pano pa kaya yung wala Smiley
Logged

Hi! I'm nucleus and i carry the charge Cool

Hindi ako nandito para makipagkumpitensya kanino man
reaver26
Size AAA Battery
***

Pogi/Ganda Points: 0
Offline Offline

Gender: Male
Posts: 99



« Reply #15 on: January 20, 2010, 11:24:46 AM »

masyadong sensitive din ang 2N2222

yung circuit nyo sir, * may 10k pull down try nyong hawakan yung 1k resistor magooscillate yung relay

pano pa kaya yung wala Smiley


yung circuit diagram ni sir marcellino ok na po ba yun? kasi gagawin ko na po mamaya... i will make 2 relay circuits

outputs are:
1. BUZZER (220VAC)
2. LIGHT BULB (220VAC)

other outputs are:
1. 12VDC Frame Solenoid Lock "PULL ACTION"
http://www.guardian-electric.com/pdf/28L_DC_FrameLatchingSolenoids.pdf
ask lang ako sir. will this work as our door lock for miniature setup?
opinions please.

2. 5VDC DOOR Security ALARM ()


pa tulong narin po sa circuit ko sa VDC outputs ko po... tnx

all i have are ideas about the flow pero as you have seen sa circuit diagram ko my FLAWS...
Logged
reaver26
Size AAA Battery
***

Pogi/Ganda Points: 0
Offline Offline

Gender: Male
Posts: 99



« Reply #16 on: January 20, 2010, 11:36:15 AM »

natest ko na yan sir na walang pull down... pero sa high speed, parang di nga magwowork. baka magresult nga sa floating. dapat may pull-down talga.
just to be safe lagyan nalang... isang resistor lang naman yan.

clarification sir sa sinabi mong
Quote
just to be safe lagyan nalang... isang resistor lang naman yan.

anong resistor ang tinutukoy mo sir?

tnx
Logged
rdpzycho
Technical People
Solar Power Satellite
*****

Pogi/Ganda Points: 465
Offline Offline

Gender: Male
Posts: 9154


Perfection is an Illusion


WWW
« Reply #17 on: January 20, 2010, 11:40:30 AM »

'yung 10k resistor na from base to emitter (ground) para may hihila sa base to ground kapag walang pumapasok sa input.
Logged

‎"Keep on starting, and finishing will take care of itself."

- Neil Fiore
reaver26
Size AAA Battery
***

Pogi/Ganda Points: 0
Offline Offline

Gender: Male
Posts: 99



« Reply #18 on: January 20, 2010, 01:51:43 PM »

'yung 10k resistor na from base to emitter (ground) para may hihila sa base to ground kapag walang pumapasok sa input.

circuit diagram that sir marcellino posted wala na ako babaguhin po dun? tama po ba sir rdpzycho?
Logged
reaver26
Size AAA Battery
***

Pogi/Ganda Points: 0
Offline Offline

Gender: Male
Posts: 99



« Reply #19 on: January 20, 2010, 01:53:14 PM »

Pa tulong narin po sa circuit ko sa VDC outputs ko po...

outputs are:
1. 12VDC Frame Solenoid "PULL ACTION" gagamitin ko po as LOCKING MECHANISM
http://www.guardian-electric.com/pdf/28L_DC_FrameLatchingSolenoids.pdf
     ask lang ako sir. will this work as our door lock for miniature setup?
     opinions please.

2. 5VDC DOOR Security ALARM

all i have are ideas about the flow pero as you have seen sa circuit diagram ko my FLAWS...
Logged
The Philippine Electronics and Technology Forum
   

 Logged
Pages: [1] 2 3 4   Go Up
  Print  
 
Jump to:  


Related Topics
Subject Started by Replies Views Last post
Switching Circuits through Relays « 1 2 »
Electrical Circuits and Devices
hardcore misery 26 3212 Last post January 21, 2010, 10:05:43 PM
by Monde
Help Electromechanical relays
Electrical Engineering Board
suyadang 3 804 Last post July 27, 2009, 09:47:09 AM
by bravokilo
ic type relays
Electrical Circuits and Devices
kennarionwong 1 679 Last post July 19, 2009, 05:36:57 PM
by Co0LëT♥
Home Automation: about relays help po
Electrical Circuits and Devices
mumu 11 867 Last post January 23, 2012, 12:36:40 PM
by rage3657
MOVED: Question about relays to be used with MICROCONTROLLERS
Electrical Circuits and Devices
Ate Shey 0 291 Last post January 25, 2010, 06:16:57 PM
by Ate Shey
Relays and Latching (student)
Industrial Electronics and Industrial Engineering
ochiboy 1 205 Last post November 19, 2010, 12:42:03 AM
by krazeneth
fifty projects using relays s.c.r.'s and triacs
General Electronics and Technology Discussion
tepx24 5 132 Last post October 05, 2011, 02:00:45 PM
by akhen
Powered by MySQL Powered by PHP Powered by SMF 1.1.15 | SMF © 2011, Simple Machines Valid XHTML 1.0! Valid CSS!