fbpx
Skip to main content

MIDI Forum

3.3V vs 5V and what...
 
Notifications
Clear all

3.3V vs 5V and what resistors to use?

11 Posts
4 Users
0 Reactions
21.8 K Views
Alex
 Alex
Posts: 4
Active Member
Topic starter
 

I'm developing a project on a board that uses 3.3V. And there has to be just one MIDI out. I tried connecting ground, vcc and data pins to a midi jack and it works fine with Kemper profiling amp. I tried it without any resistors as well as 220 ohm and 100 ohm on the 3.3V power pin (vcc) and there was no difference.
Is it better to use 5V than 3.3V?
What resistors are needed for each case and why?

Thank you!

 
Posted : 24/08/2016 11:18 am
Clemens Ladisch
Posts: 323
Reputable Member
 

The Electrical Specification Update (PDF) shows what resistors to use if the output is powered with 3.3 V.

MIDI requires a current of at least (and not much larger than) 5 mA. Resistors of 10 Ω and 33 Ω are recommended to achieve this with 3.3 V; your device might work with other values, but there is no guarantee that this works with other devices.

 
Posted : 24/08/2016 11:31 pm
Alex
 Alex
Posts: 4
Active Member
Topic starter
 

Clemens Ladisch wrote:

The Electrical Specification Update (PDF) shows what resistors to use if the output is powered with 3.3 V.

MIDI requires a current of at least (and not much larger than) 5 mA. Resistors of 10 Ω and 33 Ω are recommended to achieve this with 3.3 V; your device might work with other values, but there is no guarantee that this works with other devices.

Thanks! If the current should be around 5mA, why is it not 660 ohms (3.3/0.005 according to ohms law)? 3.3/10 gives 330 mA and 3.3/33 gives 100 mA.

 
Posted : 24/08/2016 11:38 pm
Alex
 Alex
Posts: 4
Active Member
Topic starter
 

Clemens Ladisch wrote:

The Electrical Specification Update (PDF) shows what resistors to use if the output is powered with 3.3 V.

MIDI requires a current of at least (and not much larger than) 5 mA. Resistors of 10 Ω and 33 Ω are recommended to achieve this with 3.3 V; your device might work with other values, but there is no guarantee that this works with other devices.

Thanks! If the current should be around 5mA, why is it not 660 ohms (3.3/0.005 according to ohms law)? 3.3/10 gives 330 mA and 3.3/33 gives 100 mA.

 
Posted : 24/08/2016 11:39 pm
Clemens Ladisch
Posts: 323
Reputable Member
 

This is not the correct way to compute the current; you have to add up the voltage drops of all three resistors (the output's two, and the receiver's 220 Ω one) and the optocoupler's LED. (See the specification.)

 
Posted : 25/08/2016 10:13 am
Alex
 Alex
Posts: 4
Active Member
Topic starter
 

Clemens Ladisch wrote:

This is not the correct way to compute the current; you have to add up the voltage drops of all three resistors (the output's two, and the receiver's 220 Ω one) and the optocoupler's LED. (See the specification.)

Thank you, found it in the specification 🙂

 
Posted : 26/08/2016 12:03 am
tim
 tim
Posts: 5
Active Member
 

What happens if a 5V midi device is connected to a 3.3 volt midi device?

 
Posted : 19/04/2018 11:08 pm
tim
 tim
Posts: 5
Active Member
 

I am expecting to measure 5mA of current drawn between two devices, however it is much less than that, about 0.1 mA. But things seem to be working ok. I have the current meter in series with the 5 volt line, and later in series with the MIDI data, but there is much less than 5mA. Is that correct?

 
Posted : 20/04/2018 12:35 am
Clemens Ladisch
Posts: 323
Reputable Member
 

A MIDI line is idle most of the time, so the average current is not 2.5 mA, but approximately zero.

To measure the current during a zero bit, you need a faster device, such as an oscilloscope.

 
Posted : 28/08/2018 8:15 pm
Roberto
Posts: 1
New Member
 

Clemens Ladisch wrote:

This is not the correct way to compute the current; you have to add up the voltage drops of all three resistors (the output's two, and the receiver's 220 Ω one) and the optocoupler's LED. (See the specification.)

Thank you, found it in the specification 🙂

Hello
I have same problem...connecting midi device to 3.3v (Arduino MKR 1010).
What is the correct schematic for this connection ?
All the schematic I've found says only 220ohm resistors...but output signal is unable to talk to some devices..
Please help
Roberto

 
Posted : 13/10/2020 4:40 am
Clemens Ladisch
Posts: 323
Reputable Member
 

Are you using a MIDI output, or a MIDI input, or both?

A 3.3 V MIDI output must use different resistors (see the Electrical Specification linked above). A 3.3 V MIDI input does not need to change anything.

 
Posted : 13/10/2020 9:31 am
Share: