Using with ESP32_Audio_Kit and opto-coupler midi #3
Replies: 6 comments 1 reply
-
Hi, I didn't test the other configurations yet in this project. I can check the Audio Kit config and come back with my results soon. I am planning also to make a little update today. For MIDI I would recommend to use PIN 21 or any other free pin. RX0 is used for the USB Serial adapter and would conflict with your MIDI messages. This should be left open. |
Beta Was this translation helpful? Give feedback.
-
Yes, I took some code from basic Synth and some defines related to pins
used by AC101 and updated the library for AC101 via your fork. I'll try
with midi on pin 21 today. I was getting signal on the other side of my
optocoupler yesterday so it seems like it should work.
The audio is working, got test note ... so its just tuning this psu+optocoupler for 3.3v since not all optocouplers work well at that voltage. I found something about tuning it with another transistor so i'll try that. Also ordered a better optocoupler
Regards
Michael
…On Tue, Dec 14, 2021 at 3:58 AM Marcel ***@***.***> wrote:
The init calls for the codec are missing at the moment. I will merge the
missing code soon.
—
You are receiving this because you authored the thread.
Reply to this email directly, view it on GitHub
<#3 (reply in thread)>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/ALTDOQ63FBK3XMUGJK7AIMLUQZM6FANCNFSM5J6UUL3A>
.
Triage notifications on the go with GitHub Mobile for iOS
<https://apps.apple.com/app/apple-store/id1477376905?ct=notification-email&mt=8&pt=524675>
or Android
<https://play.google.com/store/apps/details?id=com.github.android&referrer=utm_campaign%3Dnotification-email%26utm_medium%3Demail%26utm_source%3Dgithub>.
|
Beta Was this translation helpful? Give feedback.
-
I tested with a different project and could see something being detected on the midi serial receiving pin. So I refactored that midi_interface module from easy synth project into this and now I get some activity. When I dump it though its not reading usably I see this - so no note_on etc are triggered. So maybe the optocoupler is too slow - I read this can be elsewhere. Its just a garden variety 4pin optocoupler ... not these various 6pin or 8pin types I seem to see when I research. 0000>e0 00 00 Just in case you've seen this before. |
Beta Was this translation helpful? Give feedback.
-
Hi, there is a define for MIDI_BAUDRATE which could be wrong |
Beta Was this translation helpful? Give feedback.
-
Yes, I saw 115200 but I changed it and it didn't sort it. I also tried
fmsynth code and same midi errors so I'll work on hardware solution. Some
people said these optocouplers are too slow in forums.
I'll try on a 5v Arduino duo to see
Regards
Michael
…On Tue, Dec 14, 2021, 23:27 Marcel ***@***.***> wrote:
Hi, there is a define for MIDI_BAUDRATE which could be wrong
—
You are receiving this because you authored the thread.
Reply to this email directly, view it on GitHub
<#3 (comment)>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/ALTDOQ23YJC3LKTSU54AJV3UQ5V65ANCNFSM5J6UUL3A>
.
Triage notifications on the go with GitHub Mobile for iOS
<https://apps.apple.com/app/apple-store/id1477376905?ct=notification-email&mt=8&pt=524675>
or Android
<https://play.google.com/store/apps/details?id=com.github.android&referrer=utm_campaign%3Dnotification-email%26utm_medium%3Demail%26utm_source%3Dgithub>.
|
Beta Was this translation helpful? Give feedback.
-
I got one of these cheapo optocouplers to work to adapt midi signal from
the Midi keyboard. Basically with 5v on the receiving end and then a
voltage divider with a 4.7k to the midi out send with 10k from that to
ground pulls it to 3.3v logic.
I still plan to build a good midi adaptor like the one you shared from a
magazine.
Also what's this "BOARD_ML_V1" - i'll have to explore your website more.
Anyway, now it seems I can leverage my ESP32_AUDIO_KIT board which got me
into all this but then I diverged to a USB_HOST with normal ESP32 boards +
DAC etc because i had a USB midi keyboard. Later I got this Arturia Keystep
type and it has Midi_DIN out ports so now I can link it up and try your
other projects ... accelerate my appreciation of what you have.
So I adjusted the ESP... organ project code and it also is happy to get the
midi serial and play. That was frustrating me for ages because I didn't
have the Serial Midi out to even go there for a long time and went in
another direction. Thanks for your encouragement ... now I can start to
really build my projects out and do more.
Regards
Michael
On Wed, Dec 15, 2021 at 1:23 PM Michael Nolan ***@***.***>
wrote:
… Yes, I saw 115200 but I changed it and it didn't sort it. I also tried
fmsynth code and same midi errors so I'll work on hardware solution. Some
people said these optocouplers are too slow in forums.
I'll try on a 5v Arduino duo to see
Regards
Michael
On Tue, Dec 14, 2021, 23:27 Marcel ***@***.***> wrote:
> Hi, there is a define for MIDI_BAUDRATE which could be wrong
>
> —
> You are receiving this because you authored the thread.
> Reply to this email directly, view it on GitHub
> <#3 (comment)>,
> or unsubscribe
> <https://github.com/notifications/unsubscribe-auth/ALTDOQ23YJC3LKTSU54AJV3UQ5V65ANCNFSM5J6UUL3A>
> .
> Triage notifications on the go with GitHub Mobile for iOS
> <https://apps.apple.com/app/apple-store/id1477376905?ct=notification-email&mt=8&pt=524675>
> or Android
> <https://play.google.com/store/apps/details?id=com.github.android&referrer=utm_campaign%3Dnotification-email%26utm_medium%3Demail%26utm_source%3Dgithub>.
>
>
|
Beta Was this translation helpful? Give feedback.
-
I'm starting on this one - having spent ages working on the Basic Synth.
I think you recommended I use this - but i'm using the ESP_Audio_Kit board and ran into a few problems like a compile error if I #define AUDIO_KIT_BUTTON_DIGITAL
I remember you hacked one of yours to use analogue voltage to free up GPIO.
Generally I don't know where to patch in my opto-coupler for midi. I tried setting Pin3 RX0 as the midi data in. I can get an LED to flash from the breakout Midi cable to my breadboard. I put 220 ohm current limiter to the optocouple LED input.
On the other side I'm using 3.3v power with 10kohm pullup and ground of the ESP32_Audio_Kit ... so I'm just looking for what I need to fire it up or test if Midi is reading. This is my first time trying serial midi having using the USB_HostMidi all this time on the other projects.
Beta Was this translation helpful? Give feedback.
All reactions