Shop OBEX P1 Docs P2 Docs Learn Events
Basic I/O question — Parallax Forums

Basic I/O question

ArchiverArchiver Posts: 46,084
edited 2003-02-12 04:23 in General Discussion
Hi everyone! I have a couple of questions that I would appreciate
some confirmation with. First, my senior project has 3 sensors that
are all interfaced to the stamp thru parallel ADC's (Basic stamp
2p40). Say two of the sensors ADC's are wired to the mainio 0-15
pins. If I execute...
X=INL
Debug ?X
(1)Will X contain, and the screen display, the value of the 8 bit
adc data in decimal?

(2)Secondly, I've wrote a test program to turn on and off four
relays in sucession with pauses and debug commands in btween (to
test that the coresponding solenoids are working). The pin output
voltage from the stamp is @1.9 to 2.2 volts. The relays we are
using are made by NTE and are model#R45-ID30-5/6F. I'm not familiar
with them (or the Stamp really!), but do I need a line driver for
the stamp to trip the relays?

(3)Should the debug window on my laptop run in real time with the
Stamp?
Thanks for the help!

Comments

  • ArchiverArchiver Posts: 46,084
    edited 2003-02-12 03:44
    I too, am new to the Basic stamps, however, with regard to your second
    question, it is better that you don't drive the relays directly with the
    microcontroller. Probably the simplest and cheapest way with the low
    voltage relays that you have is to use a bipolar transistor with the
    collector and emitter wired in series with the relay coil. And then wire
    the base to your I/O pin, with the appropriate load resistor of course. If
    you don't isolate the relay in some way from the microcontroller you could
    run into problems. Specifically when the relay is deenergized and the
    magnetic field is collapsing. Hope I could help.


    Original Message
    From: <mellwhead@y...>
    To: <basicstamps@yahoogroups.com>
    Sent: Tuesday, February 11, 2003 9:24 PM
    Subject: [noparse][[/noparse]basicstamps] Basic I/O question


    > Hi everyone! I have a couple of questions that I would appreciate
    > some confirmation with. First, my senior project has 3 sensors that
    > are all interfaced to the stamp thru parallel ADC's (Basic stamp
    > 2p40). Say two of the sensors ADC's are wired to the mainio 0-15
    > pins. If I execute...
    > X=INL
    > Debug ?X
    > (1)Will X contain, and the screen display, the value of the 8 bit
    > adc data in decimal?
    >
    > (2)Secondly, I've wrote a test program to turn on and off four
    > relays in sucession with pauses and debug commands in btween (to
    > test that the coresponding solenoids are working). The pin output
    > voltage from the stamp is @1.9 to 2.2 volts. The relays we are
    > using are made by NTE and are model#R45-ID30-5/6F. I'm not familiar
    > with them (or the Stamp really!), but do I need a line driver for
    > the stamp to trip the relays?
    >
    > (3)Should the debug window on my laptop run in real time with the
    > Stamp?
    > Thanks for the help!
    >
    >
    > To UNSUBSCRIBE, just send mail to:
    > basicstamps-unsubscribe@yahoogroups.com
    > from the same email address that you subscribed. Text in the Subject and
    Body of the message will be ignored.
    >
    >
    > Your use of Yahoo! Groups is subject to http://docs.yahoo.com/info/terms/
    >
  • ArchiverArchiver Posts: 46,084
    edited 2003-02-12 04:23
    In a message dated 2/11/2003 7:25:44 PM Pacific Standard Time,
    mellwhead@y... writes:

    > 2)Secondly, I've wrote a test program to turn on and off four
    > relays in sucession with pauses and debug commands in btween (to
    > test that the coresponding solenoids are working). The pin output
    > voltage from the stamp is @1.9 to 2.2 volts. The relays we are
    > using are made by NTE and are model#R45-ID30-5/6F. I'm not familiar
    > with them (or the Stamp really!), but do I need a line driver for
    > the stamp to trip the relays?
    >

    Do drive your relays, a popular IC is a ULN2003 Darlington array. Go to
    Google and type in ULN2003 and you can download the spec sheet..

    Ken


    [noparse][[/noparse]Non-text portions of this message have been removed]
Sign In or Register to comment.