November 23, 2024, 11:06:26 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.


coffin or monster in box

Started by rott, October 21, 2011, 08:57:02 AM

Previous topic - Next topic

rott

Don't know if this can happen but I would like to trigger my prop-1 with a remote relay. I think it would be similar to triggering it with a motion detect device, then have a constant 12v running to run my prop-1 the relay has a latch and momentary setting I am currently using the momentary setting so after pushing the button on the remote control unit I would like it to start the prop-1 that would control and turn on all at the same time. This is the relay I am using
(http://www.e-madeinchn.com/MagicReceivers.html#Magic_1CH_and_Magic_1CH_C

1) Turn on the 12v solenoid to make the top bang up and down
2) Turn on audio card with relays hooked to it http://www.cowlacious.com/products/Cowlacious-AudioPlayerBoard.html
3) The relays connected to the audio card turn on my fogger and a strobe light http://www.cowlacious.com/products/Dual-Relay-Board.html

4) All this runs for 20 sec
5) Can you explain or show me a diagram where all the wires hook up to the prop-1 I am very new to this and really don't understand allot of it yet

if I missed some thing please tell me

bsnut

QuoteCan you explain or show me a diagram where all the wires hook up to the prop-1 I am very new to this and really don't understand allot of it yet
I will be able provide hookup diagram for you later today. Also since you gave some details on how you want your prop to work, I should or someone else should be able to program this for you.
William Stefan
The Basic Stamp Nut

rott

thank you I cant wait to get this up and running

JackMan

October 21, 2011, 09:45:58 PM #3 Last Edit: October 30, 2011, 05:52:19 PM by JackMan
Here ya go. This program will do what you outlined but 20 seconds of steady fog blast is a lot, you may want to control this part differently (code will need to be altered) instead of using the relay board connected to the audio player. The wiring connections to the Prop-1 are outlined in the comments. For power to the remote, connect VCC from the remote to V+ of the Prop-1 and GND from the remote to GND of the Prop-1. Be sure the switch on the Prop-1 is in position 2.


'   {$STAMP BS1}
'   {$PBASIC 1.0}
'
' =========================================================================


' -----[ Program Description ]---------------------------------------------


' -----[ Revision History ]------------------------------------------------


' -----[ I/O Definitions ]-------------------------------------------------


SYMBOL  Trigger         = PIN6                  ' SETUP = DN   P.6 W/R to COM/NO of remote
SYMBOL Fogger          = 2                    ' V+/OUT2 to 12v relay coil for fogger control
SYMBOL  Audio           = 1                     ' V+/OUT1 to 12v trigger inputs of Audio Player
SYMBOL  Valve           = 0                     ' solenoid on V+/OUT0


' -----[ Constants ]-------------------------------------------------------


SYMBOL  PULSE_MIN       =   75                  ' min valve delay
SYMBOL  PULSE_MAX       =  250                  ' max valve delay
SYMBOL  SHAKE_TIME      = 20000                 ' 20 second shake duration


' -----[ Variables ]-------------------------------------------------------

SYMBOL  delay           = W3                    ' allow long delays (>255)
SYMBOL  timer           = W4                    ' for debounce/event time
SYMBOL  lottery         = W5                    ' random #


' -----[ Initialization ]--------------------------------------------------

Reset:
  PINS = %00000000                              ' clear all outputs
  DIRS = %00111111                              ' make P0-P5 outputs


' -----[ Program Code ]----------------------------------------------------

Main:
  timer = 0                                     ' reset timer

Check_Trigger:
  RANDOM lottery
  PAUSE 5                                       ' scan delay
  timer = timer + 5 * Trigger                   ' update timer
  IF timer < 200 THEN Check_Trigger             ' wait for 0.2 sec input

  timer = 0

  HIGH Fogger                                  ' start fogger
PAUSE 3000                                   ' 3 second fog blast (change to suit what you want)
  LOW Fogger  
  HIGH Audio                                    ' start audio player/relays 
  PAUSE 250
  LOW Audio
 
   

Shake_It:
  RANDOM lottery
  delay = PULSE_MAX - PULSE_MIN + 1             ' calculate span for //
  delay = lottery // delay + PULSE_MIN          ' caculate delay
  TOGGLE Valve
  PAUSE delay
  timer = timer + delay
  IF timer < SHAKE_TIME THEN Shake_It

  GOTO Reset 

bsnut

October 21, 2011, 11:10:19 PM #4 Last Edit: October 21, 2011, 11:13:33 PM by bsnut
Here is your hookup drawing based on the program that Jack did for you. I just finished my version of your program when Jack posted his. Thanks to Jack ;D.

If you have any questions just ask. That's what these forums are for
 
William Stefan
The Basic Stamp Nut

rott

October 24, 2011, 10:14:17 AM #5 Last Edit: October 24, 2011, 10:35:28 AM by rott
Thank you I will try this out and tell you how it goes. I also think 20 sec fog blast is alot even out of a 400w one. The relays that are trigged by the sound card are triggerd with 5v has RBB wire R is +5 B is black - and last B is brown that goes to the RDY this relay cable has a 3 prong hook up on it can I use this to control the fog and light strait off the prop-1

rott

Thank you very much for this program it really brought my coffin to life. I might see a future with other props running off prop-1.
I did want to ask bsnut what are the 2 connections in his drawing that are on top right of the prop-1 card above out7 I dont think I have those connections.

agian thank you..
also if I wanted to turn off the fogger sooner how would I do that?

bsnut

The two connections are the positive "V+" on the Prop-1, which one comes from the solenoid and the other goes to the audio trigger input on your audio player board. The idea, was to make easy to read. I hopes this helps you out.
William Stefan
The Basic Stamp Nut

rott

I spoke to soon. I will have to redo all the connections tommarow. it seems to be in a repeate cycle I am seeing double so I am stoping for the night.

JackMan

Quotealso if I wanted to turn off the fogger sooner how would I do that?

You would need to activate the fogger control directly from the Prop-1 and not the relay board connected to the audio board. The program code can easily be altered for this but we need to know exactly how your fogger circuit is configured.

Quoteit seems to be in a repeate cycle

If the program keeps repeating you most likely have something wired wrong from your remote, or the remote is in latching mode instead of momentary.

rott

I have another question I just want to make sure I am hooking up the ground wire correct

In the digram for solinod it shows the hot or (red) wire going to +V and the other wire going to (out0) the ground is this correct?

I have my hot wires hooked up to +V and grounds are going to out0, out1.

The sound card is triggered buy prop-1. I have hot to +V and ground to out1? does this supply 12v to the trigger on the sound card?


rott

Quote from: JackMan on October 26, 2011, 08:37:16 PM
Quotealso if I wanted to turn off the fogger sooner how would I do that?

You would need to activate the fogger control directly from the Prop-1 and not the relay board connected to the audio board. The program code can easily be altered for this but we need to know exactly how your fogger circuit is configured.

I have the push button of the fogger connected to a 110v relay that is plugged in to 110 house current. The hot wire is cut and is attached to the COM and the NO of the relay on connected to the sound card which uses 5v from the sound card and makes the connection

like this. Fogger push button --> 110v relay--> 5v relay and house current--> connected to sound card--> relay stays open as long as there is sound playing

bsnut

QuoteI have my hot wires hooked up to +V and grounds are going to out0, out1.
If you are talking about the from the wires from solenoid and the audio player trigger, then yes.

The best thing for you to do is attach a photo with your next post so we can see what you are trying to do. This way we can provide detailed answer.
William Stefan
The Basic Stamp Nut

rott

ok I have it figgured out after many tries last night the relay remote was set to (toggel) so it has been reset to momentary and I have to wait 30 seconds inbetween uses or the sounds card wont play..But it is all working great now
Just need to shorten down the fogger some if you can write a script for me I will replace the 110v relay with a 12v relay connected to the wired remote on the fogger so the relay will work just like pushing the button

JackMan

I added the fogger relay to the program above, the added lines are in red. This will give you a 3 second fog blast before the audio starts and the valve is activated.