November 21, 2024, 10:14:03 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.


Prop-1 doesn't retain program

Started by Palmdale Haunter, March 03, 2015, 11:37:13 AM

Previous topic - Next topic

Palmdale Haunter


Hello,
I am experiencing trouble with a Prop-1 retaining it's program after power off.

It runs the program while connected to the USB adapter, but after powering off and disconnecting it does not respond as it does when connected.

Here is the code and configuration.

' {$STAMP BS1}
' -----[ I/O Definitions ]-------------------------------------------------
SYMBOL Trigger = PIN6 ' SETUP = DN

' -----[ Constants ]-------------------------------------------------------
SYMBOL IsOn = 1 ' button pressed
SYMBOL IsOff = 0 ' button released

' -----[ Variables ]-------------------------------------------------------
SYMBOL flashNum = B2 ' flash number

' -----[ Initialization ]--------------------------------------------------
Reset:

' -----[ Program Code ]----------------------------------------------------
Main:
IF Trigger = IsOff THEN Main ' wait for button press
Flash:
FOR flashNum = 0 TO 5
  HIGH 0
  PAUSE 100
  LOW 0
  PAUSE 100
  NEXT
GOTO Main

I did try the following program:

' {$STAMP BS1}
' -----[ I/O Definitions ]-------------------------------------------------


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


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


' -----[ Initialization ]--------------------------------------------------
Reset:

' -----[ Program Code ]----------------------------------------------------
Main:
  HIGH 0
  PAUSE 100
  LOW 0
  PAUSE 100
GOTO Main

and the Prop-1 retained it after power off and disconnect from the PC.


JackMan

Your first program loads and works when I tested it, are you sure the program is loading onto the Prop-1?

JonnyMac

If the running lights without the trigger works after disconnecting, this suggests that you have a problem with your trigger switch or trigger input. You might try a different switch, or move the wires from P6 to P7 if it is open.
Jon McPhalen
EFX-TEK Hollywood Office

Palmdale Haunter

The program runs, and it will retain it actually. So I stand corrected.
It just doesn't run without the BS1 attached....
Even if the the BS1 is not attached to the USB on the PC it will run.
However with eh BS1 disconnected the program does not run.

JackMan

Not really following you on this. When you say "BS1" do you mean the programming adapter? BS1 refers to the "brain" of the Prop-1 (Basic Stamp 1) If you are referring to the adapter, I'm clueless as to why that would cause your problem.

Palmdale Haunter

Please forgive my ignorance.
When I turned the adapter over I saw BS1 printed on the bottom.
I am referring to the adapter that has USB on one end and a three pin female connector that connects to the Prop1.

The program only runs when the Prop1 is connected to the adapter regardless of the adapter being connected to the PC via a USB cable.

I will eliminate the possibility the switch is at fault to as there is no "switch" it is jus a female connector with wires to touch together and that works fine while connected to the adapter.