November 22, 2024, 08:46:32 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.


Large crypt popup with doors, lights, & fog

Started by gatesofterror, February 05, 2009, 04:33:20 PM

Previous topic - Next topic

gatesofterror

Hey thanks,
Where exactly should that be plugged into the program? I want the RC-4 to activate when the program starts and end when the sound stops. I put it in below the play sound and added the A1 jumper.
Play_Sound:
  SEROUT Sio, OT2400, ("!AP8", %00, "P", 0)
  SEROUT Sio, OT2400, ("!RC-4", %01, "S", relays)

I Put a load om the RC-4 but I am still not getting anything. The LEDs are not coming on on the RC-4
Thanks Jim

BigRez

If you have a jumper on A1 then the RC-4 address is %10

The changes should be made to the existing lines of the program that Jon posted; you don't need to add any new lines (yet.)

To be sure of your connections:
1) The RC-4 SER connection (either one) is connected to PIN7 of the prop-1
2) The other RC-4 SER connection goes to the SER connection on the AP-8
3) The RC-4 has a jumper on A1 and off on both A0 and Baud (this sets the address to %10 and 2400 baud)
4) The SEL, ID1, and IDo jumpers are removed on the AP-8 (setting to 2400 baud, address %00) 

I've attached a revised copy of Jon's program. (Note that Jon is not responsible for any mistake's I may have made. :)

gatesofterror

I loaded the revised program and still nothing at the RC-4. Could the AP8 programing have anything to do with the RC-4? I have sound and the prop 1 sincs with the sound stop and finishes the program, so I figured the AP8 was OK. There is got to be something interfeering with the signal to the RC-4.
The more I think I'm learning the more confused I get. ???

BigRez

Do you have the ULN2003 in the prop-1 or a ULN2803A?  If the ULN2803A, is pin7 on the 2803 clipped?  Refer to the topic below for further details.

http://www.efx-tek.com/php/smf/index.php?topic=130.msg476#msg476

And just curious... You do have the relays installed at K1 and K2 on the RC-4, right?  Are you sure the RC-4 loads are correct?

Can you post a picture of your connections?

JonnyMac

February 11, 2009, 02:01:10 PM #19 Last Edit: February 11, 2009, 02:04:07 PM by JonnyMac
Jim,

Contrary to a post above, both the AP-8 and RC-4 may be set to address %00 -- the addressing scheme allows for up to four boards of each type; the address # is not qualified until the device type is, so %00 on both works just fine.

Now... had you run the demo from our web site you could have busted me   ;D  -- I left out a "!" in the program I wrote for you that is critical -- this is in the demo and would have proved your RC-4 and connections.  And, on that, DO NOT get suckered into which way a connector is oriented; always check the W R B markings on a board because they are different from board-to-board; using physical is a trap that will catch you out at some point.

Once this works you'll smile and say, "Wow, this is pretty easy!" -- everyone does.  Just for clarification on connections:

Prop-1.P7 --> RC.4 (serial) --> AP-8 (serial)

The program that I wrote earlier (and just fixed) depends on having both devices set to address %00 (all jumpers out).  Here's the corrected routine for the RC-4:

Set_RC4:
  SEROUT Sio, Baud, ("!RC4", %00, "S", relays)
  RETURN
Jon McPhalen
EFX-TEK Hollywood Office

BigRez

Ahhh... we all learn something new.   :-[   That's good to know that the address and the device work together.  Thanks Jon.

Hey, at least I spotted the missing exclamation point.  ;)

JonnyMac

There was an errant dash in there, too -- darn my eyes!
Jon McPhalen
EFX-TEK Hollywood Office

gatesofterror

YEA!!!!!!!!    IT WORKS!!!!!!!!!!!
Now to fine tweek it without messing it up.  ;D

gatesofterror

Thank you Jon, and Bigrez for your help and advise. I'm sure I'm not finished yet.
Jim

gatesofterror

Is there an easy way to find completed programs to work from other than reading all the posts. I have another project I will be starting soon and would like to try programing but I am not ready to start from scratch.
Thanks
Jim