November 15, 2024, 09:36:06 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 trouble shoot my Prop-1 board

Started by deadhaunts, August 26, 2009, 10:02:46 PM

Previous topic - Next topic

deadhaunts

Did I do something to my board?  I put the prop trainer on, run the test code, and "Hello World" comes up.  Then I run the strobe controller and no LED's light up when I press P6. I tried a number of other codes and get the same results.

I'm sure it's something simple, but i am so new to this I can't figure out whats wrong.

Thanks.

JonnyMac

Please don't make assumptions when asking for help -- post the code (the stuff right out of YOUR editor) that's giving you trouble.
Jon McPhalen
EFX-TEK Hollywood Office

deadhaunts

Sorry...

I run this and it works the way it is suppose to:

' {$STAMP BS1}
' {PBASIC 1.0}

MAIN:
  DEBUG "Hello, World!"
  END

Then I run:

' =========================================================================
'
'   File....... Strobe_Controller.BS1
'   Purpose.... Linear strobe of six outputs
'   Author..... EFX-TEK (www.efx-tek.com)
'   E-mail..... teamefx@efx-tek.com
'   Started....
'   Updated.... 01 JUL 2007
'
'   {$STAMP BS1}
'   {$PBASIC 1.0}
'
' =========================================================================


' -----[ Program Description ]---------------------------------------------
'
' Creates a linear strobe of six lamps/LEDs on P0..P5; much like airport
' landing lights.  Strobing runs when button on P6 is pressed.


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


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

SYMBOL  Trigger         = PIN6                  ' SETUP = DN


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

SYMBOL  IsOn            = 1                     ' button pressed
SYMBOL  IsOff           = 0                     ' button released

SYMBOL  LedTime         = 75                    ' light-on delay time


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

SYMBOL  thePin          = B2                    ' pin pointer


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

Reset:


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

Main:
  IF Trigger = IsOff THEN Main                  ' wait for button press

  FOR thePin = 0 TO 5                           ' loop through LEDs
    HIGH thePin                                 ' LED on
    PAUSE LedTime                               ' hold
    LOW thePin                                  ' LED off
  NEXT

  GOTO Main


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


' -----[ DATA Data ]-------------------------------------------------------

And nothing happens when I push P6 on the Prop-1 trainer.

It worked earlier today when I tried it, but I can't get it to work now.

Thanks



JonnyMac

Hmmm.... I just copied the code from your post into my BASIC Stamp Editor, downloaded it to the Prop-1, and it works fine.

Silly question, perhaps, but did you forget to press the Run button with the strobe program loaded up?  You should see a downloading window pop up after you do that.  If the "Hello, World" program worked then you have a working controller.

Another thing to check is the pin alignment on the Trainer; sometimes I pop it onto the board with the pins misaligned.  Check that, then try the download again.
Jon McPhalen
EFX-TEK Hollywood Office

deadhaunts

Based on your comments, I  am sure the Prop-1 board is functioning.  Should I start a new topic?

I am assuming the run button mention is P6 on the prop-1 traininer?  If so, then yes I did press the run button. I do get the downloading window to open when I run the strobe program. It sits in the ready stage.  I am thinking it could be either of the following:

1) PIR is not working 
2) Prop-1 trainer board is not working

Both were working yesterday morining.  Does the Prop-1 need to be reset?  If so, what is the procedure?

Anyway to test either to eliminate either one or both as the problem?

Once again, thanks.

Dave

JonnyMac

No, I meant the Run button in the IDE so that you could download the Strobe program to the Prop-1.  After than, pressing the P6-Trig button on the P1-T will cause the LEDs on P0-P5 to sequence -- they did on mine.

We have never seen a broken Trainer, but I frequently plug mine in askew which is why I suggested that you check that.  Also, the orientation is such that the pot on the Trainer is oriented toward the lower-right corner of the Prop-1 and the P6-Trig button to the upper-right.

I'm sure it's something very simple.  Do me a favor and just unplug the Trainer then plug it back in making sure that you have the pins aligned properly.  Then download and try the program again. 
Jon McPhalen
EFX-TEK Hollywood Office

deadhaunts

Yes, i did hit the run button to download the strobe program to the Prop-1.  Says download successful when it is finished

I took it off  (prop-1 trainer) and made sure it was on correctly and it was.  I downloaded the program and still the same results.

I also changed the ULN2803 also, both shunts are DN

Anyway to trouble shoot the trainer board? 

reddragon

Try using leds on the output header on the side of the board. when doing so make shure to have the power switch above the number 2 now you will have power to the header as wellas your prop1 trainner.

JonnyMac

This program will ping-pong the LEDs on the Prop-1 Trainer

' =========================================================================
'
'   File...... Ping_Pong.BS1
'   Purpose...
'   Author.... Jon Williams, EFX-TEK
'              Copyright (c) 2009 EFX-TEK
'              Some Rights Reserved
'              -- see http://creativecommons.org/licenses/by/3.0/
'   E-mail.... jwilliams@efx-tek.com
'   Started...
'   Updated... 27 AUG 2009
'
'   {$STAMP BS1}
'   {$PBASIC 1.0}
'
' =========================================================================


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


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


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

SYMBOL  Sio             = 7                     ' SETUP = UP; no ULN
SYMBOL  Trigger         = PIN6                  ' SETUP = DN


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

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

SYMBOL  Yes             = 1
SYMBOL  No              = 0


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

SYMBOL  thePin          = B2


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

Reset:
  PINS = %00000000                              ' clear all
  DIRS = %00111111                              ' set output pins


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

Main:
  FOR thePin = 0 TO 4
    HIGH thePin
    PAUSE 100
    LOW thePin
  NEXT
  FOR thePin = 5 TO 1 STEP -1
    HIGH thePin
    PAUSE 100
    LOW thePin
  NEXT
  GOTO Main


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


' -----[ User Data ]-------------------------------------------------------
Jon McPhalen
EFX-TEK Hollywood Office

deadhaunts

Ok...I ran the code you just gave me....P0 LED on trainer went on, then off.........P1 LED went on and stayed on for a few seconds, then off.
Does not repeat  when there is motion to PIR


JonnyMac

Okay, something is wrong, but I do not know what.  You should have seen a little "Night Rider" type action on the LEDs -- the PIR input is not involved. 

At this point the only thing I can suggest you do is call our sales office for an RMA, return the Prop-1, and let us look at it.  We 100% test everything before it ships so I don't know what could be wrong, but clearly, something is.
Jon McPhalen
EFX-TEK Hollywood Office

deadhaunts

I tend to agree.  I appreciate all of your help. Maybe I fried something along the way.


JonnyMac

I'm kind of thinking that's the case....  The boards are difficult to break, but not impossible.  My concern is how you may have connected it with another device.
Jon McPhalen
EFX-TEK Hollywood Office

JonnyMac

Have you called our Sales line to ask for an RMA? 

916-770-9244
Jon McPhalen
EFX-TEK Hollywood Office

deadhaunts

I didnt call, I sent an email and have not heard from them.  I ordered another one and will deal with the return when they get back to me.

Thanks for checking.