Maxuino PWM not responding

McNamara's icon

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!

Max Patch
Copy patch and select New From Clipboard in Max.

here is the patch...

McNamara's icon

this is the circuit I have set up as well...

strimbob's icon

it has got to be the circuit, quadruple check?

McNamara's icon

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.