May 17, 2024, 11:50:15 PM

News:

Got VSA?  Want to use your Prop-SX?  Now you can!  See the VSA section of the Library forum for Prop-SX code that works with VSA.


Recent posts

Pages 1 ... 7 8 9 10
81
Prop-1 / Re: Programming help?
Last post by Jeff Haas - October 22, 2019, 12:02:17 AM
Wow Chris...that's a complicated one!  I don't have a DC-16 or uMP3, so I can't test it.

However, take a look at this thread for BigRez's Crate Beast, he almost completely filled the Prop-1's memory:
http://www.efx-tek.com/php/smf/index.php?topic=1245.msg7326#msg7326

There is a link to the final version of his code at the bottom of the first page, it should be a good starting point.  Since you're not doing a shaking effect, you can cut the subroutine that handles the valves and get some space back.  I tried that and it helps a lot.  Also he has three triggers in there, you don't need those either - get rid of everything to do with "event" and you get a bit more back.  You will need to update the mp3 code to what you're used to using.
82
Prop-1 / Re: Programming help?
Last post by BigRez - October 21, 2019, 10:54:14 AM
Sounds like all the parts I have in my Crate Beast, but with only a few days to go for you, I wouldn't have the time to modify my program to fit your needs.

I do remember that I wasn't able to get everything I wanted to fit into the prop-1 memory. JohnnyMac gave some great tricks  to condense the code, and I came up with some other things, but in the end I had to shorten the routine or move to a prop-2. Looking at what you've got connected and your routine, you might run into that issue as well.

Sorry I can't help... got too much to do myself.
83
Prop-1 / Re: Programming help?
Last post by ChrisBartram - October 21, 2019, 08:00:01 AM
Ok thanks.
Here's the connection layout:

Prop1
Out0: Actor Start button [Momentary - Normally Open]
Out1: Video Switch [Normally Open] (MedeaWiz Sprite media player)
2:
3:
4:
P5.w: -> uMP3 [transmit @2400Baud]
P5.r+b -> uMP3 power
P6.w: -> uMP3 [receive @2400Baud]
P7: -> DC16 => RC4

RC4
0: Spot on Coffin
1: Spot on Preacher
2: strobes +electric firecrackers
3: Coffin Fogger

DC16
1-9: candles (9)
10:
11:
12: Coffin popup (12v cylinder)
13: plant1 (12v cylinder)
14: plant2 (12v cylinder)
15: Preacher Power
16:

And here's the sequence I'm looking for:

Start:
All Candles on [DC16 1-9]
Wait for actor trigger
[Turn ON] Preacher Power
[Turn ON] Spot on Coffin
Send to uMP3: PC F /eulogypt1.mp3
Wait 60 seconds
[Turn OFF] Spot on Coffin
[Turn ON] Spot on Preacher
Wait 10 seconds
Cycle candles 1-9 [1 second on each]
[cycle 2 times; plant1 on; wait 1 second; plant1 off; plant2 on; wait 1 second; plant 2 off]
[Turn OFF] Spot on Preacher
Send to uMP3: PC F /eulogypt2.mp3
[Turn ON] Coffin Fogger
[Turn ON/close switch] MedeaWiz Sprite
Wait 3 seconds
[Turn ON] Strobes + Electric Firecrackers
[Turn ON] Spot on Coffin
[Turn ON] Coffin popup
Send to uMP3: PC F /exit.mp3
Pause 5 seconds
[Turn OFF] Spot on Coffin
[Turn OFF] Coffin popup
[Turn OFF] Coffin Fogger
[Turn OFF/open switch] MedeaWiz Sprite
[Turn OFF] Preacher Power
Goto Start
84
Prop-1 / Re: Programming help?
Last post by Jeff Haas - October 21, 2019, 06:15:06 AM
JonnyMac isn't around anymore, but there are still a few of us checking in.  Post the info and we'll see what we can do.
85
Prop-1 / Programming help?
Last post by ChrisBartram - October 20, 2019, 06:27:42 PM
Is JohnnyMac still around? I've got a fairly involved prop1 based animation sequence I need to program and would appreciate a headstart... Been a while since I've had to code on the prop1 and time is short (our opening night is Friday 10/25).
I can post the part layout and the sequence I'm looking for if someone is available? Setup includes a daisy-chained DC16 and RC4 and a Rogue Robotics uMP3.
86
Prop-1 / Re: Prop 1 with AP-8+
Last post by Jeff Haas - October 14, 2019, 07:27:31 PM
Last idea... Try a different serial cable.
87
Prop-1 / Re: Prop 1 with AP-8+
Last post by aquawilly54 - October 14, 2019, 07:07:26 PM
Thanks Jeff, but it still seems to be a no go.  Nothing with the changes, but as before plays fine if I hit the start button.  I'll just have to go without.


Thanks much for your time.

Steve



88
Prop-1 / Re: Prop 1 with AP-8+
Last post by Jeff Haas - October 13, 2019, 01:43:58 PM
Also, to drop in a section of code, click the # button above the area where you type.  Then paste the code in between the two words

[ code ]PASTE CODE HERE[ /code ]

Note that I added a space at the start before the word "code" and one at the end after the word "code" otherwise the board tries to show what I pasted as code!
89
Prop-1 / Re: Prop 1 with AP-8+
Last post by Jeff Haas - October 13, 2019, 01:41:30 PM
Hi Steve,

I don't have an AP-8 anymore, but here are a few quick things to look at:

- Check the jumpers, see if you have any installed.  You should NOT have any on the board.  The baud rate and the serial address you're using are set without any jumpers.

- You have the command for the AP-8 slightly wrong, I think you're mixing it up with the version for the AP-16.  The PDF shows this as the command to play a sound on the AP-8:

SEROUT Sio, OT2400, ("!AP8", %11, "P", 7)

You have:

SEROUT Sio, Baud, ("!AP8", %00, "P?", 2, 1)

This has the commands for the AP-16..."P?" is to play a random file on the AP-16's SD card, with the two parameters it needs after it.

You should change your AP-8 command to:

SEROUT Sio, Baud, ("!AP8", %00, "P", 7)

Note that this plays the file in AP-8 audio segment 7, change it if you stored the sound in a different segment.  Remember to carefully check the docs when you jump back and forth between the various boards!

Jeff
90
Prop-1 / Prop 1 with AP-8+
Last post by aquawilly54 - October 13, 2019, 11:49:50 AM
Is there anyone out there that uses an AP-8+?  I'm sure I'm overlooking something, but I'm having an issue.  If I use the start button on the board it will play just fine, but when I hook up the prop-1 it just sits there staring at me.  I'm submitting the program for review by all.  Hopefully it's something silly.  What I do know is that if I connect to my AP-16+ and change the program to reflect the 16 it all works well.  When I connect back to the AP-8+ and modify the program for the 8 I get nothing. 

Here we go:

I still can't figure out how to load up the actual program, so here it is in b&w. 

My apologies,
Steve

                     ' =========================================================================
'
'   File......      Dead body II
'   Purpose...      Relay for wiper motor, and screams
'   Author....      Steve
'   E-mail....
'   Started...      10/05/2019
'   Updated...
'
'   {$STAMP BS1}
'   {$PBASIC 1.0}
'
' =========================================================================


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



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


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

SYMBOL  Sio             = 7                     ' SETUP = UP
SYMBOL  Trigger         = PIN6                  ' SETUP = DN
SYMBOL  Relay           = PIN2                  ' activate wiper motor


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

SYMBOL  Yes             = 1
SYMBOL  No              = 0

SYMBOL  TrOn            = 1                     ' active-high trigger
SYMBOL  TrOff           = 0

SYMBOL  IsOn            = 1                     ' active-high I/O
SYMBOL  IsOff           = 0

SYMBOL  Baud            = OT2400


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

SYMBOL  status          = B0                    ' status (B0 for bit access)
SYMBOL   playing        = BIT7                  ' 0 = idle, 1 = playing

SYMBOL  timer           = B2                    ' for debounce loop


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

Power_Up:
  PAUSE 3000                                    ' let AP-8+ initialize

Reset:
  PINS = %00000000                              ' all off
  DIRS = %00111111                              ' P5..P0 are outputs

  PAUSE 40000                                   ' PIR warm-up/delay


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

Main:
  timer = 0                                     ' reset debounce timer

Check_Trigger:
  PAUSE 5                                       ' scan delay
  IF Trigger = TrOff THEN Main                  ' check trigger input
    timer = timer + 5                           ' update timer
  IF timer < 100 THEN Check_Trigger             ' check timer

        T00:                                            ' start of sequence
  Relay        = IsOn

  PAUSE 3958                                    ' 4s - wiper motor is on

  ' play audio file, SFX00.WAV
  ' -- allows testing via AP-8+ start button


   T04:
  SEROUT Sio, Baud, ("!AP8", %00, "P?", 2, 1)  ' play SFX00.WAV thru SFX02.WAV one time (Select switch on #8 for randomization).




     Audio_Wait:
  PAUSE 100
  SEROUT Sio, Baud, ("!AP8", %00, "G")
  SERIN  Sio, Baud, status
  IF playing = Yes THEN Audio_Wait



  GOTO Reset
Pages 1 ... 7 8 9 10