Shop OBEX P1 Docs P2 Docs Learn Events
Propeller Midi Circuit plz — Parallax Forums

Propeller Midi Circuit plz

computer guycomputer guy Posts: 1,113
edited 2009-05-24 22:30 in Propeller 1
Does anyone have a circuit diagram for midi in and out on a propeller?

Thank you smile.gif

▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
Check out my robot using the propeller RECONAUTOR

Comments

  • Ken PetersonKen Peterson Posts: 806
    edited 2007-10-12 04:04
    I did MIDI with a VIC-20 about 15 or so years ago...gosh that was a long time. smile.gif A Google search will most likely provide a starting point. I doubt I can find my notes from back then.

    BTW: didn't someone just post a very similar question?

    ▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔


    The more I know, the more I know I don't know.· Is this what they call Wisdom?

    Post Edited (Ken Peterson) : 10/12/2007 4:10:47 AM GMT
  • Bob Lawrence (VE1RLL)Bob Lawrence (VE1RLL) Posts: 1,720
    edited 2007-10-12 04:21
    You can use the URL below to view a schematic used for another Microcontroller and make a few adjustments such as the supply voltage.

    http://www.tigoe.net/pcomp/midi.shtml
  • computer guycomputer guy Posts: 1,113
    edited 2007-10-12 06:33
    Would changing the 270ohm resistor on the input to a 10k make the circuit prop compatible.
    Same with the output, would changing the 10k to a 270ohm get that to work.

    Am trying to make my prop board more like an atari by giving it midi in and out for synthesis.

    Thank you smile.gif

    ▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
    Check out my robot using the propeller RECONAUTOR
  • Ken PetersonKen Peterson Posts: 806
    edited 2007-10-12 14:07
    I imagine you could use the 10K for either. The value isn't that critical in this application.

    ▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔


    The more I know, the more I know I don't know.· Is this what they call Wisdom?
  • AribaAriba Posts: 2,690
    edited 2007-10-12 20:16
    Here are two possible circuits for MIDI IN/OUT. They are not tested but I don't see why they should not work.
    The first is based on the circuit of the link above, but adapted to the Propeller (3.3V). The second is a simpler version with an optocoupler that is very popular in Europe, I don't know if this is also the case in USA (you can use also the 6N138 instead).

    The value of the PullUp Resistor (270R in first circuit) depends a lot of the optocoupler. If you have one with digital output you can also use 10kOhm but if it is only a phototransistor-output, then 10kOhm is to high for a fast low to high transition at 31.25kBaud.

    Andy

    Edit: for the first circuit the serial output must be inverted (idle = Low) for the second not.
    545 x 401 - 4K
    545 x 401 - 3K
  • computer guycomputer guy Posts: 1,113
    edited 2007-10-12 20:34
    Thank you for the circuits.
    I am not very good with resistors and stuff.
    Guess I will have to learn that sometime.

    Thank you smile.gif

    ▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
    Check out my robot using the propeller RECONAUTOR
  • Phil Pilgrim (PhiPi)Phil Pilgrim (PhiPi) Posts: 23,514
    edited 2007-10-12 20:52
    270 ohms seems like an awfully stiff pullup on the collector of the photo transistor. For it to work with the transmit circuit shown, the optocoupler would have to have a CTR of at least 300% — and that's neglecting cable losses. But I've seen this same circuit in a number of places now. I wonder if it's just one of those typos that got copied a bunch of times and has taken on a life of its own.

    -Phil
  • edlikestoboogieedlikestoboogie Posts: 71
    edited 2009-02-27 23:19
    Has anyone gone about making a good MIDI out/in object with note velocity and maybe even aftertouch?
  • mparkmpark Posts: 1,305
    edited 2009-02-28 06:59
    I wouldn't call it "good", but this might give you some ideas: http://forums.parallax.com/showthread.php?p=774500
  • SSteveSSteve Posts: 808
    edited 2009-04-09 05:36
    Phil Pilgrim (PhiPi) said...
    270 ohms seems like an awfully stiff pullup on the collector of the photo transistor.

    Forgive the dumb question from a software guy, but does that mean we should use a smaller- or larger-value resistor?

    ▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
    OS-X: because making Unix user-friendly was easier than debugging Windows

    links:
    My band's website
    Our album on the iTunes Music Store
  • mparkmpark Posts: 1,305
    edited 2009-04-09 15:05
    From one software guy to another, I think Phil means a larger resistor, but in my experience the circuit as shown works fine with the Propeller.
  • hinvhinv Posts: 1,255
    edited 2009-05-24 20:25
    Hi mpark,

    Were you feeding the second prop a 5mhz signal and using the PLL on the second prop, or were you feeding it 80MHz or something in-between?
  • mparkmpark Posts: 1,305
    edited 2009-05-24 22:30
    There was no second prop. I used MIDI to communicate between a (music) keyboard and a prop.
Sign In or Register to comment.