MIDI controller by Teensy 3.5 was not worked !

Status
Not open for further replies.
Hello everyone, I'm Makoto.
I tried to make the MIDI controller by Teensy 3.5
(refer to this URL:https://www.pjrc.com/teensy/td_libs_MIDI.html).

I wrote the code, connect MIDI out to MIDI in on Moog synthesizer,
Although the system wasn't worked.
The circuit is as like as My_Circuit.jpg(attached).

Thanks for the help!

Makoto Takahashi

Setting:
Board:Teensy 3.5
USB type:MIDI (In future, I want to use usbMIDI - MIDI device.)
CPU speed:120 MHz

Code:

#include <MIDI.h>

const int channel = 1;

void setup() {
MIDI.begin();

Serial.begin(31250);
Serial.println("MIDI out Test");
}

void loop() {
int note;
for (note=10; note <= 127; note++) {
Serial.println(note);
MIDI.sendNoteOn(note, 100, channel);
delay(500);
MIDI.sendNoteOff(note, 100, channel);
}
delay(2000);
}

Postscript:
Should I change the circuit as like as MIDI.jpg?
 

Attachments

  • My_circuit.jpg
    My_circuit.jpg
    22.4 KB · Views: 116
  • td_libs_MIDI_sch.gif
    td_libs_MIDI_sch.gif
    5.1 KB · Views: 124
  • MIDI.jpg
    MIDI.jpg
    21.3 KB · Views: 274
Last edited:
Hi, you don't need this line.
Code:
Serial.begin(31250);

If you're using the latest Teensyduino version (1.37, as of now), you should check my post HERE.

Yours truly, Revalogics.
 
Thanks for your reply, Revalogics!

Unfortunately, I am using Teensyduino 1.36……
I will check your post.
Should I make it to Teensy 1.37 to work it reliably?


Certainly, there isn't the code( Serial.begin(31250) ) in the "MIDI
input" of the reference URL, but it is in "MIDI output test".

In the future, I also do "output" as usb MIDI-MIDI device so I thought that there is a necessity to work even if there is that code(Serial.begin(31250)).

What is the difference between having and not having that code?
 
Which resistors did you use? 3.3V signals require different resistors (mentioned on the web page). 220 ohms usually only works for 5V signals.
 
Thanks for your reply,Paul.

I overlooked the web's description and used 220 ohms.

Should I change the resistor of 220 ohms on pin 4 of MIDIout to two 47 ohm resistors?
 
I'm sorry for the late reply. I will not touch Teensy for a while for some purpose……, but I will try it.

I did MIDIout with reference to the same URL. But it didn't work. Is it because the resistance of 270 ohms was connected to 5 V instead of 3.3 V?
 
Thanks Paul and Revalogics!!
I succeeded in running the system.

I changed the resistor of 220 ohms on pin 4 and pin 5 of MIDIout to 100 ohm resistors.
I will start implementing the usbMIDI-MIDI device.
 
Status
Not open for further replies.
Back
Top