To power the whole thing via USB and have USB midi, you’d want to use a core32 module.
For the 32 keys you’ll need one DINx4, and another DINx1 for the encoder and the two buttons.
Oh… Thanks a lot!
Correct me if I’m not right, so all i need to do is to connect STM 32 to DINx4 and connect 32 copper pads to DIN ins? or do i have to buy some sensor chip e.g. qtouch?