Forums > MaxMSP

Maxuino PWM not responding

November 8, 2012 | 7:14 pm

hello,

I am using maxuino to control a DC motor. I am using an H-bridge to control speed and direction of the motor.

I set up my max patch so that pins 3 and 4 were digital outputs to set the direction of the motor and pin 9 to analogWrite for PWM speed control.

The patch was working and I could control speed and direction from max, now i have opened up the patch a week later and PWM doesn’t work on any pin.

If I set pin 9 to be a digitalWrite I can turn the motor on, yet analogWrite cannot control the speed the motor just turns off.

Any idea why PWM isn’t working? I find it especially odd because the patch was working the first time I made it!

here is the patch…

– Pasted Max Patch, click to expand. –

November 8, 2012 | 7:55 pm

this is the circuit I have set up as well…

http://itp.nyu.edu/physcomp/Labs/DCMotorControl


November 8, 2012 | 11:21 pm

it has got to be the circuit, quadruple check?


November 11, 2012 | 10:12 pm

I am a goof.

I didn’t follow the Maxuino instructions , I never set the pin’s functions, I only sent them instructions of what to do.

I was telling pin 9 PWM information but I didn’t set pin 9 to PWM yet.


Viewing 4 posts - 1 through 4 (of 4 total)