November 23, 2024, 08:36:21 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.


Casa Fear Zombie Programming help

Started by halstaff, February 07, 2011, 02:26:47 PM

Previous topic - Next topic

halstaff

This is my first attempt at using a Prop1 as I've only previously used the EZ-8 (which I love by the way).  However, the programming is completely new to me.
I will be using the Prop1 triggered by a PIR and would like the prop to run for about 15 seconds before shutting off.  I would like it to have a delay of 30 seconds before it can be re-triggered.  While the prop is activated, I would like a light to come on and then turn off when the prop does.  I will be using an AP8 and would like to have 3 different audio tracks that run sequentially.
Please let me know if I need to include any more information.
Any help would be greatly appreciated.
Steve

JonnyMac

You make assumptions that everyone knows what a Casa Fear Zombie is -- not everyone does.

How many "thrashing" outputs do you have? There have been variations on that [very cool] prop so you need to be specific.

Also, you can search the forums for specific information, for example, "casa fear" and I found this:
-- http://www.efx-tek.com/php/smf/index.php?topic=1514.0
-- http://www.efx-tek.com/php/smf/index.php?topic=1103.0
-- http://www.efx-tek.com/php/smf/index.php?topic=1270.0

As you can see, this is a popular prop. Have a look at those links to get an idea about the program, and do let us know how many outputs you have so we can customize a program for you.
Jon McPhalen
EFX-TEK Hollywood Office

halstaff

February 07, 2011, 03:12:12 PM #2 Last Edit: February 07, 2011, 03:25:03 PM by halstaff
Jon,
I shouldn't have made the assumption that everyone knew what it was.  It is a great prop!  Here's mine running off my EZ-8 http://www.youtube.com/watch?v=FxRKdGUtT4U
Mine is just like the original with 2 cylinders, one for each elbow.  
I would also like to have one output trigger a light which would only be on when the prop is active.
Thanks for the help.
Steve

JonnyMac

Tell me which connections you want to use and I'll whip up a program -- unless another forum member beats me to it!
Jon McPhalen
EFX-TEK Hollywood Office

halstaff

Jon,
I'm not sure I understand the question.  If you're asking which outputs, 1 & 2 for the pneumatics cylinders and 3 for the light.
I'm anxious to get this prop working on its own.  As soon as I receive my order from you with my cables, I can program it.
Steve










JackMan

What kind of light are you using? Whoever writes a program for you will need to know.

halstaff

Quote from: JackMan on February 07, 2011, 05:53:56 PM
What kind of light are you using? Whoever writes a program for you will need to know.

Hadn't thought that far ahead yet but probably a super bright LED.

JackMan

Again, whoever writes your program will need this info. You need to provide the current draw (mA) for your light.  "Super Bright LED" isn't enough to go on. You may need to use a relay if the current is too high.

halstaff

Quote from: JackMan on February 07, 2011, 06:36:57 PM
Again, whoever writes your program will need this info. You need to provide the current draw (mA) for your light.  "Super Bright LED" isn't enough to go on. You may need to use a relay if the current is too high.

I would use this LED -http://www.goldmine-elec-products.com/prodinfo.asp?number=G16563
The current draw is 20mA.  Using a relay if necessary is no problem.
Thanks for walking me through this.  This is new ground for me.
Steve

JackMan

20mA is no problem at all, I figured you meant a high power LED. The one you listed won't provide much light, not sure what you are wanting to "light up" with the LED.

bsnut

Quote from: JackMan on February 07, 2011, 05:53:56 PM
What kind of light are you using? Whoever writes a program for you will need to know.
Why Jack is asking this question, is because the ULN can handle around 200mA for what you trying to do. Most light bulbs(spots) and LED ones draw over the rating for the ULN. That's why, I would use a relay to handle this light.

From, what I see in your postings. You want, to use the following. But, I have some basic questions for you.
1) PIR...This is not a big issue and that answer.
2) Pneumatic cylinders...How many valves and type are operating the cylinders in the prop?
3) AP16+....How are you planning to trigger the AP16+? Through the serial connection or the voltage trigger from the prop1?

All these questions are details that are very important. What it does for you is, it gets the program done for faster and without any hassles later on. Without these details, the one who writes the program would have to guess what you want to do. This wouldn't be good for you.
William Stefan
The Basic Stamp Nut

halstaff

Quote from: bsnut on February 07, 2011, 07:13:53 PM
Quote from: JackMan on February 07, 2011, 05:53:56 PM
What kind of light are you using? Whoever writes a program for you will need to know.
Why Jack is asking this question, is because the ULN can handle around 200mA for what you trying to do. Most light bulbs(spots) and LED ones draw over the rating for the ULN. That's why, I would use a relay to handle this light.

From, what I see in your postings. You want, to use the following. But, I have some basic questions for you.
1) PIR...This is not a big issue and that answer.
2) Pneumatic cylinders...How many valves and type are operating the cylinders in the prop?
3) AP16+....How are you planning to trigger the AP16+? Through the serial connection or the voltage trigger from the prop1?

All these questions are details that are very important. What it does for you is, it gets the program done for faster and without any hassles later on. Without these details, the one who writes the program would have to guess what you want to do. This wouldn't be good for you.


It's surprising how much light these LED's put out.  I used them to highlight my tombstones last year and they did a great job.
I can use a relay and a AC light if that makes the programming process easier.
1.  I'm using a Paralax PIR sold by EFX-TEK.
2.  The prop uses 2 DC cylinders.  I used this kit from Evilusions - http://evilusions.com/shop/product_info.php?cPath=71&products_id=1135
3.  I'm hoping to use my AP8 but have never used it.  What is the recommended way to trigger it?
Thanks.
Steve

gadget-evilusions

I am going to post this program as it's the one I use generally with the kit you bought.

Upon power up it will pause for 10 seconds, giving the PIR some time to warm up.

Connect your valves red wire to V+, and the black wire to Out 0 and Out 1. Your 20ma 12vdc led will connect to +V and Out3. This program used a +12v output on Out 5 to start an audio player that was not EFX-TEK. If you know for sure what audio board you want to use I can modify this program accordingly.

Every time the PIR sees motion after the 10 second cool down, the 2 cylinders will randomly thrash for the value listed next to ThrashTime


' =========================================================================
'
'   File...... Evilusions_GroundBreaker.BS1
'   Purpose...
'   Author....
'   E-mail....
'   Started... 4-1-10
'   Modified..
'
'   {$STAMP BS1}
'   {$PBASIC 1.0}
'
' =========================================================================


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


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


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


SYMBOL  Trigger         = PIN6                  ' ULN is pull-down
SYMBOL  Audio           = PIN5
SYMBOL  LED             = PIN3                  ' use V+/OUT2 terminals
SYMBOL  Shoulder2       = PIN1                  ' use V+/OUT1 terminals
SYMBOL  Shoulder1       = PIN0                  ' use V+/OUT0 terminals


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

SYMBOL  IsOn            = 1                     ' for active-high in/out
SYMBOL  IsOff           = 0                     ' put back to low/off

SYMBOL  Yes             = 1
SYMBOL  No              = 0

SYMBOL  Baud            = OT2400                ' baud serial
SYMBOL  ThrashTime      = 15000

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

SYMBOL  idx             = B2
SYMBOL  valves          = B3
SYMBOL  last            = B4

SYMBOL  delay           = W3
SYMBOL  timer           = W4
SYMBOL  lottery         = W5


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

Reset:
  PINS = %00000000                              ' preset IO pins
  DIRS = %00000111                              ' define IO pins

  PAUSE 10000                                   ' 10s inter-show delay


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

Main:
  timer = 0                                     ' reset timer

Check_Trigger:
  RANDOM lottery                                ' randomize lottery value
  PAUSE 5                                       ' loop pad
  timer = timer + 5 * Trigger                   ' inc or clear timer
  IF timer < 100 THEN Check_Trigger             ' wait for 0.1 sec input

Start_Audio:
  Audio = IsOn
  PAUSE 100
  Audio = IsOff

LED = IsOn

Jump:
  PINS = %00000011                              ' both shoulders on
  PAUSE 1000

Thrasher:
  FOR idx = 1 TO 3                              ' big stir
    RANDOM lottery
  NEXT
  valves = lottery & %00000011

  IF valves = last THEN Thrasher                ' no repeats
    last = valves                               ' save for next cycle

  PINS = valves                                 ' update should outputs
  RANDOM lottery                                ' restir
  delay = lottery // 251 + 100                  ' delay 100 to 350 ms
  PAUSE delay
  timer = timer + delay                         ' update timer
  IF timer < ThrashTime THEN Thrasher                ' thrash for 10 seconds
    GOTO Reset

Brian
Evilusions LLC
www.evilusions.com for all your pneumatic components

halstaff

I'm planning on using an AP-8 from EFX-TEK for my audio player.  I would like to rotate through 3 different audio tracks.

bsnut

How long are the audio tracks? Because the AP8 can play and store an audio track up to 1 minute. If, the tracks you are planning to are under 1 minute, the AP8 will work for you. Now, if your tracks are over a minute you will need another AP8 if you have one or a different player like the AP16+.
William Stefan
The Basic Stamp Nut