esp32 P4 demo
Posted: Sun Aug 25, 2024 12:42 am
Greetings community.
As some of you may already know ive been playing a bit with USB on esp32 S2/S3, and now we have huge upgrade on P4 to USB high speed, so its time to play with it one more time and to see how it works.
I started with my old USB host code and MSC works pretty good, ACM probably too, but not tested it yet. Since ive got few request about MIDI i thought it may be good opportunity to see what is it, and I decided to buy some small midi controller. I thought novation launchpad mini mk3 may be good hardware to start with, and i believe it was good choice.
I have had no idea how midi works, and you can imagine how much surprised i was when i found that communication is as easy as regular USB serial device like ACM or VCP.
Long story short i wrote some demo code which is using launchpad mk3 midi protocol for 2 way communication with android app from play store. Here is demo how it works with USB midi, LVGL and android app. I hope you like it:
https://youtu.be/u30H9fkrLgQ
Just few additional info:
- in this case i should have to make USB device instead of host, to communicate with android phone
- esp32 P4 is communicating with high speed in this example, since smartphone takes control over setup and i dont mind
- as you can see on this demo, there is few times switched buttons layout; almost every time app is sending 64-81 buttons, 4 bytes each data, and as you can see it is very smooth (although there is space to improve it)
As some of you may already know ive been playing a bit with USB on esp32 S2/S3, and now we have huge upgrade on P4 to USB high speed, so its time to play with it one more time and to see how it works.
I started with my old USB host code and MSC works pretty good, ACM probably too, but not tested it yet. Since ive got few request about MIDI i thought it may be good opportunity to see what is it, and I decided to buy some small midi controller. I thought novation launchpad mini mk3 may be good hardware to start with, and i believe it was good choice.
I have had no idea how midi works, and you can imagine how much surprised i was when i found that communication is as easy as regular USB serial device like ACM or VCP.
Long story short i wrote some demo code which is using launchpad mk3 midi protocol for 2 way communication with android app from play store. Here is demo how it works with USB midi, LVGL and android app. I hope you like it:
https://youtu.be/u30H9fkrLgQ
Just few additional info:
- in this case i should have to make USB device instead of host, to communicate with android phone
- esp32 P4 is communicating with high speed in this example, since smartphone takes control over setup and i dont mind
- as you can see on this demo, there is few times switched buttons layout; almost every time app is sending 64-81 buttons, 4 bytes each data, and as you can see it is very smooth (although there is space to improve it)