0
\$\begingroup\$

I'm finding it difficult to understand how to read this optoisolator documentation.

Here is the optoisolator: http://html.alldatasheet.com/html-pdf/92367/TOSHIBA/TLP222A-2/248/1/TLP222A-2.html

The triggering device is an Arduino is an UNO (5v up to 40ma per pin).

My first configuration was UNO GND --> 220ohm resistor --> opto Anode --> opto cathode --> UNO pin 12. (Didn't work)

After that I tried removing the resistor, that didn't work either.

I'm guessing either my configuration is backwards, or I'm not using the correct resistor. If anyone could help me better understand how to parse the documentation, It would be greatly appreciated!

edit1: here is a photo of the configuration. There is an input on pin 13 which works fine, but the output on pin 12 (opto-isolator) does not. I can measure 5 volts with a multimeter but the opto-isolator does not short the drains.

resistor is rrbg (220 ohm 5%)

photo

\$\endgroup\$
1

2 Answers 2

1
\$\begingroup\$

Here is the standard Arduino powering LED circuit. It is shown connected to D13, but the same circuit for ANY of the Digital (or analog, for that matter) output pins. There is no siginficant different when driving an opto-isolator internal LED .

Arduino driving LED standard circuit

\$\endgroup\$
2
  • \$\begingroup\$ Thank you, the diagram clears up all of my questions. That said, I have attached an image of my configuration (which is the same as this diagram). It still doesn't work, although I can confirm that the Arduino is going HIGH. \$\endgroup\$
    – wookie4747
    Commented Jun 29, 2016 at 22:00
  • \$\begingroup\$ In the process of testing a cable had become loose. This works! (not that I doubted it) Thank you. \$\endgroup\$
    – wookie4747
    Commented Jun 29, 2016 at 22:06
0
\$\begingroup\$

You want conventional current to flow in to the LED anode. That usually means connecting the microcontroller's IO pin to the anode side rather than the cathode side.

\$\endgroup\$
1
  • \$\begingroup\$ Thanks, I read somewhere that anode was GND. Sounded wrong, but at this point I'm willing to try anything. \$\endgroup\$
    – wookie4747
    Commented Jun 29, 2016 at 22:01

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

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