0
\$\begingroup\$

This is an amateur application - 'adding auto control to a manual motor control circuit' using an optocoupler to bridge opposite polarity circuits.

The existing 20 yo motors x 2 (-12V) are controlled manually, forward and reverse, by push buttons. The push buttons switch -5V to motor control hardware (TTL presumably).

I am adding auto control of the motors from a +5V (ST-4 guide camera) source.

With help from Stackexchange experts, I have come up with a basic layout, below.

Switch off auto to use manual. The push buttons will be physically guarded and wont get much use. This might need some modification to lockout inadvertent activation of the PBs.

My questions...

I need to choose an optocoupler (there are 4 channels). The optocoupler must be capable of a similar output as the push buttons (which I presume is logic level) and fast enough to be responsive to the ST-4 pulse guide commands.

The circuit should not be overly complex, have few components and therefore be reliable - it's mission critical.

I have perused a number of likely datasheets and to my inexperienced eye the FOD0721 look promising. It's fast and has an appropriate voltage rating.

  1. Is this a sane choice, overkill or just inappropriate for the application?

  2. What should I be looking for in an optocoupler for this type of application?

enter image description here

schematic

simulate this circuit – Schematic created using CircuitLab

This is the edited version based on discussion below.

schematic

simulate this circuit

\$\endgroup\$
  • 1
    \$\begingroup\$ If you want the a signal applied to the optocoupler to have the same effect as pushing SW2 manually, you need to put the phototransistor where R2 is now, not between ground and Vout. \$\endgroup\$ – The Photon Apr 8 '17 at 2:15
  • \$\begingroup\$ On the other hand, the fact that the signals are only "presumably" TTL means you really ought to put a meter in series with SW2 and find out how much current flows through it when it's closed. Otherwise it's going to be hard to know how much optocurrent is required. \$\endgroup\$ – The Photon Apr 8 '17 at 2:17
  • \$\begingroup\$ Finally, you really haven't shown why you need an optocoupler. Read Olin's answer to your previous question for a solution that will be cheaper, faster, and take less board area. \$\endgroup\$ – The Photon Apr 8 '17 at 2:20
  • \$\begingroup\$ Also see Translating to “below ground” logic levels \$\endgroup\$ – The Photon Apr 8 '17 at 2:24
  • \$\begingroup\$ @The Photon. Thanks. All good points to follow up. I looked at Olin's common base transistor solution and don't quite follow it. I guess because it's entirely new to me. I want to protect the old electronics and an optocoupler was recommended as a solution on another site. \$\endgroup\$ – George Cheshire Apr 8 '17 at 2:24
2
\$\begingroup\$

I'd suggest that since you are unsure of the voltage and current levels on your switches (and you recognize that you don't have a lot of experience with electronics) you should use relays to activate your pushbutton circuits.

There are plenty of small relay boards designed for microprocessors such as Arduino that would allow yo to simply solder in voltage free contacts across your existing pushbuttons.
For example for about $5 you can get a 4 relay board with opto-isolated inputs that will run from 5 V.
enter image description here

You might not need opto-isolation, and those variants are available too.

Certainly this would seem to imply the absolute minimum of modification to your Telescope circuitry.

\$\endgroup\$
  • \$\begingroup\$ Thanks. A very good idea. Just need to connect an RJ12 to take the ST4 input. ST4 sends forward and reverse commands in two axis, in response to the movement / position of a star on a CCD. It's an active process. An optocoupler set up would be preferable. \$\endgroup\$ – George Cheshire Apr 8 '17 at 6:04
1
\$\begingroup\$

The optocoupler must be capable of a similar output as the push buttons (which I presume is logic level) and fast enough to be responsive to the ST-4 pulse guide commands.

The FOD0721 is not a good option for emulating a push-button switch. Just use a standard opto-coupler which has an NPN bipolar transistor or MOSFET output (not Darlington or logic gates) and a good Current Transfer Ratio (eg. Sharp PC812). The opto-coupler is simply wired directly across the switch (in series with SW1, which I presume is for disabling it).

Don't worry about speed. Any opto-coupler will be much faster than a pushbutton. Mechanical switches 'bounce' for several milliseconds during operation, whereas the opto-coupler should switch cleanly in a few microseconds.

A standard opto-coupler should work just as well as a switch, so long as it can pass enough current with low enough voltage drop when turned on.

\$\endgroup\$
  • \$\begingroup\$ Thank you. It's falling into place. The assistance provide by everyone is much appreciated. \$\endgroup\$ – George Cheshire Apr 8 '17 at 5:15
0
\$\begingroup\$

First your VDD2 is max 6 vdc, If you are going to send -12Vdc into the MOSFET I think it's not going to like it,
Second, are you sure of the motor current consumption. What king of motor runs on less then 10mA. 10ma is the max current that the FOD0721 can handle, potential problem here.
Is V2 the actual motor, or just the input control of a motor.
Why the 750ohms ?
If SW2 does the job directly to the motor, why using a 750ohms for SW1-FOD721 series ?
ThePhoton is right, Your FOD721 should be connected between SW1 and the R750, not from GND to SW1, this way you are shorting the TTL signal to ground. Or it could be connected from -5TTL to the SW1 switch then to the R750 then to the motor...

Please clarify some of those enigmas so we can better help you. Cheers...

\$\endgroup\$
  • \$\begingroup\$ Vout -5V goes to the motor control logic, not the motor itself. Similarly, SW1 switches -5V to the motor controller. The motors are -12V - the controller Is -5V. I will redraw the circuit as mentioned by The photon. \$\endgroup\$ – George Cheshire Apr 8 '17 at 4:24
  • \$\begingroup\$ Updated design is much better but must be corrected again. The OptoCoupler output is connected reverse polarity. The NPN emitter should connect to the lowest voltage, ie: -5Vttl and collector would go the the motor input in series to ground. that is only true if you are using a transistor output optocoupler. If you are planning to use the FOD721, it's another story. Just make sure the you use the proper VO as the output and GND2 as the sink to -5Vttl. Also, I agree with Jack Creasy, using such a module would greatly simply your task. Otherwise, FOD0721 would work if connected correctly. \$\endgroup\$ – Fred Cailloux Apr 8 '17 at 20:21
  • \$\begingroup\$ Calloux. Thanks. I will most likely use the Sharp PC812, as previously recommended. I see the error. \$\endgroup\$ – George Cheshire Apr 10 '17 at 1:21
0
\$\begingroup\$

I tested the circuit below on a breadboard (one side -ve polarity, the other +ve polarity and an ILCT6 bridging the gap).

A second look at the pushbutton wiring on the actual device confirmed ground side (low side?) switching.

Input was a basic Arduino digital pin HIGH LOW sketch. Emitter to ground (+ve) carried more current - brighter LED

Irrespective of emitter to GND or collector to GND, the output voltage did not vary - on my multimeter.

Having also run this circuit in a spice program, I added a small cap across the emitter collector to supress voltage spikes in the order of 3 - 4 volts.

Great learning experience.

Circuit editor does not work with touch screenenter image description here

\$\endgroup\$

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.