Page 1 of 1

Noise on Arduino PWM pins?

Posted: Wed Jun 20, 2012 11:29 am
by donkjr
We are using the SLD33149P in a on stage demo next week.

We were in final test and ran into a wall and are in a panic.

Configuration:
Running arduino Uno
Using pins 5, 6 pwm to control x and y servos
We are commanding the servos from cell text through SLD shield to Arduino PWM pins.

Every time we poll for SMS messages the servos jerks like there is noise on the PWM's.
We disabled our servo code so we know that the PWM is not changing deliberately.
We disconnected the pins 5, 6 from the SLD card by bending them out from under the header and the problem remains. IE nothing from the Arduino is connected to these pins.

Arduino and sheild powered from USB but servos powered from external supply. All grounded to same point.

I seems like there is some kind of noise problem.

This exact problem shows up on two identical builds.

Any ideas. Does the SLD put anything on these pins? (checking the schematic after this), but the bent pin test would seem to invalidate this theory.

Desperately need help...

Re: Noise on Arduino PWM pins?

Posted: Wed Jun 20, 2012 4:59 pm
by Tobe
Try to use the external power on the GPRS shield too.the usb just power the Arduino Uno.

Re: Noise on Arduino PWM pins?

Posted: Thu Jun 21, 2012 12:12 am
by hextic
I would guess a power draw issue too. Absent that, if you have another Arduino leave it there logging pulse width so you can measure what's going on from there, verify that you have a consistent pulse width. If it's consistent, it's power. If not, something is messing with your pwm pins.

Re: Noise on Arduino PWM pins?

Posted: Fri Jun 22, 2012 8:25 pm
by donkjr
It was not noise.
While polling for SMS the serial class, which now uses interrupts, caused the servo timer to periodically arrive late and extend the PWM pulse.
We detach the servo during polling, fixed.