Hi everybody and
thanks sirnoname for this great work! I'm building myself a G-seat based on wiper motors, your x-sim plugin and arduino firmware:
http://x-sim.de/forum/viewtopic.php?f=37&t=1310I'm trying to use the
arduino UNO R3 coupled with this shield:
http://www.elechouse.com/elechouse/index.php?main_page=product_info&cPath=100_146&products_id=2179According its documentation, the control works like this:
• Rotate forward: EN = HIGH, RPWM = PWM, LPWM = HIGH, DIS = vacant
• Rotate reverse: EN = HIGH, RPWM = HIGH, LPWM = PWM, DIS = vacant
• Stop and brake: EN = HIGH, RPWM = HIGH, LPWM = HIGH, DIS = vacant
• Stop but not brake: EN = 0, RPWM = HIGH, LPWM = HIGH, DIS = vacant
• Prohibit : EN = X, RPWM = X, LPWM = X, DIS = HIGH
For Arduino users:
Channel - Driver Module - Arduino Pin
A - EN - 2
A - RPWM - 3
A - DIS - 4
A - LPWM - 5
B - EN - 8
B - RPWM - 9
B - DIS - 7
B - LPWM - 6
I tried to understand your code as best as I could and changed the pinouts to this:
int portdstatus =PORTD; // read the current port D bit mask
int ControlPinM1Inp1 =3; // (was 2) motor 1 INP1 output, this is the arduino pin description
int ControlPinM1Inp2 =5; // (was 3) motor 1 INP2 output, this is the arduino pin description
int ControlPinM2Inp1 =9; // (was 4) motor 2 INP1 output, this is the arduino pin description
int ControlPinM2Inp2 =6; // (was 5) motor 2 INP2 output, this is the arduino pin description
int PWMPinM1 =2; // (was 10) motor 1 PWM output
int PWMPinM2 =8; // (was 9) motor 2 PWM output
The feedback works fine,
but the motor only turns in one direction!

Did I miss something?
I am a real beginner, and tried to read through the posts in this forum, but am stuck at this point.
I am greatful for any help!!!