Shop OBEX P1 Docs P2 Docs Learn Events
BS2pe OWIO commands for servo control — Parallax Forums

BS2pe OWIO commands for servo control

SHechtSHecht Posts: 5
edited 2008-01-09 14:54 in BASIC Stamp
I've got a BS2pe motherboard with a PWR-I/O Daughterboard attatched to it.· Everything seems to work just fine when controlled by the stamp but I want to gain control over those last two·headers on the daughterboard labelled A0 and A1 which require OWIO commands to function.· First, are there hexfiles besides the GPIO version3·firmware that need to be loaded first?· Second, exactly what OWIO commands should replace my normal PULSIN (PIN#), 1(HIGH), (VARIABLE) which I use to get the signal from my R/C receiver?· Third, what OWIO commands should replace my normal PULSOUT commands to the servos?· And how do these fit in with the FOR counter = VARIABLE (start) TO VARIABLE (end) STEP VARIABLE (speed) commands which define servo movement?· Any hints would be appreciated.· I've been banging my head against the Basic Stamp Manual without much to show for it.· Thanks.

Comments

  • Phil Pilgrim (PhiPi)Phil Pilgrim (PhiPi) Posts: 23,514
    edited 2008-01-07 18:51
    Currently, there is no hex file available to control servos on A0 and A1. You could theoretically use these two pins to receive demultiplexed signals from your R/C receiver, though, by lowpass filtering those signals and using GPIO3's analog input function to infer their pulse widths. I realize that this may be an unpalatable "solution", though. Perhaps, if you could explain your proposed system in more detail, I could offer something better.

    Thanks,
    -Phil
  • SHechtSHecht Posts: 5
    edited 2008-01-09 14:54
    Thank you Phil. The daughterboard litterature led me to believe that servo control was possible - perhaps at a future date. I think I'll just add another daughterboard to run my other servos and use the four one-wire headers for sensors.

    Thanks for your help on this.

    Stuart
Sign In or Register to comment.