Shop OBEX P1 Docs P2 Docs Learn Events
Microcontroller selection and joystick servo control — Parallax Forums

Microcontroller selection and joystick servo control

Brent12345Brent12345 Posts: 7
edited 2007-10-31 22:47 in BASIC Stamp
·Hello,

·I'm new to microcontrollers. I am building a·controller to control 5 servos for an apparatus··using two joysticks (2Xpotentiometers per joystick). I'm using a switch to toggle one of the joysticks between servo·motors (i.e joy1 controls either servo #1 or #2&3, Joy2 always controlls Servos 4&5). I am sending serial outputs to a 16 channel Parallax servo controller.

I have 3 devices with 5 servos each, and I will be switching the controller between each device (total of 15 servos). Currently, using a BS2, I have one·joystick controlling·two servos using RCtime and it seems to work well.

·My problem is that I don't have enough variables left to do what I want. Would it be better to utilize two BS2s or move to a different microcontroller such as a Javelin--I have a little bit of Java experience, but I'm not a programer.

·Thanks,

·Brent

Comments

  • tabbotttabbott Posts: 26
    edited 2007-10-31 22:32
    A stamp like the SX would do what you want. It has the same variable space, but has the added feature of scratch pad RAM. That's memory you can store the values of your variables in when you need more for another function. Then when you are done with that function, you can re-load the variables back with their original values.
  • Brent12345Brent12345 Posts: 7
    edited 2007-10-31 22:47
    Thanks I happen to have ac SX. I'll try using the scratchpad ram.
Sign In or Register to comment.