November 23, 2024, 03:47:26 PM

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.


Last minute programming help...

Started by nfmmalice, October 28, 2011, 06:19:32 PM

Previous topic - Next topic

nfmmalice



I have one last prop I'm trying to figure out.n seems pretty simple in theory, but I can't figure out the lottery variables.


My setup is a single 24vdc solenoid and a remote trigger.

The 24vdc solenoid needs to actuate on a random basis.  I was trying to not have the same routine every single time.  I was trying for a random command, and I think Lottery was what I was looking for?

Also the remote has 5 pins.  12vdc + & -  which I connected the power to, and three other pins. COM, NO, and NC.  I was trying to use this to actuate the routine.

Any help would be greatly appreciated!


bsnut

I have this question about this.
QuoteThe 24vdc solenoid needs to actuate on a random basis.
How long does the solenoid need to stay on for after the random time delay? The reason why, it's important detail needed in writing the code for your program.

QuoteAlso the remote has 5 pins.  12vdc + & -  which I connected the power to, and three other pins. COM, NO, and NC.  I was trying to use this to actuate the routine.
To answer this you. I'm thinking that, when you push the button on the remote, that the "NO" contacts close. If so, then you will use a servo extension cable and plug it in to the I/O Pin that you program in your code and other in would connect up to your remote between COM and NO using the red and white wires on the servo cable.
William Stefan
The Basic Stamp Nut

JonnyMac

What kind of timing are you looking for?  You say random, but with no range.  When the device does come on, for how long should it stay one.  Programming is really pretty easy when you have all the details.
Jon McPhalen
EFX-TEK Hollywood Office