simple IO help please
SeaRay
Posts: 4
I am just·starting out with the·propeller and I desperately need some help if anyone would be so kind.
·
I am trying to take a +3v or +5v pused·signal in and trigger an output that is -3v or -5v (see theoretic diagram).
·
This is something that I would normally do with a NPN transistor but it would be fun to do with Parallax products due to some advanced features I can add later...
·
(DIAGRAM)
Common +5v
····································································|······················································· |
Simple +5v pulsed signal 1
à|·PROP |
à---- (-5v )
Device input 1
Simple +5v pulsed signal 2
à |PROP |
à
(-5v )
Device input 2
Simple +5v pulsed signal 3
à |PROP |
à
(-5v )
Device input 3
Simple +5v pulsed signal 4
à |PROP |
à
(-5v )
Device input 4
Simple +5v pulsed signal 5
à |PROP |
à
(-5v )
Device input 5
Simple +5v pulsed signal 6
à |PROP |
à----(-5v )
Device input 6
···································································· |···················· ································· |
···································································· |································· ···················· |
Common Ground
·
·
Can someone please offer a sample of code for the Propeller?
·
·
Thank you
Post Edited (SeaRay) : 8/3/2007 9:28:03 PM GMT
Comments
▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
Thanks for your response
Remember that the -5V supply is just an isolated 5V supply with the positive side connected to ground.
Do you really want switched -5V?· That's unusual these days.
Post Edited (Mike Green) : 8/3/2007 10:53:07 PM GMT
Another very simple and low cost solution is using a MAX 232, which outputs around +6 V as well as - 6V @ 40 mA when connected to 3.3 V. With a $4 rather than a 40 cents investment you can also use a MAX233 which needs no external components at all.. Both switch faster than 100 kHz
Post Edited (deSilva) : 8/4/2007 10:14:05 AM GMT