Electronic Projects, forums and more.

Go Back   Electronic Circuits Projects Diagrams Free > Electronics Forums > General Electronics Chat


General Electronics Chat This forum is for general chat about electronics, eg: Dont know what a part does? Dont know how to read a circuit? Want to get an opinion?

Reply
 
Tools
Old 23rd March 2009, 08:56 PM   #1
Default Opto Iso circuit, will this work??

Hi guys,
I'm working on a project that requires the use of an 4N25 Opto-Iso.
I need for the trigger to pull a pin on a 74138 low. Will this circuit work?

__________________
William Estrada
MrUmunhum@popdial.com
Mt-Umunhum-Wireless.net ( http://64.124.13.3 )
Ymessenger: MrUmunhum
MrUmunhum is offline  
Old 23rd March 2009, 09:06 PM   #2
Default

Use a resistor going from the pin 5 to +V (or whatever HI voltage is normally on the pin) and connect pin 4 to ground. When the output transistor is off, no current flows in the resistor. No current flow = no voltage drop so both ends of the resistor have the same voltage (+V). WHen the transistor turns on, the pin gets shorted to ground and current flows through the resistor to make a +V-GND voltage drop.

You should check the BJT is actually "shorting" the pin to ground by enough though since an opto transistor might not be activated enough in which case you would need to use the opto output transistor to instead power an amplification transistor (which is connected to ground on one end and connected to +V through a resistor on the other end same as before, just with an external transistor rather than with the opto transistor.

All that said... I have no idea why your circuit is the way it is. WHat's with the 5VDC? and the two pins on the IC? It appears very incomplete or incorrect. YOu also did not tell us which pin you were trying to pull low.
__________________
Tanaka Sensei (avatar) says: Please spell it "ridiculous" correctly! Not "rediculous". ^^

Last edited by dknguyen; 23rd March 2009 at 09:10 PM.
dknguyen is offline  
Old 24th March 2009, 10:54 PM   #3
Default

DK,

The circuit is not complete. My understanding of electronics is crude. I'm a software guy by training.

What I am trying to do is use a 74148 to transform 1 of 8 bits into a BCD representation of that state.
Code:
1 => 001
2 => 010
3 => 011
etc.
So there will be, in fact, 8 Opto-Isolators. Hope that clears things up?

Thanks for your response.
__________________
William Estrada
MrUmunhum@popdial.com
Mt-Umunhum-Wireless.net ( http://64.124.13.3 )
Ymessenger: MrUmunhum
MrUmunhum is offline  
Old 24th March 2009, 11:41 PM   #4
Default

The 74148 is a decoder and does the opposite of what you want, it converts BCD to 1 of 8 outputs.

You want an encoder circuit such as the CD40147. On the CD40147:

Connect 9 inputs (1 through 9) individually to Gnd (Vss) using nine 10k ohm resistors.

Connect input "0" to +5V (Vdd) (this makes the output 0000 when all inputs are "0").

Connect the emitter (pin 4)of each opto isolator to it's respective input 1 through 8.

Connect the collectors (pin 5) of all the opto isolators to +5V (Vdd).

Make sure there is a resistor in series with each opto input (pin 1) to limit the input current to the desired value.

Turning on any of the opt isolators will pull its respective output to +5V (logic 1). The outputs (A,B,C,D) will be the BCD value of the selected input, as you desired.
__________________
Carl
Curmudgeon Elektroniker
crutschow is offline  
Old 26th March 2009, 07:45 PM   #5
Default I'm confused!

Quote:
crutschow wrote:

The 74148 is a decoder and does the opposite of what you want, it converts BCD to 1 of 8 outputs.

You want an encoder circuit such as the CD40147.
According to the datasheet from Philips, the 74F148 is an encoder?
Code:
   8-input priority encoder     74F148
         FUNCTION TABLE
         Inputs                    Outputs
    EI   I0 I1 I2 I3 I4 I5 I6 I7   GS A0 A1 A2 EO
    H    X  X  X  X  X  X  X  X    H  H  H  H  H
    L    H  H  H  H  H  H  H  H    H  H  H  H  L
    L    X  X  X  X  X  X  X  L    L  L  L  L  H
    L    X  X  X  X  X  X  L  H    L  H  L  L  H
    L    X  X  X  X  X  L  H  H    L  L  H  L  H
    L    X  X  X  X  L  H  H  H    L  H  H  L  H
    L    X  X  X  L  H  H  H  H    L  L  L  H  H
    L    X  X  L  H  H  H  H  H    L  H  L  H  H
    L    X  L  H  H  H  H  H  H    L  L  H  H  H
    L    L  H  H  H  H  H  H  H    L  H  H  H  H

H = High voltage level
L = Low voltage level
X = Don’t care
Other than that, thanks for the info.
__________________
William Estrada
MrUmunhum@popdial.com
Mt-Umunhum-Wireless.net ( http://64.124.13.3 )
Ymessenger: MrUmunhum
MrUmunhum is offline  
Old 26th March 2009, 07:55 PM   #6
Default

hi,

As you say the 74F148 is an 8 bit to 3 octal encoder.
__________________
Eric " Good enough is Perfect "
I will NOT answer PM's requesting technical help, please use the Forum
PIC tutorials: Nigel's www.winpicprog.co.uk/ Bill's: www.blueroomelectronics.com/
ericgibbs is offline  
Old 26th March 2009, 08:03 PM   #7
Default Just checking

Quote:
Originally Posted by ericgibbs View Post
hi,

As you say the 74F148 is an 8 bit to 3 octal encoder.
Thanks, just want to make sure I an not losing my mind.
__________________
William Estrada
MrUmunhum@popdial.com
Mt-Umunhum-Wireless.net ( http://64.124.13.3 )
Ymessenger: MrUmunhum
MrUmunhum is offline  
Old 26th March 2009, 08:10 PM   #8
Default

Quote:
Originally Posted by MrUmunhum View Post
Thanks, just want to make sure I an not losing my mind.
hi,
Connect the emitter of the 4N25 to 0V, connect a 4k7 resistor from the 4N25 collector to the +5V supply, the junction of the collector and resistor goto the input pin of the 148 ic.

The EI pin should be connected to 0V and the EO pin to +V via a 4K7.

OK.?
__________________
Eric " Good enough is Perfect "
I will NOT answer PM's requesting technical help, please use the Forum
PIC tutorials: Nigel's www.winpicprog.co.uk/ Bill's: www.blueroomelectronics.com/
ericgibbs is offline  
Old 26th March 2009, 08:15 PM   #9
Default What is a 4K7 resistor

Quote:
Originally Posted by ericgibbs View Post
hi,
Connect the emitter of the 4N25 to 0V, connect a 4k7 resistor from the 4N25 collector to the +5V supply, the junction of the collector and resistor goto the input pin of the 148 ic.

The EI pin should be connected to 0V and the EO pin to +V via a 4K7.

OK.?
Typo? Did you mean a 47K resistor?
__________________
William Estrada
MrUmunhum@popdial.com
Mt-Umunhum-Wireless.net ( http://64.124.13.3 )
Ymessenger: MrUmunhum
MrUmunhum is offline  
Old 26th March 2009, 09:35 PM   #10
Default

Yes, it's 74F148 is an encoder. Must have somehow been looking at the wrong data sheet.
__________________
Carl
Curmudgeon Elektroniker
crutschow is offline  
Old 27th March 2009, 08:57 AM   #11
Default

Quote:
Originally Posted by MrUmunhum View Post
Typo? Did you mean a 47K resistor?
Hi,
It just another common way of writing the decimal point, so 4K7 == 4.7K

Its a 4.7K resistor you need.
__________________
Eric " Good enough is Perfect "
I will NOT answer PM's requesting technical help, please use the Forum
PIC tutorials: Nigel's www.winpicprog.co.uk/ Bill's: www.blueroomelectronics.com/
ericgibbs is offline  
Reply

Tags
circuit, iso, opto, work

Thread Tools
Display Modes


Similar
Title Starter Forum Replies Latest
will this circuit work? strokedmaro Electronic Projects Design/Ideas/Reviews 32 15th November 2008 07:32 AM
Why does this circuit even work? electronzen General Electronics Chat 2 28th September 2008 06:44 PM
Will this circuit work? b_reagle Electronic Projects Design/Ideas/Reviews 36 8th August 2008 08:24 PM
Needed - a simple Opto switch circuit BO NONN Electronic Projects Design/Ideas/Reviews 5 12th July 2006 05:32 AM
Will this circuit work??? jaxart Electronic Projects Design/Ideas/Reviews 0 30th August 2004 04:33 PM



All times are GMT. The time now is 03:35 PM.


Electronic Circuits  |  Learning Electronics
eXTReMe Tracker