Shop OBEX P1 Docs P2 Docs Learn Events
SX Proto Board and using a 4N25 as an input for the SX — Parallax Forums

SX Proto Board and using a 4N25 as an input for the SX

Little_Part_ManLittle_Part_Man Posts: 8
edited 2007-09-17 14:59 in General Discussion
Hi, Every One

I looked at the Data Sheet for the 4N25
at web page http://gamma.octopart.com/Fairchild__4N35.pdf

The problem that i have is what value do I need for the resisters in the test circuit they have on there web page

·there are no values listed·I will be using 5 volt regulated as the input to the 4N25 an the SX input

Can any one help with this

·Thanks for any help that any one can give me



▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
·Thanks For all·the Help that You Can Give So that i can know·how to write SX Code


······································· Stefan

Post Edited (Little_Part_Man) : 9/17/2007 11:24:31 AM GMT

Comments

  • pwillardpwillard Posts: 321
    edited 2007-09-17 03:19
    You treat it the same as an open collector pin on a TTL chip. This means you need to do what it takes to bring the input pin on the Stamp to a logic "1" when coupler isn't active and "0" when the transistor turns on. You might try a value between 4.7K and 10K tied from the collector on the coupler to Vdd and 200 ohms from there to the Stamp input pin. The emitter on the coupler would be tied straight to logic GND (Vss).

    ▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔

    There's nothing like a new idea and a warm soldering iron.
  • Little_Part_ManLittle_Part_Man Posts: 8
    edited 2007-09-17 11:31
    ·pwillard

    Thank You for your reply

    I will give this a try and see what i come up with

    Will i need a resister· from the base to emitter and if so

    Just enough to get a logic "0" and logic "1" this what i am thinking

    Please let me know if i am right about this or not

    Thank You for your help

    ▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
    ·Thanks For all·the Help that You Can Give So that i can know·how to write SX Code


    ······································· Stefan
  • pwillardpwillard Posts: 321
    edited 2007-09-17 14:59
    You shouldn't need to bias the base pin. Leave that up to the LED in the opto-coupler.

    ▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔

    There's nothing like a new idea and a warm soldering iron.
Sign In or Register to comment.