-
Notifications
You must be signed in to change notification settings - Fork 11
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Motorized fader guidance #6
Comments
For the MIDI-Controller code, yes.
Indeed, I only documented the connections specific to the Arduino code, for the non-Arduino specific connections, it's best to look at the typical application diagrams in the datasheet.
Bypass capacitors, maybe? See section 10 of the datasheet.
I'm not sure what you mean, the Uno and Nano do not support MIDI over USB, they only run the motor controller code. A second Arduino (e.g. Pro Micro) will run the MIDI code and communicates with the motor controller Arduino over I²C. You don't need to do anything beyond uploading the code to make the Pro Micro act as a MIDI USB device.
It should work as is, but you might want to change some settings in the Control-Surface-Motor-Fader/Motor-Controller/main.cpp Lines 101 to 103 in 9b20111
Or change the pin assignments if you're using an Arduino Uno, or change the number of faders: Control-Surface-Motor-Fader/Motor-Controller/main.cpp Lines 111 to 112 in 9b20111
You'll also have to tune the PID controllers: Control-Surface-Motor-Fader/Motor-Controller/main.cpp Lines 193 to 203 in 9b20111
Use the Python script to do the tuning.
The Motor-Controller code should be uploaded to an Arduino Nano or Uno, and the MIDI-Controller code should be uploaded to a separate MIDI-capable microcontroller, (e.g. Pro Micro). Both microcontrollers should be connected to the same I²C bus so they can communicate the fader positions, target positions etc. For tuning the controllers, you only need the Nano or Uno and connect it to the computer running the Python script over USB.
The code is the same, but check the datasheet and Sparkfun hookup guide for the circuit. The connections to the Arduino should be similar, though.
I usually don't, but that might not be a bad idea, that's up to you.
The Motor-Controller code doesn't do much unless you send commands to it over I²C or Serial, or unless you enable the |
Great! Thank you for your response. I enabled print_controller_signals and values are changing when I touch and move the fader. But my computer isn't receiving MIDI messages from the Pro Micro. I feel that it has something to do with the communication over I²C. I've attached a Tinkercad diagram based on my real circuit. (I've connected "A4" and "A5" (UNO) to "2" and "3" (Pro Micro, since those are the SDA and SCL ports in that board). |
Now the Pro Micro is showing values in Serial Control, so I2C is working. But still, my computer isn't receiving MIDI messages. I don't have to do anything with something like Hariless MIDI, do I? Also, how would I make the fader send MIDI CC 1? Through Sisex messages? |
If you want to use MIDI over USB, you have to use a
What do you mean? How does your DAW communicate with motorized faders? Usually pitch bend is used, not CC or SysEx. You could of course change the MIDI-Controller sketch to send CC or SysEx messages instead, that's explained in the Control Surface documentation, but I don't think that would be useful. |
Sorry for my late response... I just had to set up the Arduino as a Mackie Control device (I didn't get why the fader sent pitch bend messages until now) But I moved on just to find another problem. The response of the fader is rather clunky, and if I don't move it ridiculously slow, it starts moving up and down really fast. The only way to stop it is to move the fader in my DAW to +6db or -inf. Any position in between gives the same result. Does it have something to do with calibration? |
Found out what the problem was. Wrong bypass capacitor value. Also. I'm not sure what to do with PWMA when working with the TB6612FNG. Should I just connect it to VCC? The fader gets stuck at the top if I do it that way. |
The Mackie HUI is not the same as the MCU. Either way, it might send some SysEx messages to make sure it's connected to the right device. You can find the appropriate responses in e.g. the Logic Control user manual (for MCU), or look for reverse engineering documents of the HUI online.
Looking at the datasheet that would be the right thing to do, but I've never used it so I'm afraid I can't really comment on that. |
Hello Pieter. I hope you are doing well!
I'm really new in the world of Arduino and programming. I want to connect 2 motorized faders with Logic Pro X and I've been investigating a lot on how to do it. I tried following the documentation in this repository, but I'm not sure how proceed. I have several questions and I hope that you could point me in the right direction.
Nothing is really happening when I upload the code,and I'm getting frustrated. I didn't expect motorized faders such a different project from non-motorized ones... There isn't that much documentation on the subject and I don't know where to keep digging.
The text was updated successfully, but these errors were encountered: