November 24, 2024, 09:08:44 PM

News:

Be sure to checkout our Vixen interfaces in the Library forum -- if you want PC automation at near zero cost, EFX-TEK and Vixen is a great combination of tools.


Help Prop-1 Board Not Working

Started by alphachi, August 26, 2015, 10:46:13 PM

Previous topic - Next topic

alphachi

August 26, 2015, 10:46:13 PM Last Edit: August 26, 2015, 10:56:32 PM by alphachi
I think I may have popped a component on the board, I can no longer detect the Prop-1 on my USB. The board worked fine with the 24v power supply until I loaded the program below:


I am using a 24v DC power supply to trigger 5 different 24 volt air solenoids :


Is there anything noticeably wrong with the code?
' =========================================================================
'
'   File....... Marvin.BS1
'   Purpose.... Marvin the Coat Rack
'   Author..... Allan Greif
'   E-mail..... allangreif@gmail.com
'   Started.... August 24 2015
'   Updated....
'
'   {$STAMP BS1}
'   {$PBASIC 1.0}
'
' =========================================================================


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

SYMBOL  UnusedP7        = 7                     ' not used
SYMBOL  Trigger         = PIN6                  ' PressurePadTriggered
SYMBOL  PinSpot         = PIN5                  ' Pin Spot Light Active
SYMBOL  BookShelf       = PIN4                  ' Book Shelf Extension
SYMBOL  AirCannon       = PIN3                  ' Air Cannon Active
SYMBOL  RightArm        = PIN2                  ' Move Right Arm
SYMBOL  LeftArm         = PIN1                  ' Move Left Arm
SYMBOL  Head            = PIN0                  ' Lift Head


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

SYMBOL  NO              = 0
SYMBOL  YES             = 1

SYMBOL  IS_CLOSED       = 0
SYMBOL  IS_OPEN         = 1

SYMBOL  IS_OFF          = 0
SYMBOL  IS_ON           = 1

SYMBOL  IS_DOWN         = 0
SYMBOL  IS_UP           = 1


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

SYMBOL  timer           = B2
SYMBOL  reps            = B3


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

Reset:
'         76543210
  DIRS = %00111111                              ' P7-P6 ins, P5-P0 outs
  PINS = %00000000                              ' all outputs off

  PAUSE 9000                                   ' pir warm-up / re-trigger

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

Main:
  timer = 0                                     ' reset debounce timer

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

  PAUSE 500
  PinSpot = IS_ON
  Head = IS_UP

  PAUSE 1000
  AirCannon = IS_ON
  LeftArm = IS_UP
  RightArm = IS_UP

  PAUSE 100
  RightArm = IS_DOWN
  AirCannon = IS_OFF

  PAUSE 350
  LeftArm = IS_DOWN

  PAUSE 250
  LeftArm = IS_UP

  PAUSE 250
  LeftArm = IS_DOWN

  PAUSE 500
  BookShelf = IS_ON

  PAUSE 250
  BookShelf = IS_OFF

  PAUSE 250
  BookShelf = IS_ON

  PAUSE 750
  BookShelf = IS_OFF

  PAUSE 250
  BookShelf = IS_ON

  PAUSE 500
  BookShelf = IS_OFF

  PAUSE 250
  PinSpot = IS_OFF
  Head = IS_DOWN

  GOTO Reset

JackMan

Are the power and V+ LED's lit? Hard to tell from the photo but it does appear the cap circled is burned. At any rate, a bad program wouldn't cause your situation.

alphachi

Yes they still emit light but I think the board is dead. After rereading the instructions, I should have connected the solenoid to one of the outputs and the V+ Terminal. If I connected the outputs to the ground terminal, would that cause the board to fail?

JonnyMac

No. The OUTx terminals are open-collector and connect to ground. Open-collector means they act like an open circuit when not active, and then they switch to ground when activated; connecting ground to ground is not a problem.

I have PM'd you with instructions to return the board to us for repair -- it's not something you can do in the field.
Jon McPhalen
EFX-TEK Hollywood Office