Possibly a bum midi in on my card, anyway to test serout?
Archiver
Posts: 46,084
I figure there's a chance my sound card (an m-audio quattro) might
have a bum midi-in port. Is there anyway to test the serout my
breadboard to see if any information is being sent at all? Me and the
tech tried an LED, figuring that it might show maybe a dim light, but
got nothing from it...
I've tried running several different midi programs through this now,
and I can't get anything from any of them. I know my stamp works, it
ain't fried. The code, well, I figure one of then pieces of code must
actually work, and the schematic, well, no one's said anything bad
about it. ideas?
thanks again for the patience guys...
--- In basicstamps@yahoogroups.com, "Jon Williams" <jwilliams@p...>
wrote:
> The opto-isolator is in the midi equipment. It would seem logical
that
> the resistor should already be there -- but if it isn't you may have
a
> problem. Unless you have a schematic or desire to crack open your
> equipment, go with the 220 ohm resistor; they don't cost much.
>
> I wrote a two articles on MIDI with the BS2 for Nuts & Volts:
>
> http://www.parallax.com/dl/docs/cols/nv/vol4/col/94.pdf
> http://www.parallax.com/dl/docs/cols/nv/vol4/col/95.pdf
>
> You can download the BS2 souce for the articles from our web site.
>
> -- Jon Williams
> -- Applications Engineer, Parallax
> -- Dallas Office
>
>
>
Original Message
> From: r_couldrey [noparse][[/noparse]mailto:r_couldrey@y...]
> Sent: Wednesday, November 12, 2003 1:23 PM
> To: basicstamps@yahoogroups.com
> Subject: [noparse][[/noparse]basicstamps] Re: midi opto-isolators and oh my god what
have I
> gotten myself into...
>
>
> I was under the impression that you didn't actually need an
> opto-isolator for this to actually run..? I had only heard of it
> trhough another reply from an earlier thread. I haven't found any
> information anywhere else that says you need one in order for the
> whole basic stamp midi setup to actually run...
>
> Well, If it is required to run, anyone know a place that sells'em
> cheap? Parallax doesn't seem to have any...
>
> and if I have been entirely mistaken and have read this wropng, that
I
> actually don't need an opto-isolator, then it's gotta either be a
> problem with the code or hardware or both. I updated my basic
> schematic for this whole thing. It might be a bit "off", as I only
got
> into this stuff a few months ago, and haven't ironed everything out
> (like the symbol for a flex sensor). Anyways, here it is.
> http://hybrid.concordia.
> ca/~Slynky/dfar398/page/midiwear/updatedmidiwear.html
>
> Me and a techie went over it, and couldn't really find anything too
> wrong with the whole thing. Finally found a 220 ohm resistor and put
> gave it to the midi cable pin requiring the power. The code,
however,
> even he couldn't figure out, but we still gave it a shot (several
> hours of shots actually), and came out with nothing. We came up with
> two variations, neither of which ended up working. They're linked
> here.
> http://hybrid.concordia.ca/~Slynky/dfar398/midi1.html
> http://hybrid.concordia.ca/~Slynky/dfar398/midi2.html
>
> I know no one has to do anything to help me, but I'm REALLY trying
to
> get this whole thing working, have been for almost 3 weeks now, with
> absolutely no luck whatsoever. Me and Vahid (the tech) are really at
a
> loss for this. I've read up on several pages on p[noparse][[/noparse]eople's projects
> that use this code and have it working. If anyone can help, maybe
> point out the (hopefully just) one thing that's wrong with either
the
> hardware or code, it would be greatly appreciated. I figure I'm
almost
> there, I just can't find the finish line is all.
>
> oh, and Jon, you rule, many thanks.
>
>
> --- In basicstamps@yahoogroups.com, "Jon Williams" <jwilliams@p...>
> wrote:
> > That really _shouldn't_ be a problem ... unless everything is on
the
> > ragged end of specifications. It's simply a current limiter for
an
> > opto-isolator.
> >
> > -- Jon Williams
> > -- Applications Engineer, Parallax
> > -- Dallas Office
> >
> >
> >
Original Message
> > From: r_couldrey [noparse][[/noparse]mailto:r_couldrey@y...]
> > Sent: Thursday, November 06, 2003 2:11 PM
> > To: basicstamps@yahoogroups.com
> > Subject: [noparse][[/noparse]basicstamps] resistor question regarding midi out from
> stamp
> >
> >
> > Out of curiosity, no matter what the code is, would using a 240ohm
> > resistor where a 220 ohm resistor should be in regards to pin 4 on
> the
> > female midi interface, and a 200 ohm resistor where a 220ohm
> resistor
> > should be in regards to pin 5 on the female midi connection
actually
> > cause the whole thing to not work at all? I was merely working
with
> > what was available, I still figured I'd get something out of it...
> was
> > I grossly mistaken? thanks.
> >
> > ry
> >
> >
> > --- In basicstamps@yahoogroups.com, "r_couldrey" <r_couldrey@y...>
> > wrote:
> > > okie dokie, currently have a bunch of wires all over my desk,
and
> > have
> > > lost several thousand strands of hair in frustration over this
> midi
> > > setup. Scratched the idea of 15 potentiometers due to cost
(about
> > > 5$CAN per POT and plastic knob, !!!!) Trying to get a flex
sensor
> on
> > a
> > > stamp to be recognized as a midi controller within Reason, and
> > cannot
> > > for the life of me get it working. I've tried altering the
> > parameters
> > > within the code, but it isn't sending out any midi through pin 0
> > from
> > > the flex sensor on pin 1. I'm certain I have the hardware set up
> > > correctly, but I'm pretty uncertain about how I've butchered
this
> > > code. Reason itself isn't detecting any midi information that I
> can
> > > see. If I've really blatantly messed anything up, it'd be great
to
> > > know, as I can't figure this out at all.
> > >
> > > a great many thanks in advance for any help. With any l,uck, I
> won't
> > > short circuit my Quattro in the meantime...
> > >
> > > ryan
> >
> >
> >
> > > 'constants, shouldn't change these
> > > midibaudmode CON 32780 '31.25kb, 8n1, non-inverted, open
> collector
> > > 'for 14-bit controllers - controller 32 is lsb of controller 0,
> etc.
> > > controllerLSBoffset CON 32 'MIDI status bytes:
> > > controller CON %10110000 + 0
> > > noteon CON %10010000 + 0
> > > pitchbend CON %11100000 + 0
> > >
> > > 'declare variables
> > > value VAR Word 'holds the 16-bit value read from the
pot
> > > pin VAR Nib 'which pin/pot we are reading at the
> moment
> > > statusbyte VAR Byte 'MIDI status; controller, noteon, or
> > pitchbend
> > > data1 VAR Byte 'first data byte, eg. controller or note
> > > number
> > > data2 VAR Byte 'second MIDI data byte, eg. value or
> > velocity
> > >
> > > 'user configuration - adjust these to suit you
> > > 'DANGER - check your circuitry and configure pins accordingly!!
> 'set
> > > unused pins to outputs DIRS = %1111111111111111 'all outs OUTS =
> > > %0000000000000000 'all low
> > > midichannel CON 1 'MIDI transmit channel
> > > midioutpin CON 0 'pin connected to MIDI out connector
> > > 'check the MIDI spec for a list of controller numbers you can
use
> > > controlleroffset CON 0 'add to pot's pin # to get MIDI
controller
> #
> > > hipot CON 1 'highest pin with a pot to measure
> > > lowpot CON 1 'lowest pin with a pot to measure
> > >
> > >
> > > doit:
> > > DEBUG HOME
> > > FOR pin = lowpot TO hipot
> > > 'read the value of the pot
> > > HIGH 1
> > > PAUSE 0
> > > RCTIME 1, 1, value
> > > DEBUG value, DEC pin, " reads ", DEC value, CR
> > > value = value >> 1 'drop the least significant bit
> > >
> > > 'send most significant 7 bits as continuous controller msg
> > > statusbyte = controller 'sending controller message
> > > data1 = pin + controlleroffset 'controller #
> > > data2 = value.HIGHBYTE
> > > SEROUT data1, data2,[noparse][[/noparse]statusbyte, data1, data2]
> > >
> > > 'uncomment this section to send 14-bit controller data
> > > 'send least significant 7 bits
> > > data1 = data1 + controllerLSBoffset
> > > data2 = value.LOWBYTE
> > > data2 = data2 >> 1 'convert to 7 bits
> > > 'use running status byte (can leave it out if unchanged)
> > > SEROUT data1, data2, [noparse][[/noparse]data1, data2]
> > > NEXT
> > > GOTO doit
> >
> >
> > 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/
> >
> >
> >
> >
> > This message has been scanned by WebShield. Please report SPAM to
> > abuse@p...
>
>
> 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/
>
>
>
>
> This message has been scanned by WebShield. Please report SPAM to
> abuse@p...
have a bum midi-in port. Is there anyway to test the serout my
breadboard to see if any information is being sent at all? Me and the
tech tried an LED, figuring that it might show maybe a dim light, but
got nothing from it...
I've tried running several different midi programs through this now,
and I can't get anything from any of them. I know my stamp works, it
ain't fried. The code, well, I figure one of then pieces of code must
actually work, and the schematic, well, no one's said anything bad
about it. ideas?
thanks again for the patience guys...
--- In basicstamps@yahoogroups.com, "Jon Williams" <jwilliams@p...>
wrote:
> The opto-isolator is in the midi equipment. It would seem logical
that
> the resistor should already be there -- but if it isn't you may have
a
> problem. Unless you have a schematic or desire to crack open your
> equipment, go with the 220 ohm resistor; they don't cost much.
>
> I wrote a two articles on MIDI with the BS2 for Nuts & Volts:
>
> http://www.parallax.com/dl/docs/cols/nv/vol4/col/94.pdf
> http://www.parallax.com/dl/docs/cols/nv/vol4/col/95.pdf
>
> You can download the BS2 souce for the articles from our web site.
>
> -- Jon Williams
> -- Applications Engineer, Parallax
> -- Dallas Office
>
>
>
Original Message
> From: r_couldrey [noparse][[/noparse]mailto:r_couldrey@y...]
> Sent: Wednesday, November 12, 2003 1:23 PM
> To: basicstamps@yahoogroups.com
> Subject: [noparse][[/noparse]basicstamps] Re: midi opto-isolators and oh my god what
have I
> gotten myself into...
>
>
> I was under the impression that you didn't actually need an
> opto-isolator for this to actually run..? I had only heard of it
> trhough another reply from an earlier thread. I haven't found any
> information anywhere else that says you need one in order for the
> whole basic stamp midi setup to actually run...
>
> Well, If it is required to run, anyone know a place that sells'em
> cheap? Parallax doesn't seem to have any...
>
> and if I have been entirely mistaken and have read this wropng, that
I
> actually don't need an opto-isolator, then it's gotta either be a
> problem with the code or hardware or both. I updated my basic
> schematic for this whole thing. It might be a bit "off", as I only
got
> into this stuff a few months ago, and haven't ironed everything out
> (like the symbol for a flex sensor). Anyways, here it is.
> http://hybrid.concordia.
> ca/~Slynky/dfar398/page/midiwear/updatedmidiwear.html
>
> Me and a techie went over it, and couldn't really find anything too
> wrong with the whole thing. Finally found a 220 ohm resistor and put
> gave it to the midi cable pin requiring the power. The code,
however,
> even he couldn't figure out, but we still gave it a shot (several
> hours of shots actually), and came out with nothing. We came up with
> two variations, neither of which ended up working. They're linked
> here.
> http://hybrid.concordia.ca/~Slynky/dfar398/midi1.html
> http://hybrid.concordia.ca/~Slynky/dfar398/midi2.html
>
> I know no one has to do anything to help me, but I'm REALLY trying
to
> get this whole thing working, have been for almost 3 weeks now, with
> absolutely no luck whatsoever. Me and Vahid (the tech) are really at
a
> loss for this. I've read up on several pages on p[noparse][[/noparse]eople's projects
> that use this code and have it working. If anyone can help, maybe
> point out the (hopefully just) one thing that's wrong with either
the
> hardware or code, it would be greatly appreciated. I figure I'm
almost
> there, I just can't find the finish line is all.
>
> oh, and Jon, you rule, many thanks.
>
>
> --- In basicstamps@yahoogroups.com, "Jon Williams" <jwilliams@p...>
> wrote:
> > That really _shouldn't_ be a problem ... unless everything is on
the
> > ragged end of specifications. It's simply a current limiter for
an
> > opto-isolator.
> >
> > -- Jon Williams
> > -- Applications Engineer, Parallax
> > -- Dallas Office
> >
> >
> >
Original Message
> > From: r_couldrey [noparse][[/noparse]mailto:r_couldrey@y...]
> > Sent: Thursday, November 06, 2003 2:11 PM
> > To: basicstamps@yahoogroups.com
> > Subject: [noparse][[/noparse]basicstamps] resistor question regarding midi out from
> stamp
> >
> >
> > Out of curiosity, no matter what the code is, would using a 240ohm
> > resistor where a 220 ohm resistor should be in regards to pin 4 on
> the
> > female midi interface, and a 200 ohm resistor where a 220ohm
> resistor
> > should be in regards to pin 5 on the female midi connection
actually
> > cause the whole thing to not work at all? I was merely working
with
> > what was available, I still figured I'd get something out of it...
> was
> > I grossly mistaken? thanks.
> >
> > ry
> >
> >
> > --- In basicstamps@yahoogroups.com, "r_couldrey" <r_couldrey@y...>
> > wrote:
> > > okie dokie, currently have a bunch of wires all over my desk,
and
> > have
> > > lost several thousand strands of hair in frustration over this
> midi
> > > setup. Scratched the idea of 15 potentiometers due to cost
(about
> > > 5$CAN per POT and plastic knob, !!!!) Trying to get a flex
sensor
> on
> > a
> > > stamp to be recognized as a midi controller within Reason, and
> > cannot
> > > for the life of me get it working. I've tried altering the
> > parameters
> > > within the code, but it isn't sending out any midi through pin 0
> > from
> > > the flex sensor on pin 1. I'm certain I have the hardware set up
> > > correctly, but I'm pretty uncertain about how I've butchered
this
> > > code. Reason itself isn't detecting any midi information that I
> can
> > > see. If I've really blatantly messed anything up, it'd be great
to
> > > know, as I can't figure this out at all.
> > >
> > > a great many thanks in advance for any help. With any l,uck, I
> won't
> > > short circuit my Quattro in the meantime...
> > >
> > > ryan
> >
> >
> >
> > > 'constants, shouldn't change these
> > > midibaudmode CON 32780 '31.25kb, 8n1, non-inverted, open
> collector
> > > 'for 14-bit controllers - controller 32 is lsb of controller 0,
> etc.
> > > controllerLSBoffset CON 32 'MIDI status bytes:
> > > controller CON %10110000 + 0
> > > noteon CON %10010000 + 0
> > > pitchbend CON %11100000 + 0
> > >
> > > 'declare variables
> > > value VAR Word 'holds the 16-bit value read from the
pot
> > > pin VAR Nib 'which pin/pot we are reading at the
> moment
> > > statusbyte VAR Byte 'MIDI status; controller, noteon, or
> > pitchbend
> > > data1 VAR Byte 'first data byte, eg. controller or note
> > > number
> > > data2 VAR Byte 'second MIDI data byte, eg. value or
> > velocity
> > >
> > > 'user configuration - adjust these to suit you
> > > 'DANGER - check your circuitry and configure pins accordingly!!
> 'set
> > > unused pins to outputs DIRS = %1111111111111111 'all outs OUTS =
> > > %0000000000000000 'all low
> > > midichannel CON 1 'MIDI transmit channel
> > > midioutpin CON 0 'pin connected to MIDI out connector
> > > 'check the MIDI spec for a list of controller numbers you can
use
> > > controlleroffset CON 0 'add to pot's pin # to get MIDI
controller
> #
> > > hipot CON 1 'highest pin with a pot to measure
> > > lowpot CON 1 'lowest pin with a pot to measure
> > >
> > >
> > > doit:
> > > DEBUG HOME
> > > FOR pin = lowpot TO hipot
> > > 'read the value of the pot
> > > HIGH 1
> > > PAUSE 0
> > > RCTIME 1, 1, value
> > > DEBUG value, DEC pin, " reads ", DEC value, CR
> > > value = value >> 1 'drop the least significant bit
> > >
> > > 'send most significant 7 bits as continuous controller msg
> > > statusbyte = controller 'sending controller message
> > > data1 = pin + controlleroffset 'controller #
> > > data2 = value.HIGHBYTE
> > > SEROUT data1, data2,[noparse][[/noparse]statusbyte, data1, data2]
> > >
> > > 'uncomment this section to send 14-bit controller data
> > > 'send least significant 7 bits
> > > data1 = data1 + controllerLSBoffset
> > > data2 = value.LOWBYTE
> > > data2 = data2 >> 1 'convert to 7 bits
> > > 'use running status byte (can leave it out if unchanged)
> > > SEROUT data1, data2, [noparse][[/noparse]data1, data2]
> > > NEXT
> > > GOTO doit
> >
> >
> > 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/
> >
> >
> >
> >
> > This message has been scanned by WebShield. Please report SPAM to
> > abuse@p...
>
>
> 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/
>
>
>
>
> This message has been scanned by WebShield. Please report SPAM to
> abuse@p...
Comments
http://www.midiox.com/zip/midioxse.exe
It's basically a midi packet sniffer.
On Thu, 13 Nov 2003, r_couldrey wrote:
> I figure there's a chance my sound card (an m-audio quattro) might
> have a bum midi-in port. Is there anyway to test the serout my
> breadboard to see if any information is being sent at all? Me and the
> tech tried an LED, figuring that it might show maybe a dim light, but
> got nothing from it...
>
> I've tried running several different midi programs through this now,
> and I can't get anything from any of them. I know my stamp works, it
> ain't fried. The code, well, I figure one of then pieces of code must
> actually work, and the schematic, well, no one's said anything bad
> about it. ideas?
>
> thanks again for the patience guys...
>
>
>
>
>
> --- In basicstamps@yahoogroups.com, "Jon Williams" <jwilliams@p...>
> wrote:
> > The opto-isolator is in the midi equipment. It would seem logical
> that
> > the resistor should already be there -- but if it isn't you may have
> a
> > problem. Unless you have a schematic or desire to crack open your
> > equipment, go with the 220 ohm resistor; they don't cost much.
> >
> > I wrote a two articles on MIDI with the BS2 for Nuts & Volts:
> >
> > http://www.parallax.com/dl/docs/cols/nv/vol4/col/94.pdf
> > http://www.parallax.com/dl/docs/cols/nv/vol4/col/95.pdf
> >
> > You can download the BS2 souce for the articles from our web site.
> >
> > -- Jon Williams
> > -- Applications Engineer, Parallax
> > -- Dallas Office
> >
> >
> >
Original Message
> > From: r_couldrey [noparse][[/noparse]mailto:r_couldrey@y...]
> > Sent: Wednesday, November 12, 2003 1:23 PM
> > To: basicstamps@yahoogroups.com
> > Subject: [noparse][[/noparse]basicstamps] Re: midi opto-isolators and oh my god what
> have I
> > gotten myself into...
> >
> >
> > I was under the impression that you didn't actually need an
> > opto-isolator for this to actually run..? I had only heard of it
> > trhough another reply from an earlier thread. I haven't found any
> > information anywhere else that says you need one in order for the
> > whole basic stamp midi setup to actually run...
> >
> > Well, If it is required to run, anyone know a place that sells'em
> > cheap? Parallax doesn't seem to have any...
> >
> > and if I have been entirely mistaken and have read this wropng, that
> I
> > actually don't need an opto-isolator, then it's gotta either be a
> > problem with the code or hardware or both. I updated my basic
> > schematic for this whole thing. It might be a bit "off", as I only
> got
> > into this stuff a few months ago, and haven't ironed everything out
> > (like the symbol for a flex sensor). Anyways, here it is.
> > http://hybrid.concordia.
> > ca/~Slynky/dfar398/page/midiwear/updatedmidiwear.html
> >
> > Me and a techie went over it, and couldn't really find anything too
> > wrong with the whole thing. Finally found a 220 ohm resistor and put
> > gave it to the midi cable pin requiring the power. The code,
> however,
> > even he couldn't figure out, but we still gave it a shot (several
> > hours of shots actually), and came out with nothing. We came up with
> > two variations, neither of which ended up working. They're linked
> > here.
> > http://hybrid.concordia.ca/~Slynky/dfar398/midi1.html
> > http://hybrid.concordia.ca/~Slynky/dfar398/midi2.html
> >
> > I know no one has to do anything to help me, but I'm REALLY trying
> to
> > get this whole thing working, have been for almost 3 weeks now, with
> > absolutely no luck whatsoever. Me and Vahid (the tech) are really at
> a
> > loss for this. I've read up on several pages on p[noparse][[/noparse]eople's projects
> > that use this code and have it working. If anyone can help, maybe
> > point out the (hopefully just) one thing that's wrong with either
> the
> > hardware or code, it would be greatly appreciated. I figure I'm
> almost
> > there, I just can't find the finish line is all.
> >
> > oh, and Jon, you rule, many thanks.
> >
> >
> > --- In basicstamps@yahoogroups.com, "Jon Williams" <jwilliams@p...>
> > wrote:
> > > That really _shouldn't_ be a problem ... unless everything is on
> the
> > > ragged end of specifications. It's simply a current limiter for
> an
> > > opto-isolator.
> > >
> > > -- Jon Williams
> > > -- Applications Engineer, Parallax
> > > -- Dallas Office
> > >
> > >
> > >
Original Message
> > > From: r_couldrey [noparse][[/noparse]mailto:r_couldrey@y...]
> > > Sent: Thursday, November 06, 2003 2:11 PM
> > > To: basicstamps@yahoogroups.com
> > > Subject: [noparse][[/noparse]basicstamps] resistor question regarding midi out from
> > stamp
> > >
> > >
> > > Out of curiosity, no matter what the code is, would using a 240ohm
> > > resistor where a 220 ohm resistor should be in regards to pin 4 on
> > the
> > > female midi interface, and a 200 ohm resistor where a 220ohm
> > resistor
> > > should be in regards to pin 5 on the female midi connection
> actually
> > > cause the whole thing to not work at all? I was merely working
> with
> > > what was available, I still figured I'd get something out of it...
> > was
> > > I grossly mistaken? thanks.
> > >
> > > ry
> > >
> > >
> > > --- In basicstamps@yahoogroups.com, "r_couldrey" <r_couldrey@y...>
> > > wrote:
> > > > okie dokie, currently have a bunch of wires all over my desk,
> and
> > > have
> > > > lost several thousand strands of hair in frustration over this
> > midi
> > > > setup. Scratched the idea of 15 potentiometers due to cost
> (about
> > > > 5$CAN per POT and plastic knob, !!!!) Trying to get a flex
> sensor
> > on
> > > a
> > > > stamp to be recognized as a midi controller within Reason, and
> > > cannot
> > > > for the life of me get it working. I've tried altering the
> > > parameters
> > > > within the code, but it isn't sending out any midi through pin 0
> > > from
> > > > the flex sensor on pin 1. I'm certain I have the hardware set up
> > > > correctly, but I'm pretty uncertain about how I've butchered
> this
> > > > code. Reason itself isn't detecting any midi information that I
> > can
> > > > see. If I've really blatantly messed anything up, it'd be great
> to
> > > > know, as I can't figure this out at all.
> > > >
> > > > a great many thanks in advance for any help. With any l,uck, I
> > won't
> > > > short circuit my Quattro in the meantime...
> > > >
> > > > ryan
> > >
> > >
> > >
> > > > 'constants, shouldn't change these
> > > > midibaudmode CON 32780 '31.25kb, 8n1, non-inverted, open
> > collector
> > > > 'for 14-bit controllers - controller 32 is lsb of controller 0,
> > etc.
> > > > controllerLSBoffset CON 32 'MIDI status bytes:
> > > > controller CON %10110000 + 0
> > > > noteon CON %10010000 + 0
> > > > pitchbend CON %11100000 + 0
> > > >
> > > > 'declare variables
> > > > value VAR Word 'holds the 16-bit value read from the
> pot
> > > > pin VAR Nib 'which pin/pot we are reading at the
> > moment
> > > > statusbyte VAR Byte 'MIDI status; controller, noteon, or
> > > pitchbend
> > > > data1 VAR Byte 'first data byte, eg. controller or note
> > > > number
> > > > data2 VAR Byte 'second MIDI data byte, eg. value or
> > > velocity
> > > >
> > > > 'user configuration - adjust these to suit you
> > > > 'DANGER - check your circuitry and configure pins accordingly!!
> > 'set
> > > > unused pins to outputs DIRS = %1111111111111111 'all outs OUTS =
> > > > %0000000000000000 'all low
> > > > midichannel CON 1 'MIDI transmit channel
> > > > midioutpin CON 0 'pin connected to MIDI out connector
> > > > 'check the MIDI spec for a list of controller numbers you can
> use
> > > > controlleroffset CON 0 'add to pot's pin # to get MIDI
> controller
> > #
> > > > hipot CON 1 'highest pin with a pot to measure
> > > > lowpot CON 1 'lowest pin with a pot to measure
> > > >
> > > >
> > > > doit:
> > > > DEBUG HOME
> > > > FOR pin = lowpot TO hipot
> > > > 'read the value of the pot
> > > > HIGH 1
> > > > PAUSE 0
> > > > RCTIME 1, 1, value
> > > > DEBUG value, DEC pin, " reads ", DEC value, CR
> > > > value = value >> 1 'drop the least significant bit
> > > >
> > > > 'send most significant 7 bits as continuous controller msg
> > > > statusbyte = controller 'sending controller message
> > > > data1 = pin + controlleroffset 'controller #
> > > > data2 = value.HIGHBYTE
> > > > SEROUT data1, data2,[noparse][[/noparse]statusbyte, data1, data2]
> > > >
> > > > 'uncomment this section to send 14-bit controller data
> > > > 'send least significant 7 bits
> > > > data1 = data1 + controllerLSBoffset
> > > > data2 = value.LOWBYTE
> > > > data2 = data2 >> 1 'convert to 7 bits
> > > > 'use running status byte (can leave it out if unchanged)
> > > > SEROUT data1, data2, [noparse][[/noparse]data1, data2]
> > > > NEXT
> > > > GOTO doit
> > >
> > >
> > > 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/
> > >
> > >
> > >
> > >
> > > This message has been scanned by WebShield. Please report SPAM to
> > > abuse@p...
> >
> >
> > 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/
> >
> >
> >
> >
> > This message has been scanned by WebShield. Please report SPAM to
> > abuse@p...
>
>
> 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/
>
>
>
Sean T. Lamont, CTO / Chief NetNerd, Abstract Software, Inc. (ServNet)
Seattle - Bellingham - Vancouver - Portland - Everett - Tacoma - Bremerton
email: lamont@a... WWW: http://www.serv.net
"Do not fear mistakes, There Are None" - Miles Davis
my midi-in on the quattro, but thanks anyways my friend.
any other way to test the serout without necesserily hooking it into
midi? Just to see if anything is running through it at all...?
ry
--- In basicstamps@yahoogroups.com, "Sean T. Lamont .lost."
<lamont@a...> wrote:
>
> I just got this link today, but it may be of some use:
>
> http://www.midiox.com/zip/midioxse.exe
>
>
> It's basically a midi packet sniffer.
>
>
> On Thu, 13 Nov 2003, r_couldrey wrote:
>
> > I figure there's a chance my sound card (an m-audio quattro) might
> > have a bum midi-in port. Is there anyway to test the serout my
> > breadboard to see if any information is being sent at all? Me and
the
> > tech tried an LED, figuring that it might show maybe a dim light,
but
> > got nothing from it...
> >
> > I've tried running several different midi programs through this
now,
> > and I can't get anything from any of them. I know my stamp works,
it
> > ain't fried. The code, well, I figure one of then pieces of code
must
> > actually work, and the schematic, well, no one's said anything bad
> > about it. ideas?
> >
> > thanks again for the patience guys...
> >
> >
> >
> >
> >
> > --- In basicstamps@yahoogroups.com, "Jon Williams" <jwilliams@p...
>
> > wrote:
> > > The opto-isolator is in the midi equipment. It would seem
logical
> > that
> > > the resistor should already be there -- but if it isn't you may
have
> > a
> > > problem. Unless you have a schematic or desire to crack open
your
> > > equipment, go with the 220 ohm resistor; they don't cost much.
> > >
> > > I wrote a two articles on MIDI with the BS2 for Nuts & Volts:
> > >
> > > http://www.parallax.com/dl/docs/cols/nv/vol4/col/94.pdf
> > > http://www.parallax.com/dl/docs/cols/nv/vol4/col/95.pdf
> > >
> > > You can download the BS2 souce for the articles from our web
site.
> > >
> > > -- Jon Williams
> > > -- Applications Engineer, Parallax
> > > -- Dallas Office
> > >
> > >
> > >
Original Message
> > > From: r_couldrey [noparse][[/noparse]mailto:r_couldrey@y...]
> > > Sent: Wednesday, November 12, 2003 1:23 PM
> > > To: basicstamps@yahoogroups.com
> > > Subject: [noparse][[/noparse]basicstamps] Re: midi opto-isolators and oh my god
what
> > have I
> > > gotten myself into...
> > >
> > >
> > > I was under the impression that you didn't actually need an
> > > opto-isolator for this to actually run..? I had only heard of it
> > > trhough another reply from an earlier thread. I haven't found
any
> > > information anywhere else that says you need one in order for
the
> > > whole basic stamp midi setup to actually run...
> > >
> > > Well, If it is required to run, anyone know a place that
sells'em
> > > cheap? Parallax doesn't seem to have any...
> > >
> > > and if I have been entirely mistaken and have read this wropng,
that
> > I
> > > actually don't need an opto-isolator, then it's gotta either be
a
> > > problem with the code or hardware or both. I updated my basic
> > > schematic for this whole thing. It might be a bit "off", as I
only
> > got
> > > into this stuff a few months ago, and haven't ironed everything
out
> > > (like the symbol for a flex sensor). Anyways, here it is.
> > > http://hybrid.concordia.
> > > ca/~Slynky/dfar398/page/midiwear/updatedmidiwear.html
> > >
> > > Me and a techie went over it, and couldn't really find anything
too
> > > wrong with the whole thing. Finally found a 220 ohm resistor and
put
> > > gave it to the midi cable pin requiring the power. The code,
> > however,
> > > even he couldn't figure out, but we still gave it a shot
(several
> > > hours of shots actually), and came out with nothing. We came up
with
> > > two variations, neither of which ended up working. They're
linked
> > > here.
> > > http://hybrid.concordia.ca/~Slynky/dfar398/midi1.html
> > > http://hybrid.concordia.ca/~Slynky/dfar398/midi2.html
> > >
> > > I know no one has to do anything to help me, but I'm REALLY
trying
> > to
> > > get this whole thing working, have been for almost 3 weeks now,
with
> > > absolutely no luck whatsoever. Me and Vahid (the tech) are
really at
> > a
> > > loss for this. I've read up on several pages on p[noparse][[/noparse]eople's
projects
> > > that use this code and have it working. If anyone can help,
maybe
> > > point out the (hopefully just) one thing that's wrong with
either
> > the
> > > hardware or code, it would be greatly appreciated. I figure I'm
> > almost
> > > there, I just can't find the finish line is all.
> > >
> > > oh, and Jon, you rule, many thanks.
> > >
> > >
> > > --- In basicstamps@yahoogroups.com, "Jon Williams" <jwilliams@p.
..>
> > > wrote:
> > > > That really _shouldn't_ be a problem ... unless everything is
on
> > the
> > > > ragged end of specifications. It's simply a current limiter
for
> > an
> > > > opto-isolator.
> > > >
> > > > -- Jon Williams
> > > > -- Applications Engineer, Parallax
> > > > -- Dallas Office
> > > >
> > > >
> > > >
Original Message
> > > > From: r_couldrey [noparse][[/noparse]mailto:r_couldrey@y...]
> > > > Sent: Thursday, November 06, 2003 2:11 PM
> > > > To: basicstamps@yahoogroups.com
> > > > Subject: [noparse][[/noparse]basicstamps] resistor question regarding midi out
from
> > > stamp
> > > >
> > > >
> > > > Out of curiosity, no matter what the code is, would using a
240ohm
> > > > resistor where a 220 ohm resistor should be in regards to pin
4 on
> > > the
> > > > female midi interface, and a 200 ohm resistor where a 220ohm
> > > resistor
> > > > should be in regards to pin 5 on the female midi connection
> > actually
> > > > cause the whole thing to not work at all? I was merely working
> > with
> > > > what was available, I still figured I'd get something out of
it...
> > > was
> > > > I grossly mistaken? thanks.
> > > >
> > > > ry
> > > >
> > > >
> > > > --- In basicstamps@yahoogroups.com, "r_couldrey"
<r_couldrey@y...>
> > > > wrote:
> > > > > okie dokie, currently have a bunch of wires all over my
desk,
> > and
> > > > have
> > > > > lost several thousand strands of hair in frustration over
this
> > > midi
> > > > > setup. Scratched the idea of 15 potentiometers due to cost
> > (about
> > > > > 5$CAN per POT and plastic knob, !!!!) Trying to get a flex
> > sensor
> > > on
> > > > a
> > > > > stamp to be recognized as a midi controller within Reason,
and
> > > > cannot
> > > > > for the life of me get it working. I've tried altering the
> > > > parameters
> > > > > within the code, but it isn't sending out any midi through
pin 0
> > > > from
> > > > > the flex sensor on pin 1. I'm certain I have the hardware
set up
> > > > > correctly, but I'm pretty uncertain about how I've butchered
> > this
> > > > > code. Reason itself isn't detecting any midi information
that I
> > > can
> > > > > see. If I've really blatantly messed anything up, it'd be
great
> > to
> > > > > know, as I can't figure this out at all.
> > > > >
> > > > > a great many thanks in advance for any help. With any l,uck,
I
> > > won't
> > > > > short circuit my Quattro in the meantime...
> > > > >
> > > > > ryan
> > > >
> > > >
> > > >
> > > > > 'constants, shouldn't change these
> > > > > midibaudmode CON 32780 '31.25kb, 8n1, non-inverted, open
> > > collector
> > > > > 'for 14-bit controllers - controller 32 is lsb of controller
0,
> > > etc.
> > > > > controllerLSBoffset CON 32 'MIDI status bytes:
> > > > > controller CON %10110000 + 0
> > > > > noteon CON %10010000 + 0
> > > > > pitchbend CON %11100000 + 0
> > > > >
> > > > > 'declare variables
> > > > > value VAR Word 'holds the 16-bit value read from
the
> > pot
> > > > > pin VAR Nib 'which pin/pot we are reading at the
> > > moment
> > > > > statusbyte VAR Byte 'MIDI status; controller, noteon, or
> > > > pitchbend
> > > > > data1 VAR Byte 'first data byte, eg. controller or
note
> > > > > number
> > > > > data2 VAR Byte 'second MIDI data byte, eg. value or
> > > > velocity
> > > > >
> > > > > 'user configuration - adjust these to suit you
> > > > > 'DANGER - check your circuitry and configure pins
accordingly!!
> > > 'set
> > > > > unused pins to outputs DIRS = %1111111111111111 'all outs
OUTS =
> > > > > %0000000000000000 'all low
> > > > > midichannel CON 1 'MIDI transmit channel
> > > > > midioutpin CON 0 'pin connected to MIDI out connector
> > > > > 'check the MIDI spec for a list of controller numbers you
can
> > use
> > > > > controlleroffset CON 0 'add to pot's pin # to get MIDI
> > controller
> > > #
> > > > > hipot CON 1 'highest pin with a pot to measure
> > > > > lowpot CON 1 'lowest pin with a pot to measure
> > > > >
> > > > >
> > > > > doit:
> > > > > DEBUG HOME
> > > > > FOR pin = lowpot TO hipot
> > > > > 'read the value of the pot
> > > > > HIGH 1
> > > > > PAUSE 0
> > > > > RCTIME 1, 1, value
> > > > > DEBUG value, DEC pin, " reads ", DEC value, CR
> > > > > value = value >> 1 'drop the least significant bit
> > > > >
> > > > > 'send most significant 7 bits as continuous controller
msg
> > > > > statusbyte = controller 'sending controller
message
> > > > > data1 = pin + controlleroffset 'controller #
> > > > > data2 = value.HIGHBYTE
> > > > > SEROUT data1, data2,[noparse][[/noparse]statusbyte, data1, data2]
> > > > >
> > > > > 'uncomment this section to send 14-bit controller data
> > > > > 'send least significant 7 bits
> > > > > data1 = data1 + controllerLSBoffset
> > > > > data2 = value.LOWBYTE
> > > > > data2 = data2 >> 1 'convert to 7 bits
> > > > > 'use running status byte (can leave it out if
unchanged)
> > > > > SEROUT data1, data2, [noparse][[/noparse]data1, data2]
> > > > > NEXT
> > > > > GOTO doit
> > > >
> > > >
> > > > 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/
> > > >
> > > >
> > > >
> > > >
> > > > This message has been scanned by WebShield. Please report SPAM
to
> > > > abuse@p...
> > >
> > >
> > > 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/
> > >
> > >
> > >
> > >
> > > This message has been scanned by WebShield. Please report SPAM
to
> > > abuse@p...
> >
> >
> > 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/
> >
> >
> >
>
> Sean T. Lamont, CTO / Chief NetNerd, Abstract Software, Inc.
(ServNet)
> Seattle - Bellingham - Vancouver - Portland - Everett - Tacoma -
Bremerton
> email: lamont@a... WWW: http://www.serv.net
> "Do not fear mistakes, There Are None" - Miles Davis