apiel
New Member
Posts: 18
|
Post by apiel on Dec 8, 2022 14:39:23 GMT
I wanted to use midi over USB, so I plugged an attiny85 to the bus with small firmware to convert USB midi to CV, gate and clock. github.com/apiel/attiny-midi2cvAlso, it now allow me to power the rack through USB.
|
|
|
Post by dizzeesatchel on Dec 8, 2022 16:16:38 GMT
robertlanger, you need to get the official midi module out there before everyone builds their own!!
|
|
|
Post by robertlanger on Dec 8, 2022 17:01:11 GMT
robertlanger , you need to get the official midi module out there before everyone builds their own!! Ahem, yes... I feel somehow under pressure now... ... Great work, apiel !
|
|
apiel
New Member
Posts: 18
|
Post by apiel on Dec 8, 2022 18:56:14 GMT
Thanks robertlanger and sorry for the pressure. I actually wonder if just a USB module would be good, would be great to have more features... Maybe a midi module with some keys on it, to trigger notes manually ¯\_(ツ)_/¯ Or a sequencer/tracker using Arduino, that could also accept midi notes / clock through USB (I think this will be my next DIY module) Or a module with midi USB host, this would be really amazing! (I think rp2040 support usb hosting) Or everything
|
|
pol
Wiki Editors
Posts: 1,349
|
Post by pol on Dec 8, 2022 21:05:29 GMT
I wanted to use midi over USB, so I plugged an attiny85 to the bus with small firmware to convert USB midi to CV, gate and clock. github.com/apiel/attiny-midi2cvAlso, it now allow me to power the rack through USB. Hi, looks great; being an electronics novice (build kits but certainly no designing) could you explain a bit more? I've see the code you wrote on github, I've also no idea how you get the code into the chip! Did you have to make a circuit board/use a breadboard? If you could, it would be great to have a diagram, or at at least a list to what you connected to where.... Also, I assume you select which midi channel it uses on the sending device? This has great potential for something I'm working on so would love to know more.
Pol.
|
|
apiel
New Member
Posts: 18
|
Post by apiel on Dec 9, 2022 9:33:47 GMT
Hi pol, it's actually pretty simple. There is only a Digispark ATTiny85, nothing else, this is a pre-build board with the USB already soldered that allow you to program it... Then you need to install Arduino IDE, install the board, install the midilib library from my fork and finally upload the code (the instructions are inside the README file, even if it's not very clear) Finally, plug the pin0 to gate bus, pin1 to CV bus, pin2 to clock, 5v to 5v bus and GND to GND bus, see www.tangiblewaves.com/diy-info.html (be careful with bus, it's easy to mixup things... but as long you don't mixup GND and 5v everything should be fine) Finish
|
|
pol
Wiki Editors
Posts: 1,349
|
Post by pol on Dec 10, 2022 9:33:56 GMT
Hi pol , it's actually pretty simple. There is only a Digispark ATTiny85, nothing else, this is a pre-build board with the USB already soldered that allow you to program it... Then you need to install Arduino IDE, install the board, install the midilib library from my fork and finally upload the code (the instructions are inside the README file, even if it's not very clear) Finally, plug the pin0 to gate bus, pin1 to CV bus, pin2 to clock, 5v to 5v bus and GND to GND bus, see www.tangiblewaves.com/diy-info.html (be careful with bus, it's easy to mixup things... but as long you don't mixup GND and 5v everything should be fine) Finish You had me at "it's actually pretty simple" Ordered a Digispark ATTiny85 and will give it a go.
Thanks Pol.
|
|
|
Post by waporwave on Dec 20, 2022 6:16:13 GMT
robertlanger , you need to get the official midi module out there before everyone builds their own!! Ahem, yes... I feel somehow under pressure now... ... Great work, apiel ! The midi from the power module is fine really. It's good enough for most uses, and most setups, especially considering the generative nature of a lot of modular. You don't even have enough envelopes on starter rack 1 for more than 2 voices (without trickery ). I would like a MIDI module too, but I'm not dying over it
That being said, it seems like it's a pretty simple DIY project. Now we've got one with attiny, I've made one adapted from a eurorack arduino project, and I'm pretty sure I've seen some other people do similar things. A DIY midi module kit might make it more accessible; I'd love to be the one to do it, but I've got a bit to learn until I could make one :-)
Also for MIDI modules, I think some people (that I saw in the discord server) had been experimenting with having their module accept just accept a midi signal instead of gate and cv, and having a midi module produce seperate channels of midi information instead of gate and cv. And the usb power seems really useful for portability, but iirc the standard allows it to dip below 5v, which I'm assuming is not good.
|
|
|
Post by waporwave on Dec 20, 2022 6:59:19 GMT
yeah, as you can see from my post count, I don't look at this forum often, but just scrolling down I'm already seeing a lot of posts about midi to cv DIY stuff
|
|
frndo
Full Member
Posts: 110
|
Post by frndo on May 1, 2023 22:03:31 GMT
Hi pol , it's actually pretty simple. There is only a Digispark ATTiny85, nothing else, this is a pre-build board with the USB already soldered that allow you to program it... Then you need to install Arduino IDE, install the board, install the midilib library from my fork and finally upload the code (the instructions are inside the README file, even if it's not very clear) Finally, plug the pin0 to gate bus, pin1 to CV bus, pin2 to clock, 5v to 5v bus and GND to GND bus, see www.tangiblewaves.com/diy-info.html (be careful with bus, it's easy to mixup things... but as long you don't mixup GND and 5v everything should be fine) Finish Hello apiel! thanks for sharing this project. I've been trying, but I still can't get it to work, I downloaded everything from your github, but it gives me errors related to the DigiMIDI.h file (I don't understand if the one on the github is already modified), I don't know how to make digispark be recognized as HID. Would you be so kind as to explain a little more *I'm a newbie.
|
|
apiel
New Member
Posts: 18
|
Post by apiel on May 2, 2023 5:43:33 GMT
|
|
frndo
Full Member
Posts: 110
|
Post by frndo on May 2, 2023 10:33:17 GMT
No, I installled the digispark and programmed with micronucleous...with other codes (like jan ostman, miniMO, etc)..the question is, with your code, I Need to burn a bootloader, to see the digispark as HID in the pc?
|
|
julientaq
New Member
designing stuff with html and css
Posts: 14
|
Post by julientaq on Jun 24, 2023 15:26:34 GMT
I have a stupid question:
what happens if there is some voltage from the master volume and some voltage from the tiny at the same time?
could we brick something? (i just recevied my attiny, gonna solder those legs)
|
|
julientaq
New Member
designing stuff with html and css
Posts: 14
|
Post by julientaq on Jul 21, 2023 8:35:01 GMT
so i found out that the digispark doesnt stay in bootloader mode long.
so when you push the code to the lib, you actually dont connect the board until you’re asked too.
I’m still fighting the import DigiMIDI that doesnt seem to work fine (i guess tehre are some update of libs that makes it hard to recreate).
|
|
|
Post by leethargo on Jul 26, 2023 8:51:52 GMT
Somewhat offtopic, but I also wanted to connect my USB MIDI keyboards to AEM and found a slightly different solution. I have a spare Raspberry Pi (model B from 2011) which I now use as a simply USB host. That is, I connect my keyboard to the RPi and have a USB-to-MIDI cable that I feed into AEM Master. One can then use the `aconnect` CLI tool to forward the incoming events from the keyboard to the cable. This happens directly after booting, so there's no need to interact with the RPi ("headless"). All of this is inspired by this more involved solution: neuma.studio/rpi-as-midi-host/ (which watches for new USB devices and simply connects every pair of devices).
Next up, I might want to convert the velocity values to the appropriate MIDI CC so that they appear on AEM's Bus Ctrl. I also wonder whether I could power the RPi directly from the AEM.
|
|