Teensy MIDI out issues

Status
Not open for further replies.

opauly

Member
Hello!

I have been working on sending MIDI program changes to control an Amplifire from a Teensy 3.2. I need to use a MIDI out (not usb), but so far the MIDI out is dead. No signals of anything coming out. USB MIDI works well, but switching to MIDI port has been a nightmare.
I am running it with 3.3V from Teensy´s pin above the #23.
I have tried with Serial1.begin(31250) to initialize the Tx pin but nothing happens.
I am using 40 ohms resistance between MIDI pin 4 to 3.3v, and 40 ohms resistance between MIDI pin 5 to Teensy pin 1.

I have tried also:

- In Midi.h change USE_SERIAL_PORT from Serial to Serial1
- In Midi.h change USE_RUNNING_STATUS to 0

Does anyone have a clue on how to initialize the Tx pin? Or any clue about what is happening? I would appreciate it very much!


#include <Arduino.h>
#include <MIDI.h>
#include <Bounce.h>

const int channel = 1;
int ledP1 = 22;

Bounce button1 = Bounce(3, 20);

void setup() {
pinMode(3, INPUT_PULLUP);
pinMode(ledP1, OUTPUT); //Preset button 1

Serial.begin(9600);
MIDI.begin();
}

void loop() {
button1.update();

if (button1.fallingEdge()) {
MIDI.sendProgramChange(0, channel); // Preset 1
Serial.println("Preset 1");
//Update preset LEDs
analogWrite(ledP1,255); //Turn on ledP1
}

while (MIDI.read()) {
}
}
 
I have tried with 40 ohms since I don't have 47 ones, I guess there would be minimal change in current if I use 40 instead of 47 ohm
 
Status
Not open for further replies.
Back
Top