November 22, 2024, 10:51:45 PM

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.


Bad Prop1?

Started by tstewart, October 18, 2010, 02:19:02 PM

Previous topic - Next topic

tstewart

Hello,

I have a Prop1 that either isn't working properly or I am stupid :)  If I bring pin0 high, I am getting voltage on both the 3 pin header and the out block.  But, if I bring pin1-5 high I am not getting anything on either the header or block.  Any ideas short of ordering a new prop1? :)  BTW, I have already switched out the ULN2803A just to be sure.

Thanks

Tim

bsnut

Tim,

I think your problem is in the code. Posting your code that you have will be helpful for us, it lets us see what you are doing.

When you bring a PIN high it is done like this

HIGH 0

or like this

HIGH = ison

By doing this, it puts voltage between V+ and OUT0.  If have your meter between PIN0 and GND you will not see any voltage at all.

When you have a bad ULN2803A, two things can happen. They short, causing the PINx to stay on when told to turn off or told to turn on. Or, they are open and when told to turn on or off, they don't do anything at all. 
William Stefan
The Basic Stamp Nut

JonnyMac

The green terminal-block outputs (downstream of ULN) either float (like a broken wire), or are ground (when the output is active).  

Do you have a trainer?  That is the best way to check pins from the processor.  If not, you'll have to carefully look between Px.W (from processor) and the GND terminal (or Px.B).  When the pin is high you'll see about 5v, when low you should get 0v.

If looking on the output terminal then you need to check between V+ (red lead of meter) and the OUTx terminal being tested.  When the output is high you should see the input voltage, when low, nothing (as the output floats).
Jon McPhalen
EFX-TEK Hollywood Office

tstewart

Sorry I may not have been clear.  Pin 0 works fine.  When I pull it high I am getting +5 on the 3 pin block and +15 on the out block. But if I pull pin 1--5 high I get nothing on either block. Pin 6 is working as no trigger but I haven't tried pulling it or 7 high.

gadget-evilusions

Could you please post your program so that we can all check it?
Brian
Evilusions LLC
www.evilusions.com for all your pneumatic components

tstewart

Turns out my first statement was correct, I am stupid :)  I was a very generic program to test the ports with :


SYMBOL  IsOn            = 1   
SYMBOL  IsOff            = 0

Main:

test = IsOn
constant = IsOn
PAUSE 10000
test = IsOff
constant = IsOff
PAUSE 10000
GOTO Main

But, I seem to have completely skipped over this statement:

DIRS = %00000001

Once I turned the other bits on, everything is now working as expected.  What is that you always say, check and double check :)

Thanks for the help,

Tim

bsnut

I see, you bit by DIRS bug. Just remember when DIRS = %00000000 = all inputs and DIRS = %00001111 (7 - 4 inputs and 3 - 0 outputs) .
William Stefan
The Basic Stamp Nut

livinlowe

Quote from: tstewart on October 18, 2010, 05:03:19 PM
Turns out my first statement was correct, I am stupid :)  I was a very generic program to test the ports with :


SYMBOL  IsOn            = 1   
SYMBOL  IsOff            = 0

Main:

test = IsOn
constant = IsOn
PAUSE 10000
test = IsOff
constant = IsOff
PAUSE 10000
GOTO Main

But, I seem to have completely skipped over this statement:

DIRS = %00000001

Once I turned the other bits on, everything is now working as expected.  What is that you always say, check and double check :)

Thanks for the help,

Tim

Hey, no worries! We all get bit by things were not used to. At least now someone starting out has this thread to read and fall back on!  ;)
Shawn
Scaring someone with a prop you built -- priceless!