November 22, 2024, 08:47:07 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-1 Pin 7 as a trigger input?

Started by Shmedley, August 19, 2007, 05:52:46 PM

Previous topic - Next topic

Shmedley

can pin 7 be used to feed a trigger into another device.  I would like it when the PIR trigger of the Prop-1 goes high, pin 7 can trigger a Audio servo driver.  is this possible?

Thanks,
Shmedley

JonnyMac

Yes, but does the Audio-Servo driver want a TTL high input? -- I'm not so sure; it may in fact want an open-collector input which means you could use OUT7 to pull the trigger pin low.  I use the OUTx terminals when connecting to other Scary-Terry board and am going to assume this is the same.  If you provide me a link to the documentation I will check for you.
Jon McPhalen
EFX-TEK Hollywood Office

Shmedley

You are correct, the audio driver board is a scary tarry which is looking for a standard PIR, mat ...trigger.  so If I understand your comment I can have out7 drag the signal low and all is well?

Thanks for the response.......

JonnyMac

Do you have link to tech docs?  I can't answer with certainty until I read the documentation. 
Jon McPhalen
EFX-TEK Hollywood Office

Shmedley

Not much in the way of doc's but I did find the trigger requires dry contacts only.......not sure if this gives you the clue you need.  I requested more details from scarry terry...........

http://www.cowlacious.com/SupportDocs/Scary%20Terry%20ASD%20Manual%20for%202006%20-%20regular-.pdf

Clip from doc page 7
"A set of trigger wires is provided for your convenience. The trigger
wires allow you to easily trigger the device using an effect timer, step
pad, motion detector, switch, etc. Just remove the RED jumper that is
attached to the trigger pins and replace it with the trigger wires plug.
Then connect the trigger wires to your triggering device. The triggering
device should provide a set of dry contacts that do not send any
voltage to Scary Terry?s triggering pins."

zeenon

August 21, 2007, 11:55:34 AM #5 Last Edit: August 21, 2007, 12:10:17 PM by zeenon
Here's an old program Jon whiped up when I was starting my talking skull. I used OUT0 and GND to kick off the cowlacious board.

' =========================================================================
'
'   File...... PSC_Demo.BS1
'   Purpose... PSC Demo Program (tranlated from Parallax docs)
'   Author.... Jon Williams, EFX-TEK
'   E-mail.... jwilliams@efx-tek.com
'   Started...
'   Updated...
'
'   {$STAMP BS1}
'   {$PBASIC 1.0}
'
' =========================================================================


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


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


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

SYMBOL  Sio             = 7

SYMBOL  Trigger         = PIN6                  ' use P6; SETUP = DN
SYMBOL  Cowlacious      = PIN0                  ' use OUT0 and GND

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

SYMBOL  IsOn            = 1
SYMBOL  IsOff           = 0



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

SYMBOL  chan0            = B0
SYMBOL  chan2            = B4
SYMBOL  chan4            = B5
SYMBOL  chan6            = B6
SYMBOL  ramp             = B1

SYMBOL  pw              = W1
SYMBOL  pwLo            = B2
SYMBOL  pwHi            = B3


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

Reset:
  chan0 = 0
  chan2 = 2
  chan4 = 4
  chan6 = 6
  ramp = 13
  DIRS = %00000001                              ' make P0 an output


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

Main:

  pw = 1250
  GOSUB Tilt
  pw = 275
  GOSUB Tilt
  pw = 800
  GOSUB Pan
  pw = 700
  GOSUB Pan
  pw = 1100
  GOSUB Pan
  pw = 800
  GOSUB Pan
  pw = 800
  GOSUB Eyes
  pw = 1000
  GOSUB Eyes
  pw = 500
  GOSUB Eyes
  pw = 800
  GOSUB Eyes
  GOSUB Start_Audio
  pw = 1250
  GOSUB Tilt
  pw = 275
  GOSUB Tilt
  pw = 800
  GOSUB Pan
  pw = 700
  GOSUB Pan

  END


' -----[ Subroutines ]-----------------------------------------------------

Tilt:
  SEROUT Sio, OT2400, ("!SC", chan0, ramp, pwLo, pwHi, $0D)
  PAUSE 2000
  RETURN

Pan:
  SEROUT Sio, OT2400, ("!SC", chan2, 17, pwLo, pwHi, $0D)
  PAUSE 3000
  RETURN

Eyes:
  SEROUT Sio, OT2400, ("!SC", chan4, ramp, pwLo, pwHi, $0D)
  SEROUT Sio, OT2400, ("!SC", chan6, ramp, pwLo, pwHi, $0D)
  PAUSE 3000
  RETURN

Start_Audio:
  Cowlacious = IsOn                             ' press start button
  PAUSE 50                                      ' momentarily
  Cowlacious = IsOff                            ' release start button
  RETURN

JonnyMac

"Dry contact" means you'll have to use an OUTx terminal.  What you have to do is determine which of those two pins on the ST board is ground and then connect that to the GND terminal block; the other is connected to OUTx (OUT0 - OUT7 -- your choice).
Jon McPhalen
EFX-TEK Hollywood Office

Shmedley

Perfect! works great..thanks for the assistance........

Shmedley!