Optocoupler

An optocoupler can be used to control a circuit that's completely isolated from your microcontroller. In this case, imagine that the LED and battery pack are a hacked toy which you're turning on and off with Arduino.

Use an optocoupler such as the 4N35. Connect the optocoupler's pin 2 through a 220Ω resistor with Arduino's pin 11, and pin 2 with Arduino's ground. Then connect your external circuit to pins 5 (collector) and pin 6 (emitter). You can also apply voltage to pin 4 (base) of the optocoupler to raise the gain (just like with a normal transistor).

By omer
Created on April 2, 2009, 13:55

Category: Digital

Difficulty: kids

License:  Creative Commons Attribution-Share Alike 3.0 Unported License

Tags: optocoupler, transistor

Images

Files

Links

Comments

  1. thesavager # Sept. 18, 2009, 7:57 p.m.

    Hi Omer, I saw a few errors in your documentation, so I've corrected it for the others. Use an optocoupler such as the 4N35. Connect the optocoupler's pin 1 through a 220Ω resistor with Arduino's pin 11, and pin 2 with Arduino's ground. Then connect your external circuit to pins 5 (collector) and pin 4 (emitter). You can also apply voltage to pin 6 (base) of the optocoupler to raise the gain (just like with a normal transistor). Gr. Pascal

Login to post a comment...
  • Print this
© 2007 - 2011 University of Applied Sciences Potsdam