Shop OBEX P1 Docs P2 Docs Learn Events
midi joystick interphase — Parallax Forums

midi joystick interphase

ArchiverArchiver Posts: 46,084
edited 2001-10-24 16:29 in General Discussion
Has anyone had any experience interphasing a midi computer joystick with a
stamp? I think they plug into the midi port of a computer's sound card so I
suppose it sends midi commands that could be interpreted by the stamp fairly
easily.

Thanks,
Stewart

Original Message

From: basicstamps@yahoogroups.com
Date: Tuesday, October 23, 2001 15:27:03
To: basicstamps@yahoogroups.com
Subject: RE: [noparse][[/noparse]basicstamps] Re: LCD compatibility for BASIC STAMP 1.....

This is a great link, but I have to be honest, I've never built a power
supply, I'm just interested in knowing basically how it is done? Is it
directly from a power supply or from other components in a given circuit you
are building? Anyone else?
(The list has been awfully quiet today, so I don't mind a fairly worthless
post [noparse]:)[/noparse]


TIA,


John Walton


Original Message
From: Kevin Olalde [noparse]/noparse]mailto:[url=http://forums.parallaxinc.com/group/basicstamps/post?postID=YWc6zuIHwaEQxi1mluaw3ZpL4ntRgxIhF-EMotWEN2nEPKTNGPFSR35nYqzXM3nrQN3_rHkxHX8Ut3I]kolalde@h...[/url
Sent: Tuesday, October 23, 2001 4:47 AM
To: basicstamps@yahoogroups.com
Subject: Re: [noparse][[/noparse]basicstamps] Re: LCD compatibility for BASIC STAMP 1.....


http://www.epanorama.net/psu.html#lowvoltage

John Walton wrote:
> I've seen this suggestion before, about the negative supply voltage on
> LCD's. I'm sorry, but I have to ask: How the heck does one supply
> -5v? Sorry for the stupid question, but I don't know!

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/


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/

[noparse][[/noparse]Non-text portions of this message have been removed]

Comments

  • ArchiverArchiver Posts: 46,084
    edited 2001-10-24 03:02
    Dear Stewart

    Oh, I am working in similar thing! I found Nuts & Volts Feb 2001 have an
    article got a closely related example. A game joystick used to interface
    with BS. Hope it is useful for you.

    John Leung


    Original Message
    From: Stewart Mayer <stewlist@k...>
    To: <basicstamps@yahoogroups.com>
    Sent: Wednesday, October 24, 2001 5:49 AM
    Subject: [noparse][[/noparse]basicstamps] midi joystick interphase


    > Has anyone had any experience interphasing a midi computer joystick with a
    > stamp? I think they plug into the midi port of a computer's sound card so
    I
    > suppose it sends midi commands that could be interpreted by the stamp
    fairly
    > easily.
    >
    > Thanks,
    > Stewart
    >
    >
    Original Message
    >
    > From: basicstamps@yahoogroups.com
    > Date: Tuesday, October 23, 2001 15:27:03
    > To: basicstamps@yahoogroups.com
    > Subject: RE: [noparse][[/noparse]basicstamps] Re: LCD compatibility for BASIC STAMP 1.....
    >
    > This is a great link, but I have to be honest, I've never built a power
    > supply, I'm just interested in knowing basically how it is done? Is it
    > directly from a power supply or from other components in a given circuit
    you
    > are building? Anyone else?
    > (The list has been awfully quiet today, so I don't mind a fairly worthless
    > post [noparse]:)[/noparse]
    >
    >
    > TIA,
    >
    >
    > John Walton
    >
    >
    >
    Original Message
    > From: Kevin Olalde [noparse]/noparse]mailto:[url=http://forums.parallaxinc.com/group/basicstamps/post?postID=ETGGfMQXxlsUAWY7yPpEAb_DRP_6u2ur6xqLq0J3ffoO4yw9wkyuB5FICgxBUw1HvCkKFH8ixOI]kolalde@h...[/url
    > Sent: Tuesday, October 23, 2001 4:47 AM
    > To: basicstamps@yahoogroups.com
    > Subject: Re: [noparse][[/noparse]basicstamps] Re: LCD compatibility for BASIC STAMP 1.....
    >
    >
    > http://www.epanorama.net/psu.html#lowvoltage
    >
    > John Walton wrote:
    > > I've seen this suggestion before, about the negative supply voltage on
    > > LCD's. I'm sorry, but I have to ask: How the heck does one supply
    > > -5v? Sorry for the stupid question, but I don't know!
    >
    > 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/
    >
    >
    > 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/
    >
    > [noparse][[/noparse]Non-text portions of this message have been removed]
    >
    >
    > 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 2001-10-24 05:53
    Unfortunately I have only recently been receiving Nuts & Volts so I don't
    have the article. But I did find a pinout description of the 15 pin D-sub
    connector used by joysticks at http://eleceng.ukc.ac
    uk/hwb/co_GameportPCMidi.html

    If the joystick x and y ouputs are a 0 - 5volt output from potentiometers,
    then I suppose a DA chip could be used to get a numerical position value to
    the stamp, I'm not sure, I'm new at this. Can you tell me briefly what N&V
    says about this?

    Thanks, Stewart




    Original Message
    From: basicstamps@yahoogroups.com
    Date: Tuesday, October 23, 2001 08:58:35 PM
    To: basicstamps@yahoogroups.com
    Subject: Re: [noparse][[/noparse]basicstamps] midi joystick interphase
    Dear Stewart
    Oh, I am working in similar thing! I found Nuts & Volts Feb 2001 have an
    article got a closely related example. A game joystick used to interface
    with BS. Hope it is useful for you.
    John Leung
    Original Message
    From: Stewart Mayer <stewlist@k...>
    To: <basicstamps@yahoogroups.com>
    Sent: Wednesday, October 24, 2001 5:49 AM
    Subject: [noparse][[/noparse]basicstamps] midi joystick interphase
    > Has anyone had any experience interphasing a midi computer joystick with a
    > stamp? I think they plug into the midi port of a computer's sound card so
    I
    > suppose it sends midi commands that could be interpreted by the stamp
    fairly
    > easily.
    >
    > Thanks,
    > Stewart
    >
    >
    Original Message
    >
    > From: basicstamps@yahoogroups.com
    > Date: Tuesday, October 23, 2001 15:27:03
    > To: basicstamps@yahoogroups.com
    > Subject: RE: [noparse][[/noparse]basicstamps] Re: LCD compatibility for BASIC STAMP 1.....
    >
    > This is a great link, but I have to be honest, I've never built a power
    > supply, I'm just interested in knowing basically how it is done? Is it
    > directly from a power supply or from other components in a given circuit
    you
    > are building? Anyone else?
    > (The list has been awfully quiet today, so I don't mind a fairly worthless
    > post [noparse]:)[/noparse]
    >
    >
    > TIA,
    >
    >
    > John Walton
    >
    >
    >
    Original Message
    > From: Kevin Olalde [noparse]/noparse]mailto:[url=http://forums.parallaxinc.com/group/basicstamps/post?postID=w4kK3zeTFk7u3H9TTDVofh9XrID7DQtQncHAVY2gGEKkGzd-raWggG_57nQgkB-yysrNsgkx6un1cbs]kolalde@h...[/url
    > Sent: Tuesday, October 23, 2001 4:47 AM
    > To: basicstamps@yahoogroups.com
    > Subject: Re: [noparse][[/noparse]basicstamps] Re: LCD compatibility for BASIC STAMP 1.....
    >
    >
    > http://www.epanorama.net/psu.html#lowvoltage
    >
    > John Walton wrote:
    > > I've seen this suggestion before, about the negative supply voltage on
    > > LCD's. I'm sorry, but I have to ask: How the heck does one supply
    > > -5v? Sorry for the stupid question, but I don't know!
    >
    > 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/
    >
    >
    > 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/
    >
    > [noparse][[/noparse]Non-text portions of this message have been removed]
    >
    >
    > 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/
    >
    >
    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 2001-10-24 06:35
    I am also working on something similar. Basically using a BS2e on
    each end of a TWS-434, RWS-434 pair to send the signal from either a
    gamepad or joystick. My main problem is with the gamepad itself. I
    have hooked it up to a breadboard with a stand alone power supply
    according to those pinouts, but I don't get the proper output
    voltages on the pins. Let me know what kind of success you have.
    Thanks.

    -John


    --- In basicstamps@y..., "Stewart Mayer" <stewlist@k...> wrote:
    > Unfortunately I have only recently been receiving Nuts & Volts so I
    don't
    > have the article. But I did find a pinout description of the 15
    pin D-sub
    > connector used by joysticks at http://eleceng.ukc.ac
    > uk/hwb/co_GameportPCMidi.html
    >
    > If the joystick x and y ouputs are a 0 - 5volt output from
    potentiometers,
    > then I suppose a DA chip could be used to get a numerical position
    value to
    > the stamp, I'm not sure, I'm new at this. Can you tell me briefly
    what N&V
    > says about this?
    >
    > Thanks, Stewart
    >
    >
    >
    >
    >
    Original Message
    > From: basicstamps@y...
    > Date: Tuesday, October 23, 2001 08:58:35 PM
    > To: basicstamps@y...
    > Subject: Re: [noparse][[/noparse]basicstamps] midi joystick interphase
    > Dear Stewart
    > Oh, I am working in similar thing! I found Nuts & Volts Feb 2001
    have an
    > article got a closely related example. A game joystick used to
    interface
    > with BS. Hope it is useful for you.
    > John Leung
    >
    Original Message
    > From: Stewart Mayer <stewlist@k...>
    > To: <basicstamps@y...>
    > Sent: Wednesday, October 24, 2001 5:49 AM
    > Subject: [noparse][[/noparse]basicstamps] midi joystick interphase
    > > Has anyone had any experience interphasing a midi computer
    joystick with a
    > > stamp? I think they plug into the midi port of a computer's sound
    card so
    > I
    > > suppose it sends midi commands that could be interpreted by the
    stamp
    > fairly
    > > easily.
    > >
    > > Thanks,
    > > Stewart
    > >
    > >
    Original Message
    > >
    > > From: basicstamps@y...
    > > Date: Tuesday, October 23, 2001 15:27:03
    > > To: basicstamps@y...
    > > Subject: RE: [noparse][[/noparse]basicstamps] Re: LCD compatibility for BASIC STAMP
    1.....
    > >
    > > This is a great link, but I have to be honest, I've never built a
    power
    > > supply, I'm just interested in knowing basically how it is done?
    Is it
    > > directly from a power supply or from other components in a given
    circuit
    > you
    > > are building? Anyone else?
    > > (The list has been awfully quiet today, so I don't mind a fairly
    worthless
    > > post [noparse]:)[/noparse]
    > >
    > >
    > > TIA,
    > >
    > >
    > > John Walton
    > >
    > >
    > >
    Original Message
    > > From: Kevin Olalde [noparse][[/noparse]mailto:kolalde@h...]
    > > Sent: Tuesday, October 23, 2001 4:47 AM
    > > To: basicstamps@y...
    > > Subject: Re: [noparse][[/noparse]basicstamps] Re: LCD compatibility for BASIC STAMP
    1.....
    > >
    > >
    > > http://www.epanorama.net/psu.html#lowvoltage
    > >
    > > John Walton wrote:
    > > > I've seen this suggestion before, about the negative supply
    voltage on
    > > > LCD's. I'm sorry, but I have to ask: How the heck does one
    supply
    > > > -5v? Sorry for the stupid question, but I don't know!
    > >
    > > To UNSUBSCRIBE, just send mail to:
    > > basicstamps-unsubscribe@y...
    > > 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/
    > >
    > >
    > > To UNSUBSCRIBE, just send mail to:
    > > basicstamps-unsubscribe@y...
    > > 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/
    > >
    > > [noparse][[/noparse]Non-text portions of this message have been removed]
    > >
    > >
    > > To UNSUBSCRIBE, just send mail to:
    > > basicstamps-unsubscribe@y...
    > > 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/
    > >
    > >
    > To UNSUBSCRIBE, just send mail to:
    > basicstamps-unsubscribe@y...
    > 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 2001-10-24 16:29
    A part of the program as below:


    JoyX CON 4 ' x-axis pot reading
    JoyY CON 5 ' y-axis pot reading
    BtnX VAR In6 ' x-axis button
    BtnY VAR In7 ' y-axis button
    JoyBtns VAR InB
    ....

    joyXval VAR Word ' joystick x reading
    joyYval VAR Word ' joystick y reading
    xAxis VAR Nib ' target axis
    yAxis VAR Nib
    btns VAR Nib ' button status

    ....

    Crosshair:
    btns = ~JoyBtns >> 2 & %0011 ' read buttons (1=down)
    BRANCH btns,[noparse][[/noparse]ShowTarget,ShowSmile,Main,Main]

    ShowTarget:
    GOSUB ReadJoyStick

    xAxis = joyXval/(JoyXMax / 5) MAX 4 ' crosshair column
    yAxis = joyYval/(JoyYMax / 7) MAX 6 ' crosshair row

    FOR col = 1 TO 5
    LOOKUP yAxis,[noparse][[/noparse]$01,$02,$04,$08,$10,$20,$40],d7219
    IF ((col-1) <> xAxis) THEN DrawColumn ' draw crosshair
    d7219 = $7F
    DrawColumn:
    SHIFTOUT Dpin,Clock,MSBFirst,[noparse][[/noparse]col,d7219]
    PULSOUT Load,3
    NEXT

    GOTO CrossHair
    ...

    ReadJoyStick:
    HIGH JoyX ' discharge RC caps
    HIGH JoyY
    PAUSE 5
    RCTIME JoyX,1,joyXval ' read x axis
    RCTIME JoyY,1,joyYval ' read y axis
    RETURN


    I hope this is useful for you. In fact, you can download the whole BS2 file
    from http://www.nutsvolts.com/toc_Pages/feb01toc.htm

    John

    Original Message
    From: Stewart Mayer <stewlist@k...>
    To: <basicstamps@yahoogroups.com>
    Sent: Wednesday, October 24, 2001 12:53 PM
    Subject: Re: [noparse][[/noparse]basicstamps] midi joystick interphase


    > Unfortunately I have only recently been receiving Nuts & Volts so I don't
    > have the article. But I did find a pinout description of the 15 pin D-sub
    > connector used by joysticks at http://eleceng.ukc.ac
    > uk/hwb/co_GameportPCMidi.html
    >
    > If the joystick x and y ouputs are a 0 - 5volt output from potentiometers,
    > then I suppose a DA chip could be used to get a numerical position value
    to
    > the stamp, I'm not sure, I'm new at this. Can you tell me briefly what
    N&V
    > says about this?
    >
    > Thanks, Stewart
    >
    >
    >
    >
    >
    Original Message
    > From: basicstamps@yahoogroups.com
    > Date: Tuesday, October 23, 2001 08:58:35 PM
    > To: basicstamps@yahoogroups.com
    > Subject: Re: [noparse][[/noparse]basicstamps] midi joystick interphase
    > Dear Stewart
    > Oh, I am working in similar thing! I found Nuts & Volts Feb 2001 have an
    > article got a closely related example. A game joystick used to interface
    > with BS. Hope it is useful for you.
    > John Leung
    >
    Original Message
    > From: Stewart Mayer <stewlist@k...>
    > To: <basicstamps@yahoogroups.com>
    > Sent: Wednesday, October 24, 2001 5:49 AM
    > Subject: [noparse][[/noparse]basicstamps] midi joystick interphase
    > > Has anyone had any experience interphasing a midi computer joystick with
    a
    > > stamp? I think they plug into the midi port of a computer's sound card
    so
    > I
    > > suppose it sends midi commands that could be interpreted by the stamp
    > fairly
    > > easily.
    > >
    > > Thanks,
    > > Stewart
    > >
    > >
    Original Message
    > >
    > > From: basicstamps@yahoogroups.com
    > > Date: Tuesday, October 23, 2001 15:27:03
    > > To: basicstamps@yahoogroups.com
    > > Subject: RE: [noparse][[/noparse]basicstamps] Re: LCD compatibility for BASIC STAMP 1.....
    > >
    > > This is a great link, but I have to be honest, I've never built a power
    > > supply, I'm just interested in knowing basically how it is done? Is it
    > > directly from a power supply or from other components in a given circuit
    > you
    > > are building? Anyone else?
    > > (The list has been awfully quiet today, so I don't mind a fairly
    worthless
    > > post [noparse]:)[/noparse]
    > >
    > >
    > > TIA,
    > >
    > >
    > > John Walton
    > >
    > >
    > >
    Original Message
    > > From: Kevin Olalde [noparse]/noparse]mailto:[url=http://forums.parallaxinc.com/group/basicstamps/post?postID=aoYDSK-91vT1SLb7BzREqt2k21A7t-WLC-tPVcXC371uKE5vg4wvx8IBmYbsPWlzNEDjrxS5dA]kolalde@h...[/url
    > > Sent: Tuesday, October 23, 2001 4:47 AM
    > > To: basicstamps@yahoogroups.com
    > > Subject: Re: [noparse][[/noparse]basicstamps] Re: LCD compatibility for BASIC STAMP 1.....
    > >
    > >
    > > http://www.epanorama.net/psu.html#lowvoltage
    > >
    > > John Walton wrote:
    > > > I've seen this suggestion before, about the negative supply voltage on
    > > > LCD's. I'm sorry, but I have to ask: How the heck does one supply
    > > > -5v? Sorry for the stupid question, but I don't know!
    > >
    > > 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/
    > >
    > >
    > > 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/
    > >
    > > [noparse][[/noparse]Non-text portions of this message have been removed]
    > >
    > >
    > > 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/
    > >
    > >
    > 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/
    >
    > 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/
    >
    >
Sign In or Register to comment.