Loading...
Welcome,
Guest
. Please
login
or
register
.
May 22, 2013, 09:39:42 pm
|
Arduino Forum
::
Forum 2005-2010 (read only)
::
Hardware
::
Troubleshooting
:: Midi in
« previous topic
next topic »
Pages: [
1
]
Go Down
Print
Author
Topic: Midi in (Read 321 times)
0 Members and 1 Guest are viewing this topic.
Intosia
0
Offline
Newbie
Karma: 0
Posts: 20
Prototype Limited Edition owner! lol
Midi in
«
on:
October 14, 2008, 12:41:02 pm »
Bigger
Smaller
Reset
Ok, this is driving me nuts!
Im making a midi in for arduino. Im using the schematic below (Expect i use a 4N27). I cant seem to get it work. The optocoupler works. When i hook a LED to it, and use 5v, i can switch it on/off. But when i hook it up to my midi cable (Korg), nothing happens. Like the voltage is to low to switch anything... Wierd thing is when i hook a LED on pin 4 & 5 of the midi cable the LED flickers, almost on the beat... So i have no idea where to look.
«
Last Edit: October 14, 2008, 12:42:06 pm by Intosia
»
Logged
kuuk
berlin
Offline
Sr. Member
Karma: 0
Posts: 293
Re: Midi in
«
Reply #1 on:
October 14, 2008, 04:03:40 pm »
Bigger
Smaller
Reset
did you try reversing connections on the midi side?
if your korg's signal can drive an LED it should be able to drive the optocoupler as well.
if that direct-to-cable LED is rather dim, maybe reduce the 220[ch937] resistor to something smaller but still large enough for some basic protection. 110 or 50[ch937].
also note how the setup inverts the signal, so with no (midi) input the output is HIGH. (depending on your test LED the current provided through the 3.3k[ch937] might not be enough to prove that optically :-/ )
Logged
Antonio Sergio Sena
0
Offline
Newbie
Karma: 0
Posts: 3
Arduino rocks
Re: Midi in
«
Reply #2 on:
October 15, 2008, 02:52:20 am »
Bigger
Smaller
Reset
Measure the voltage drop on that 220 Ohm resistor.
You can have 20mA with no problems on the MIDI line. It should be enough to properly bias the LED and transfer light to the transistor.
As KUK said, you may have to low the 220 Ohm resistor.
Have a try and post it here.
Logged
dwan
0
Offline
Newbie
Karma: 0
Posts: 36
Arduino rocks
Re: Midi in
«
Reply #3 on:
October 15, 2008, 09:50:04 am »
Bigger
Smaller
Reset
Just to add that, as far as i'm concerned, someone really should label the midi socket "seen from in/outside" in this widespread midi-in schematic. I still haven't found the right way ;D :-[
Logged
Antonio Sergio Sena
0
Offline
Newbie
Karma: 0
Posts: 3
Arduino rocks
Re: Midi in
«
Reply #4 on:
October 15, 2008, 10:09:06 am »
Bigger
Smaller
Reset
Thats curious.
I made myself an MIDI Patchbay, and had to test it with a MIDI footpedal.
Well... before i had the footpedal, i had to open my guitar preamplifer, a Carvin, to figure out how the MIDI was really connected.
Still... i managed to find the schematic of the unit, and then i found how could i get info from the MIDI THRU of my Carvin...
nevertheless, MIDI is a straightforward current loop, one need just to give a decent current to the LED, and thats it. Custom baudrate by the way.
Logged
Intosia
0
Offline
Newbie
Karma: 0
Posts: 20
Prototype Limited Edition owner! lol
Re: Midi in
«
Reply #5 on:
October 15, 2008, 02:49:10 pm »
Bigger
Smaller
Reset
Ok i tried it without the whole optocoupler thing (what the heck), and it works perfectly, even with the 220K in between... And i cant be the parts, i swapt them all for others...
I dont even get with the use the darn thing (ok to seperate circuits)... But why you dont need one with midi out then ?? :-/ Whats the worst that could happen when not including the opto?
«
Last Edit: October 15, 2008, 02:49:24 pm by Intosia
»
Logged
Antonio Sergio Sena
0
Offline
Newbie
Karma: 0
Posts: 3
Arduino rocks
Re: Midi in
«
Reply #6 on:
October 15, 2008, 02:57:12 pm »
Bigger
Smaller
Reset
Not using the opto, can lead to several problems regarding the system not having galvanic isolation.
Galvanic isolation is important, especialy in hardware like this, that has to work in all types of environments.
For ex., a stage in a life concert, is one of the worst places to be, regarding EMI and all kinds of electrical noite.
If the equipments are not galvanic isolated of each other, there may be ground loops, EMI loops... crap all around.
Believe me, it is best to use the opto.
Its strange that it does not work. Have you measured the Voltage Drop of the resistor, and of the opto LED ?
Logged
sfpeter
0
Offline
Newbie
Karma: 0
Posts: 1
Arduino rocks
Re: Midi in
«
Reply #7 on:
November 13, 2008, 05:30:25 pm »
Bigger
Smaller
Reset
>Ok i tried it without the whole optocoupler thing (what the heck), and it works perfectly, even with the 220K in between... And i cant be the parts, i swapt them all for others...
wait a minute, 220k you're saying? it should be 220 ohm only...
But I was having the same problem, and even lowering it to 47ohm it wouldnt' work for me. When I finally removed the resistor altogether it worked...
Logged
Pages: [
1
]
Go Up
Print
« previous topic
next topic »
|
Arduino Forum
::
Forum 2005-2010 (read only)
::
Hardware
::
Troubleshooting
:: Midi in
Jump to:
Please select a destination:
-----------------------------
General Category
-----------------------------
=> General Discussion
-----------------------------
Using Arduino
-----------------------------
=> Installation & Troubleshooting
=> Project Guidance
=> Programming Questions
=> General Electronics
=> LEDs and Multiplexing
=> Displays
=> Audio
=> Motors, Mechanics, and Power
=> Sensors
=> Networking, Protocols, and Devices
=> Interfacing w/ Software on the Computer
-----------------------------
Topics
-----------------------------
=> E-Textiles and Craft
=> Robotics
=> Science and Measurement
=> Home Automation and Networked Objects
=> Device Hacking
=> Education and Teaching
=> Interactive Art
=> Product Design
-----------------------------
Development
-----------------------------
=> Suggestions for the Arduino Project
=> Other Hardware Development
=> Other Software Development
-----------------------------
Community
-----------------------------
=> Website and Forum
=> Products and Services
=> Gigs and Collaborations
=> Workshops and Events
=> Local Groups
=> Exhibition / Gallery
=> Bar Sport
-----------------------------
International
-----------------------------
=> Deutsch
=> Español
=> Français
=> Italiano
=> Portugues
=> Scandinavia
-----------------------------
Forum 2005-2010 (read only)
-----------------------------
===> Uno Punto Zero
===> Bar Sport
===> Frequently-Asked Questions
===> News
===> Exhibition
===> Workshops
===> Interfacing
===> Bugs & Suggestions
===> Development
===> Troubleshooting
===> Portugues
===> Deutsch
===> Español
===> Français
===> Italiano
===> Scandinavia
===> Development
===> Interfacing
===> Syntax & Programs
===> Bugs & Suggestions
===> Troubleshooting
===> Report Spam at Arduino.cc
===> Forum
===> Playground Wiki
=> General
=> Hardware
=> Software
=> International
=> Web/Forum/Email/Spam
-----------------------------
Using Arduino
-----------------------------
=> Storage
=> Microcontrollers
-----------------------------
International
-----------------------------
===> Humor y Debate
===> Talleres, Encuentros, ...
===> Tutoriels et cours
===> Réalisations et Projets Finis
===> Le bar
=> Nederlands
===> Software
===> Hardware
===> Proyectos
===> Documentación
=> India
===> Hardware
===> Software
===> Megatopic
-----------------------------
Products
-----------------------------
=> The Arduino Starter Kit
=> Arduino Due
-----------------------------
International
-----------------------------
===> Generale
-----------------------------
Products
-----------------------------
=> Arduino Esplora
=> Arduino GSM Shield
-----------------------------
Maker Faire Rome - The European Edition
-----------------------------
=> Makers
=> Events and Tour
Loading...