![]() | ![]() | ![]() |
| | |||||||
| Electronic Projects Design/Ideas/Reviews Are you building an electronic project or want to? Maybe you need some assistance? Come and submit your electronic questions here and let our experienced members find a solution. |
| | LinkBack | Thread Tools | Display Modes |
| | (permalink) |
| http://www.webbspinner.com/datasheets/relayboard.pdf I recently got the relay board above, populated with 20 24 volt SSR's, what i want to do is connect it to a simple microcontorller to allow me to turn them on and off. ive been looking over the board, i think all that require is to connect a control pin to a ground pin, the board has a main power terminal on it. there also appers to be resister networks inbetween the line before the 24 volts reachs the control pins, i was wondering if i could connect it directly to the microcontoller, thinking this wouldnt work and will cost me the controller. I have H11d2 optocouplers, i was wondering if they would be ok to use as a buffer between my controller and the relays. i posted the datasheet above that has the schematic for the board http://www.webbspinner.com/datasheets/relay.pdf those are the relays that came on the board. Any help and input on this would be greatly apprciated thanks josh | |
| |
| | (permalink) |
| 24V across the pins of a MCU would fry it. Include a 5V regulator. | |
| |
| | (permalink) |
| If the relays require 24V to control then you would need a buffer to translate the 5V logic from the uC to the 24V required by the board. Since the board relays aready have optoisolator coupling you could just use a transistor (with appropriate bias resistors) to translate between the voltages. The H11d2 should also work but it's not necessary. | |
| |
| | (permalink) |
| Wouldnt using a 5v regulator stop the relays from turning on if placed in the circuit?- they are rated for 15 - 30 vdc control voltage. I was actually wondering if mabye thats what the resistor network was there for, dropping the voltage low enought to run on a controller. I am aiming for a very low part count for the connections, thats why i was hoping the optocouples i have extra of would do the trick, connect them to the ground and control and a single resistor on the emitter side and then straight to the controller, provides isolations from the higher voltage and a low part count. im not sure if the colleter side needs any specific requirements to be meet for triggering and making that connection. thanks josh | |
| |
| | (permalink) | |
| Quote:
I was thinking of going with the h11d2s because i already have 50 of them in my parts bins, but i wasnt sure if they would need a bunch of parts to connect the 24 volt control pin to the ground pin. thanks josh Last edited by joshua17ss2; 8th April 2008 at 06:32 PM. | ||
| |
| | (permalink) | |
| Quote:
Any general purpose/switching transistor that has a 100mA, 50V minimum rating should do, something similar to the NPN 2N2222 for example. There are literally hundreds of types that would work. You would need a base resistor to the logic input signal. For a 5V control, the resistor value should be about 6k ohm (value not critical). The emitter is connected to ground and the collector to the the relay contol line. You need to apply 24V to the board logic voltage input. Remember that the transistor inverts the logic. | ||
| |
| | (permalink) |
| http://www.allaboutcircuits.com/vol_6/chpt_5/8.html Would this be a good tutoiral on how i can connect the transistor to the ciruit, just sub the LED for the control pin and ground line, and alter the resistor values alittle. I just need the simplest connection from microcontroller to relay that there can be. The 2n2222 says its rated for 60 volt max in the data sheet, i might have a bunch of these in my bin aswell. i will be able to make up some simple ciruits this weekend and give them a try. im still really new to electroincs, i got the general concepts, still working on the details of building circuits from scratch. Thanks josh | |
| |
| | (permalink) |
| No, only a 5V regulator that connects power to the MCU, not the relays. | |
| |
| | (permalink) | |
| Quote:
| ||
| |
| | (permalink) |
| I dont fully understand the purpose of those 3 groups of 3.3 k resistor networks on the control lines are for. i think i understand the board its self, the 1 terminal on the side i connect the 24 volt supply there to power everything, would just connecting the control pin to the ground do the trick, just a direct short between the 2, or does it need any kind of signal. I just want to make sure i get a first grasp on the information about this board. thanks josh | |
| |
| | (permalink) | |
| Quote:
In this design you turn on the relays by sinking the current from the 3.3k ohm resistor through the control terminals of the relay to ground (which can be done by a transistor). Applying 5V to the transistor base resistor turns on the relay, 0V to the transistor base resistor turns off the relay. Last edited by crutschow; 8th April 2008 at 10:24 PM. | ||
| |
| | (permalink) |
| Awesome i think i fully understand what need to be done to get this working for my purposes, you have been a big help. thanks for being patient with me thanks josh | |
| |
| | (permalink) |
| ok i managed to go thought my parts bins and the resistors that i have in stock are 2N3906 PNP transistors, they apper to be rated for 40 volts which is well over the 24 im using, and the emitter is rated at 5 vm the power disipation is rated 300mw, this would appear to fit the bill for what im doing. ill give it a shot and see what happens | |
| |
| | (permalink) |
| I looked thought the data sheet for the 2N3906 pnp transistor, it looks like it can switch the voltage, it also says that the emitter base it 5vdc, does that mean that i can do away with the resistor on the control side the connects to the microcontroller. or does that resistor provide a specific function other then altering the voltage similar to resistrors used on led's I also had one question about making the circuit, the ground pin on the transistor is shared correct, the ground of the 24 volts will connect to it and the 5 volt ground off my controller will connect to this as well, since the ground line is 0vdc this is safe, then all i have to do is send the microcontroller pin to high to activate the transistor and inturn switch the selected relay. Is this the general concept. does NPN or PNP type matter? Thank you josh | |
| |
| | (permalink) | |
| Quote:
If you notice, the 5V base-emitter voltage is in the "Absolute Maximum Rating Section". That's the maximum reverse voltage you should apply to the base-emitter junction. The normal forward-biased base-emitter voltage of an operating silicon transistor is about 0.65V (similar to a diode). You thus definitely need a base resistor to establish the desired base current. Yes, the emitter pin of the transistor would go to the shared ground. | ||
| |
| Bookmarks |
| Thread Tools | |
| Display Modes | |
| |
| | ||||
| Title | Starter | Forum | Replies | Latest |
| stk500 clock source atmel microcontroller | hani_a | General Electronics Chat | 5 | 2nd January 2008 06:19 AM |
| [help] car using microcontroller | rahuljin | Micro Controllers | 10 | 14th October 2007 05:35 PM |
| What appliance class has a plastic enclosure and an earth connection? | Dave#2 | Electronic Projects Design/Ideas/Reviews | 3 | 9th May 2006 09:11 AM |
| Problem with RF connection | Night Rider | Micro Controllers | 1 | 28th March 2006 09:19 PM |
| Connection of Siemens c167 microcontroller to peripherals. | Roslan | Electronic Projects Design/Ideas/Reviews | 3 | 23rd March 2004 07:52 PM |