PWM

ON my arduino. I can hook up to the computer and the PWM coming out is perfect. Then when I hook up to the battery the PWM looks like a saw tooth wave form. Any Idea.

I can hook up to the computer and the PWM coming out is perfect.

You know this how?

Then when I hook up to the battery the PWM looks like a saw tooth wave form.

Again, you know this how?

What code? What battery?

it was a ground problem. I had it hooked up to the scope. Turns out my lead for my ground on the scope is bad.