MIDI Controlled Motorized Fader Guidance

I followed (Pieter P) Motor fader on GitHub - tttapa/Control-Surface-Motor-Fader: Arduino motorized fader controller, and example code for integration with the Control Surface library.. I just uploaded the sketches “MIDI-Controller” to the first controller and “Motor-Controller” to the second controller without doing any changes in the code. both controllers connected to the same computer via usb.

I’m not getting any movement when I try to control the fader from the DAW. Also, when I move the pot fader it's not moving the daw fader properly, sometimes it's fluctuating and often its not moving. I'm not sure if I need to change anything in the code or my circuit is not correct. I’m only using one fader as a test.

First controller: UNO with atmega16u2, I changed the firmware to be dual-bootable USB MIDI/SERIAL using “DFU firmware programming” with “Pimp my mocoLUFA”. This controller is showing as control surface on DAW and i can set it as input/output for Mackie control.

Second controller: UNO with CH340.

Fader 0:

  • A0: wiper of the potentiometer
  • D8: touch pin of the knob
  • D2: input 1A of L293D dual H-bridge 1
  • D3: input 2A of L293D dual H-bridge 1
  • +5V of the Arduino: [EN 1, 2] and [Vcc 1] of L293D dual H-bridge 1
  • Ground of the Arduino: connects to [Ground pin 4, 5, 12, 13 of L293D dual H-bridge 1], [Ground of 9v Battery] and [ground of the first UNO]
  • +9V Battery: Vcc 2 of L293D dual H-bridge 1
  • OUTPUT 1 of L293D dual H-bridge 1: DC motor +-
  • OUTPUT 2 of L293D dual H-bridge 1: DC motor -+
  • A4 of the first UNO: A4 of the second UNO
  • A5 of the first UNO: A5 of the second UNO

Move that PP3 battery to a fire alarm, or a TV remote and get hold of a proper power supply.
Schematics as drawings is the way to tell the connections. Poetry is not welcome here.