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 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()) {
}
}