Shop OBEX P1 Docs P2 Docs Learn Events
BS2sx Analog I/O? — Parallax Forums

BS2sx Analog I/O?

SwordfishROVSwordfishROV Posts: 3
edited 2008-01-02 22:37 in BASIC Stamp
I am looking to take a reading from a potentiometer (Voltage) and then have my BS2sx convert the voltage signal to a pulse signal for an HB 25 motor controller.
·Is the BS2sx capable of reading a voltage from pins 0-15, or should I make a PC interface that will send digital information to the Stamp via Serial I/O?

For anyone who is interested, the controller will be used to power an ROV, much like roarroar's post about joystick inputs.
STAMPs were highly recommended on the yahoo rov group forum, so I'm sure I can make a fantastic control system·either way.
Check out our project and progress here: http://www.me.dal.ca/~dp_07_3/

Thanks for any help.
Alex

Comments

  • Mike GreenMike Green Posts: 23,101
    edited 2007-12-31 20:37
    Have a look at EME Systems' website for a discussion on using the RCTIME statement to read battery voltage directly using a Stamp: www.emesystems.com. Look under app-notes and the RCTIME command.
  • SwordfishROVSwordfishROV Posts: 3
    edited 2007-12-31 23:15
    Thanks for the help!
  • Joshua SiegelJoshua Siegel Posts: 51
    edited 2008-01-02 20:59
    How long can one reasonably expect the RCTIME method to take?
    I have to read 6 analog values and am aiming for sub 10ms, ideally sub 5. Is this feasible? Will an ADC even be able to deliver the information this quickly?
  • SwordfishROVSwordfishROV Posts: 3
    edited 2008-01-02 22:12
    The help database in the PBASIC editor claims that 1ms/reading is good. Give it a quick read through. I think (just a guess) that you could create a very fast RC circuit with a very small capacitor. The drawback is that you might get system noise and resolution problems at higher speed discharges.
  • Joshua SiegelJoshua Siegel Posts: 51
    edited 2008-01-02 22:37
    Thanks, Swordfish!
Sign In or Register to comment.