Odd Demo Board Resets
crgwbr
Posts: 614
I am using the demo board·to control·a servo.· The demo board is being powered by 4 AA batteries (producing around 5.5v).· For some reason servo starts to move, then the demo board resets and starts the process over again.· Any Idea why this could be happening; the 470 ohm resistor is in place and I am supplying the servo with power directly off the demo board.
This is the code I'm using:
Con
· _clkmode = xtal1 + pll16x
· _xinfreq = 5_000_000
ObJ
· BS2 : "BS2_Functions"
Pub Main
· BS2.Start(31,30)
· BS2.Freqout(6, 3000, 2000)
· repeat
··· BS2.Pulsout(7, 750)
··· BS2.Pause(20)
I'm thinkign that it's probable an interference problem from the motor in the servo.· Forgot to mention, it's a Parallax Standard Servo.
Thanks,
crgwbr
▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
NerdMaster
For
Life
This is the code I'm using:
Con
· _clkmode = xtal1 + pll16x
· _xinfreq = 5_000_000
ObJ
· BS2 : "BS2_Functions"
Pub Main
· BS2.Start(31,30)
· BS2.Freqout(6, 3000, 2000)
· repeat
··· BS2.Pulsout(7, 750)
··· BS2.Pause(20)
I'm thinkign that it's probable an interference problem from the motor in the servo.· Forgot to mention, it's a Parallax Standard Servo.
Thanks,
crgwbr
▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
NerdMaster
For
Life
Comments
try powering the servo separately; see if that fixes it.
Note that powering the demo board with only 5.5v is probably marginal; I'd start with slightly higher than this.
You're not giving that first voltage regulator much headroom.
If you are using alkalines, it's time to replace them. If you are using rechargables, youll need to use more in series. An alternative is to use a large capacitor on the input and hope it will float your voltage across the glitch.
▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
Paul Baker
Propeller Applications Engineer
Parallax, Inc.
Post Edited (Paul Baker (Parallax)) : 2/13/2007 11:07:16 PM GMT
crgwbr
▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
NerdMaster
For
Life
My guess is when the cable isn't attached either the dira[noparse][[/noparse]debug_Pin]~~ or outa[noparse][[/noparse]debug_Pin]~~ call in the Start method causes the·DTR pin state on the FT232 chip to change resulting in the Reset. I don't have an oscope to verify.
▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
Cheers,
Simon
BTW: I type as I'm thinking, so please don't take any offense at my writing style
www.norfolkhelicopterclub.co.uk
You'll always have as many take-offs as landings, the trick is to be sure you can take-off again ;-)
▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
Paul Baker
Propeller Applications Engineer
Parallax, Inc.
Stumped as can be,
crgwbr
▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
NerdMaster
For
Life
▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
Paul Baker
Propeller Applications Engineer
Parallax, Inc.
▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
NerdMaster
For
Life