Two Teensy's and Two Computers (Redundant Midi Controller)

Status
Not open for further replies.
I found this thread quite useful for a project I'm working on (a midi controller that uses button presses from a single-button to control two separate teensy's and therefore, two separate computers at the same time).

However, I wanted to verify that using diodes like this are also a good way to connect a variable resistor to two separate teensy 3.2 boards. Same use case, computers need to get a midi signal at the same time and both need to operate independently if one fails.

I'm also wondering if I need a diode (5817) between the wiper + the power of the slide resistor and both boards. Thanks for any help you can offer. Relevant portion of schematic attached.

Screen Shot 2019-07-10 at 6.52.38 AM.jpg
 
Consider connecting inputs only to one Teensy and using Tx on it to send MIDI as send data to the Rx of the other as a MIDI THRU port.

They'd have to share common ground so I think you'd want to check about power issues but I recall it's possible.

At the time of the following the issue was library inconsistencies that made it difficuit. These have since been resolved making the coding part of this thread moot
https://forum.pjrc.com/threads/31708-Passing-regular-MIDI-from-host-to-host

...you can also put an opto-isolator between the Teensys, where it becomes a regular hardware MIDI circuit without the DIN cconnectors
 
Rushed the schematic a bit and made a couple confusing mistakes. Here's what I'm trying to do. I assume the wipers also need diodes but I don't know that this even works so I wanted to get some input before I plug things in.

Screen Shot 2019-07-10 at 9.06.05 AM.jpg
 
Thanks for the input, Oddson. However, part of the problem is that this is a redundant system, meaning if computer A goes down and Teensy A loses power, I still need to send midi information from my inputs (buttons and sliders) to the other Teensy. So the data needs to go directly from inputs to Teensy, not relayed over serial communication, etc.
 
Then you need to have a redundant power supply that powers both teensy if either has 5v.

Otherwise I can't see how you power the voltage dividers.

You can't use regular MIDI? Seems to me you just want a splitter really.
 
Then use separate power.

I finally read the diode thread... they are there because of the pull-up voltages.*

With voltage dividers the issue is the hot rail*

If you power the voltage dividers separately then you should be able to connect the wiper to the high input-impedence analog pins on each Teensy.

The problem in the digital example is the pull-up. But analog input pins don't source or sink current at any significant amount so I believe* this will work.

* Caveat.... I am not an EE...
 
Last edited:
Maybe using a pot with 2 separate circuits would be simpler?

pot.jpg

The one possible gotcha is to check the pot's taper spec. You probably want linear taper, not "audio" or "reverse audio". Many of these dual circuit pots are meant for audio use, but they're also made with linear taper. Check the specs before buying.
 
Maybe using a pot with 2 separate circuits would be simpler?

View attachment 16949

The one possible gotcha is to check the pot's taper spec. You probably want linear taper, not "audio" or "reverse audio". Many of these dual circuit pots are meant for audio use, but they're also made with linear taper. Check the specs before buying.

Yes! I wondered what dual-gang meant as I was researching pots. Thanks for this suggestion Paul. Definitely will try this option first. And thanks for the taper heads up. I'll be sure to look for linear taper sliders.
 
Status
Not open for further replies.
Back
Top