Problems With Program
Why don't this program work right?
It should pulsout r/c signals after the deadband limits are reached. It pulses out, but only after every other r/c pulse input.
I thought it should pulse out everytime it reads pulses after the deadband limits are satisfied.. R/C pulses in are every 18 ms, but my prog only pulses out every 36 ms after deadband limits.
What boat did I miss here?
Post Edited By Moderator (Chris Savage (Parallax)) : 10/3/2006 7:06:05 PM GMT
It should pulsout r/c signals after the deadband limits are reached. It pulses out, but only after every other r/c pulse input.
I thought it should pulse out everytime it reads pulses after the deadband limits are satisfied.. R/C pulses in are every 18 ms, but my prog only pulses out every 36 ms after deadband limits.
What boat did I miss here?
Post Edited By Moderator (Chris Savage (Parallax)) : 10/3/2006 7:06:05 PM GMT
bs2
![](/plugins/FileUpload/images/file.png)
857B
Comments
The logic of the program seems basically okay. Do you happen to have a Stamp BS-2SX or anything faster than a plain BS-2 handy, just for testing purposes?
It's possible, albeit not probable, that the signals are arriving faster than the BS-2 can process them, and that's how they're getting lost. Just one thought among many.
Regards,
Bruce Bates
Post Edited (Bruce Bates) : 10/3/2006 7:38:50 PM GMT
I think you're missing the "LOW Servo" statement, which would make the 'default' state of the output pin low -- but that shouldn't matter.
Bottom line -- I'm not seeing anything 'wrong' with your code. Possibly it's a grounding issue -- you DO have all grounds connected together, right? It could also be a 'reset' issue -- not likely, but possible.
There is no output pulse until I breach the parameters, then the proper length pulses show up, but at 36 ms intervals.
Debug? drive (ref program) displayed ~750 count at null (what I expected) and this value decreased or increased relative to the joy stick.
Tried both greenies and reddies. Same results. I don't have a sx to try, but looks like I should have all day long to do this simple task. I also tried another servo (using a Futuba S3004). No luck.
I am stumped.
Oh, you didn't mention if all your grounds are tied together.
Yep. grounds good.
Using BOE for testing. VDD = power to radio receiver VSS = ground to radio receiver
metered ground to receiver and to servo and to vss and to gnd pins on bs2. all ok.
I am puzzled.
totally rewired circuit using different ports.
changed program somewhat, but still same results.
I know this circuit is hooked up properly.
What is going on here?
Can anyone explain this fix?
Thanx,
Tom
Post Edited (TomL) : 10/4/2006 4:08:01 PM GMT
It almost looks like "coupling" noise from your servo output pulse. I could hypothesize all day. The way to solve it would be to put an o'scope on the signal and see what you see.
I'm just glad you found a way to fix it.