Help Getting The BS2SX To Sense That A Circuit Is On.
I understand pull-up and pull-down resistors used with switches to detect input but I·want to go a step further.
Can someone point me in the right direction getting the BS2SX to detect when an external·circuit is on?
I would like to be able to program my BS2SX to see when an electromagnet has been energized from a separate circuit and then execute my program.
Thanks electroheads!
Cheers
▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
What if there was nothing? Nothing is something!
Can someone point me in the right direction getting the BS2SX to detect when an external·circuit is on?
I would like to be able to program my BS2SX to see when an electromagnet has been energized from a separate circuit and then execute my program.
Thanks electroheads!
Cheers
▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
What if there was nothing? Nothing is something!
Comments
www.allegromicro.com/en/Products/Categories/Sensors/index.asp
www.allegromicro.com/en/Products/Design/Tech_Pubs.asp#B
I am enclosing a PDF file which Allegro MicroSystems published and is freely available on the internet. These sensors cost around $1.50 or less and can be found on sites like www.Mouser.com and www.Digikey.com.
The link for the attached PDF is: www.allegromicro.com/en/Products/Design/an/an27701.pdf
▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
Chris Savage
Parallax Tech Support
Yes, All I am looking to do is to detect when the circuit is on.
The electromagnet uses 12V and I was trying to find a way to tell BS2SX that it was on.
Do I really need an opto-coupler for 12V? Could I just use a resistor to pull the voltage down to a level the BS2SX could handle? Though the use of an opto-coupler makes more sense because I would be using the opto-coupler as a switch essentially right.
Thank you again for you suggestions everyone here is always very helpful.
▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
What if there was nothing? Nothing is something!
Post Edited (beazleybub) : 4/29/2008 4:31:22 PM GMT
Would it be possible to use a transistor with a pull-down resistor to act as a switch to detect when 12V is present?
▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
What if there was nothing? Nothing is something!
Post Edited (beazleybub) : 4/30/2008 5:38:01 PM GMT
Is the reason for·using an opto-coupler instead of a transistor just for BS2SX protection from voltage spikes?
And is it hard to determine which opto-coupler to use?
Would this one work ok?
http://www.mouser.com/Search/ProductDetail.aspx?qs=4ATM%2ftDn4NqEnv6KYbMn5Q%3d%3d
▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
What if there was nothing? Nothing is something!
Post Edited (beazleybub) : 4/29/2008 7:21:41 PM GMT
The reason for suggesting an optocoupler is that you have +12V running around. It's easier to make a mistake in wiring with an input transistor switch and destroy the Stamp than it is to make a mistake in wiring an optocoupler. Optocouplers are cheap. Stamps are expensive.
When the salesperson asked, "What in the world do you need canned smoke for?" the man replied, I was working on a electronics kit you sold me earlier and when I powered it up the smoke escaped.
I used·NPN transistors as a switch to supply power for some relays in a previous project and hoped that I could use them again for my current application because I have a wide variety of NPN and PNP on hand.
I do however appreciate the fact that an opto-coupler is pretty much fail safe when it comes to using voltages capable of euthanizing my stamp.
Thank you everyone for the suggestions!
▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
What if there was nothing? Nothing is something!