November 23, 2024, 04:09:59 AM

News:

You can now use Vixen to program your Prop-1 and Prop-2 controllers!  Get started quickly and easily, without having to learn PBASIC.  Details in the Library forum.


Prop-2 11 I/o's

Started by gadget-evilusions, May 23, 2013, 02:45:15 PM

Previous topic - Next topic

gadget-evilusions

I would like someone to confirm my conclusion:

If I need 7 potentiometers, 3 outs, and 1 trigger in, that would be 11 I/O's and my best option would be a prop-2? I am going to build a 3 output 7 stage timer (delay after trigger, 1st relay on, delay, 2nd relay on, delay, 3rd relay on, delay before trigger allowed). I want to be able to adjust all 7 timing functions on the fly using the POTs for analog input.
Brian
Evilusions LLC
www.evilusions.com for all your pneumatic components

JackMan

Are the pots gonna delay the relays? Are there only 3 relays? What are the other 4 pots for?

bsnut

You are right on your conclusion by using the Prop-2. Since you will be using only 11 pins (I/O) out of 16 pin (I/O).

When setting up your program , it wouldn't be a bad idea to when looking at these7 pots to have them in their own subroutines. This would make your program easy to read.
William Stefan
The Basic Stamp Nut

JonnyMac

I'd be inclined to pull the ULN for the lower pin group and use pins 0..7 for pots. You could use a subroutine like this.

' Set potPin to 0..7 before calling

Read_Pot:
  HIGH potPin
  PAUSE 1
  RCTIME potPin, 1, potValue
  RETURN


It would require two variables: potPin (byte) and potValue (word)
Jon McPhalen
EFX-TEK Hollywood Office