Why Program runs only when USB attached?-(Solved)
msiriwardena
Posts: 301
I have a program in a Propeller Proto board that only runs with USB cable attached but
after it starts working I can detach the USB cable it continues to run but if I power down
and re-starts it will not work until I attach the USB cable, and I don't have to do anything
the program starts to work. The program is in the EEPROM.
In other words I always have to get the program working before I could move the set up.
This is the Transmission board for the Activity Bot.
I have public link to the program also.
Attach is the screen shot of the program.
I like the program to run without the jump start.
Thank you.
Siri
after it starts working I can detach the USB cable it continues to run but if I power down
and re-starts it will not work until I attach the USB cable, and I don't have to do anything
the program starts to work. The program is in the EEPROM.
In other words I always have to get the program working before I could move the set up.
This is the Transmission board for the Activity Bot.
I have public link to the program also.
Attach is the screen shot of the program.
I like the program to run without the jump start.
Thank you.
Siri
Comments
Picture would help.
At the moment I am powering with 7.7V via a brick 700mA .
Finally I will power with a 5x1.5 battery pack.
I have only 5 way switch, XBee S2C and a LED to indicate Transmission.
The program runs on its own after the jump start with no USB.
Siri
Since you ? the power supply I tried wih a
7.5V 12Watt power supply and the issue remains.
Siri
Yes I am using the "down arrow" to the EEPROM and not to the RAM.
I have attached a picture of the setup.
Siri
I can't quite see where the pushbutton is attached to. Which Pin? Picture of the bottom of the board please.
Here is the back of the board.
Siri
-Phil
The button is connected to pins 18 ..22.
Siri
The "if Button Press = 31" is the decimal interpretation of the "center position" of the 5 position switch.
Yes it happens to be the number of the communication pin. There has nothing connected to that pin.
Just using the number 31 should not have any effect.
Siri
I will try your solution tomorrow morning.
Thanks for the help
Siri
You can try in your code making sure you dont use the serial pins (P30 & P31) and make them inputs.
Thank you for rational explanation and the fix worked
as you expected.
Regards,
Siri
Glad you go it worked out. I have to say I have not spent enough time in Blockly to realize that it was looking for a value instead of a pin number. I apologize.