May 08, 2024, 02:54:22 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.


Activiating My Cowlacious Board

Started by Nick, October 09, 2009, 03:17:16 PM

Previous topic - Next topic

Nick

October 09, 2009, 03:17:16 PM Last Edit: October 09, 2009, 07:35:42 PM by JonnyMac
Newb who needs Help.

I have read all the posts in this thread and hooked up my Prop 1 to my C300  following every direction here. I get sound once I turn on my Prop one board, but No sound after that. it worked one time after the power up and not again.

I have my prop 1 powering the C300 using the V+ and gnd and am using Out5 white wire to the V-trig on the C300 board with the provided wire from Cowlacious and my sound will not trigger with the prop 1. I do not have the black wire hooked up it is taped back.

It is probably something simple I did or didn't do.

Here is the program you wrote for us Jon.

You are awesome thanks for the great support.


[Edit] -- JonnyMac fixed the DIRS setup to make P5 an output.


' =========================================================================
'
'   File......
'   Purpose...
'   Author....
'   E-mail....
'   Started...
'   Updated... 10 OCT 2009
'
'   {$STAMP BS1}
'   {$PBASIC 1.0}
'
' =========================================================================


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

SYMBOL  Trigger         = PIN6                  ' SETUP = DN
SYMBOL  CARP            = PIN5

SYMBOL  Fogger          = PIN2
SYMBOL  Strobe          = PIN1
SYMBOL  Thrasher        = PIN0


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

SYMBOL  IsOn            = 1                     ' for active-high in/out
SYMBOL  IsOff           = 0

SYMBOL  Yes             = 1
SYMBOL  No              = 0

SYMBOL  ThrashTime      = 18000                 ' 18 seconds


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

SYMBOL  delay           = W3                    ' thrash cycle timing
SYMBOL  timer           = W4                    ' event timing
SYMBOL  lottery         = W5                    ' random value


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

Reset:
 PINS = %00000000                              ' clear all
 DIRS = %00100111                              ' set output pins (fixed)

 PAUSE 15000                                   ' reset delay


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

Main:
 timer = 0                                     ' reset timer

Check_Trigger:
 PAUSE 5                                       ' loop pad
 timer = timer + 5 * Trigger                   ' update timer
 IF timer < 100 THEN Check_Trigger             ' wait for 0.1 sec input

Start_Audio:
 CARP = IsOn                                   ' pulse to start CAR/P-300
 PAUSE 100
 CARP = IsOff
 PAUSE 7500                                    ' audio run time (20 secs)

 timer = 0                                     ' reset timer
 Strobe = IsOn

Thrash_Baby:
 RANDOM lottery
 delay = lottery // 201 + 50                   ' between 50 and 250 ms
 Thrasher = 1 - Thrasher                       ' flip cylinder status
 PAUSE delay                                   ' hold
 timer = timer + delay                         ' update timer

Check_Fog_Start:
 IF timer < 3000 THEN Thrash_Baby              ' time to start fogger?
   Fogger = IsOn                               ' yes

Check_Fog_End:
 IF timer < 5000 THEN Thrash_Baby              ' time to stop fogger?
   Fogger = IsOff                              ' yes

Check_Thrash_End:
 IF timer < ThrashTime THEN Thrash_Baby        ' done?
   GOTO Reset                                  ' yes, clear everthing


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

JonnyMac

October 09, 2009, 07:27:27 PM #1 Last Edit: October 09, 2009, 07:33:00 PM by JonnyMac
You may need to contact Karl -- he's the guy that builds the CAR/P-300.  I have chatted with him by phone and the instructions we provide are per his specs/design:

Review....

1) Connect an OUTx terminal to one side of the V-Trig input; connect the other side to V+ *
2) Set the V-Trig input level to to be compatible with a 12-volt signal
3) Pulse the output (LOW-HIGH-LOW) for about 100ms to start the CAR/P-300
4) Make sure you have the Prop-1/2/SX power switch in position 2 so that V+ is active

* In the listing above you would connect the OUT5 and V+ to V-Trig


PS: Telling me you're a newb gets you zero sympathy!  ;D
Jon McPhalen
EFX-TEK Hollywood Office

JonnyMac

Okay, my fault -- I just found an error in the listing.  In the DIRS setup P5 is not made an output.  Sorry about that -- just goes to show that your pal JonnyMac is in fact human!
Jon McPhalen
EFX-TEK Hollywood Office

Nick