Continue to Site

Welcome to our site!

Electro Tech is an online community (with over 170,000 members) who enjoy talking about and building electronic circuits, projects and gadgets. To participate you need to register. Registration is free. Click here to register now.

  • Welcome to our site! Electro Tech is an online community (with over 170,000 members) who enjoy talking about and building electronic circuits, projects and gadgets. To participate you need to register. Registration is free. Click here to register now.

using 4n26 optoisolator

Status
Not open for further replies.

spirosd

New Member
Hello one and all,

Using a 4n26 to seperate pic circuit from step motor circuit and have wired the optoisolator in the following way (power supply to 4n26 different to the pic supply):

pin1 (anode - input from pic)
pin2 (cathode - ground with a 475 Ohm resistor)
pin3 (unused)
pin4 (emitter - output to control step motor)
pin5 (collector - 5V)
pin6 (base - unused)

I have confirmed
the output from the pic (using leds and volt meter)
the wiring of the 4n26 (placing both 5V and 1.5V on the anode pin 1 - again leds and volt meter)

When I try to get output using the pic as the input to the anode, nothing on the emitter?? Now I know I am doing something wrong, I just cannot figure it out. :oops: Any ideas on what I can try?

Thanks for your help
Spiros
 
Thanks for your reply williB.

I am using (www.web-ee.com/primers/files/opto-couplers.pdf) as a guide and utilising the pulse mode circuit (page 4 top left).

In that schematic, it shows pin 6 (base) free floating.

The weird thing is, that if I apply voltage to pin 1 directly the circuit works (base not connected). It does not work when I apply voltage from the pic (using PORTB pins)!
 
my bad , the optoisolator base is controlled by the LED..
ok
it sounds like a gound problem.

or put another way connect the diode ground to the ground of the 8051
 
williB said:
it sounds like a gound problem.

or put another way connect the diode ground to the ground of the 8051

:oops: I feel such a fool ... optoisolator ... isolating two circuits!! I was using the ground of the circuit that I was trying to isolate from (just like you identified!!).

Connecting the cathode to the correct ground, and voila, working very nicely now ... thanks for your help williB. :D
 
williB said:
the base turns on the transistor.
if you are not using it ,the transistor won't turn on.

The base of an optoisolator output transistor is normally excited by the photons from the LED. Most optos do not even have a base terminal.

Correct me if I'm wrong, but wouldn't the base terminal just be another way to excite the output transistor? If so, it'd take a special set of needs to want to do this in a circuit. Otherwise, you'd float it.
 
Oznog said:
williB said:
the base turns on the transistor.
if you are not using it ,the transistor won't turn on.

The base of an optoisolator output transistor is normally excited by the photons from the LED. Most optos do not even have a base terminal.

Correct me if I'm wrong, but wouldn't the base terminal just be another way to excite the output transistor? If so, it'd take a special set of needs to want to do this in a circuit. Otherwise, you'd float it.
This optoisolator did have a base terminal.
that post is the result of typing withiot thinking :shock: :oops: :shock:
 
Status
Not open for further replies.

Latest threads

New Articles From Microcontroller Tips

Back
Top