eh2k / squares-and-circles

squares-and-circles is an alternate firmware for the Eurorack module O_C, targeting Teensy 4.
https://eh2k.github.io/□●/
167 stars 12 forks source link

MIDI via T1 #31

Closed eh2k closed 1 year ago

eh2k commented 1 year ago

I've tried MIDI input on T1 and so far its not working for me. ...

Originally posted by @rheslip in https://github.com/eh2k/squares-and-circles/issues/1#issuecomment-1399544859

@rheslip

thanks for your feedback.

Do you have more info on how you connected it exactly?

Personally, I actually use midi only via the TR1 jack (midi via usb I have used something via the PC, but have no long-term experience).

For this I used the circuit from the readme. But I think it would be easier to implement, as long as the transister Q1 switches.

rheslip commented 1 year ago

Thanks for the reply.

I'm using an Arturia TS to MIDI adapter which has the + side of MIDI on the tip. I just checked it on the bench and its able to turn on the transistor in the O-C input circuit above. The T1 input on O-C is definitely working. So I assume my problem is the software setup.

On the MIDI setup page I have T1 as MIDI in and I've set each of the MIDI-CH#s to 1. I have verified that MIDI is on channel 1. I've tried various settings for trigger in using the resonator engine and I get nothing. If I put an LFO signal on T2 and assign trig to T2 it works. I see nothing in the MIDI monitor engine either.

Am I missing something in the setup?

Thanks, Rich


From: eh2k @.> Sent: January 28, 2023 7:39 AM To: eh2k/squares-and-circles @.> Cc: rheslip @.>; Mention @.> Subject: [eh2k/squares-and-circles] MIDI via T1 (Issue #31)

I've tried MIDI input on T1 and so far its not working for me. ...

Originally posted by @rhesliphttps://github.com/rheslip in #1 (comment)https://github.com/eh2k/squares-and-circles/issues/1#issuecomment-1399544859

@rhesliphttps://github.com/rheslip

thanks for your feedback.

Do you have more info on how you connected it exactly?

Personally, I actually use midi only via the TR1 jack (midi via usb I have used something via the PC, but have no long-term experience).

For this I used the circuit from the readme. But I think it would be easier to implement, as long as the transister Q1 switches.

[https://github.com/eh2k/squares-and-circles/raw/main/doc/midi2ts.png]https://github.com/eh2k/squares-and-circles/raw/main/doc/midi2ts.png

-

— Reply to this email directly, view it on GitHubhttps://github.com/eh2k/squares-and-circles/issues/31, or unsubscribehttps://github.com/notifications/unsubscribe-auth/ABRTUUFZAT5RPYIU6KIO4Y3WUUHPTANCNFSM6AAAAAAUJT7UMI. You are receiving this because you were mentioned.Message ID: @.***>

eh2k commented 1 year ago

I think that a type-c TS adapter unfortunately cannot work. See also discussion https://github.com/eh2k/squares-and-circles/discussions/33

rheslip commented 1 year ago

The Arturia adapter (from my Beatstep) is actually a TR. I set the whole thing up on my bench and as you can see there are negative going pulses on the output of Q1 (TR1) on the O-C mini. Tried switching back and forth from T1 to USB input, no joy. USB MIDI does work. If this works for you it should be working on my setup but it doesn't.

IMG_2441 IMG_2439 IMG_2440

eh2k commented 1 year ago

I looked at the connections of the TR adapter yesterday, and as I understand it, it can't work.

https://minimidi.world/?fbclid=IwAR31TqOyRkvdwaLYCxoU2a89hcy2PF3hltCtRKD7IzD5HbZqzn3m9NmiZzc#types

Please correct me if I am wrong:

image

The TIP is connected with PIN 4 - and is permanently 5V. The SLEVE is connected to PIN 5 - that is basically a pull-down, that is connected to the TX GPIO (e.g. https://github.com/eh2k/mutable-instruments-diy-archive/blob/main/docs/static/schematics/Shruthi-Digital-v08.pdf)

Since the transistor Q1, when it switches, pulls the Teensy pin 0 (TR1) to ground - the serial signal must be read inverted. Could you test if the level at the collector or Teensy PIN 0 changes also between 0 and 3.3V - as I see you are measuring the base of the transistor?

rheslip commented 1 year ago

You are correct - a TR adapter will not work regardless of how its wired up because the O-C input inverts the MIDI signal.

Thanks!