Shop OBEX P1 Docs P2 Docs Learn Events
Interfacing a BS2-sx with a garage door opener. — Parallax Forums

Interfacing a BS2-sx with a garage door opener.

ArchiverArchiver Posts: 46,084
edited 2002-02-07 10:32 in General Discussion
I want to interface a BS2-sx with a garage door opener.
The garage door opener has a 12 pin dip switch for selecting a code
that is wired directly in to a IC, what I want to do is wire my BS2-
SX into the IC and the into send button via Opto-Couplers so that it
will try a combination then send it, then try the next possible
combination then send it ect etc (therefore trying every possible
combination). I have no problem with wiring it up etc, however I'm
not sure exactly how program the BS2-sx to do what I want without
using 5000 lines of code e.g.

Out0 = 0 `Opto-Coupler 1 to IC
Out1 = 0 `Opto-Coupler 2 to IC
Out2 = 0 `Opto-Coupler 3 to IC
Out3 = 0 `Opto-Coupler 4 to IC
Out4 = 0 `Opto-Coupler 5 to IC
Out5 = 0 `Opto-Coupler 6 to IC
Out6 = 0 `Opto-Coupler 7 to IC
Out7 = 0 `Opto-Coupler 8 to IC
Out8 = 0 `Opto-Coupler 9 to IC
Out9 = 0 `Opto-Coupler 10 to IC
Out10 = 0 `Opto-Coupler 11 to IC
Out11 = 0 `Opto-Coupler 12 to IC
Out12= 1 `Opto-Coupler 13 to send button

Out0 = 0 `Opto-Coupler 1 to IC
Out1 = 0 `Opto-Coupler 2 to IC
Out2 = 0 `Opto-Coupler 3 to IC
Out3 = 0 `Opto-Coupler 4 to IC
Out4 = 0 `Opto-Coupler 5 to IC
Out5 = 0 `Opto-Coupler 6 to IC
Out6 = 0 `Opto-Coupler 7 to IC
Out7 = 0 `Opto-Coupler 8 to IC
Out8 = 0 `Opto-Coupler 9 to IC
Out9 = 0 `Opto-Coupler 10 to IC
Out10 = 0 `Opto-Coupler 11 to IC
Out11 = 1 `Opto-Coupler 12 to IC
Out12= 1 `Opto-Coupler 13 to send button

Out0 = 0 `Opto-Coupler 1 to IC
Out1 = 0 `Opto-Coupler 2 to IC
Out2 = 0 `Opto-Coupler 3 to IC
Out3 = 0 `Opto-Coupler 4 to IC
Out4 = 0 `Opto-Coupler 5 to IC
Out5 = 0 `Opto-Coupler 6 to IC
Out6 = 0 `Opto-Coupler 7 to IC
Out7 = 0 `Opto-Coupler 8 to IC
Out8 = 0 `Opto-Coupler 9 to IC
Out9 = 0 `Opto-Coupler 10 to IC
Out10 = 1 `Opto-Coupler 11 to IC
Out11 = 0 `Opto-Coupler 12 to IC
Out12= 1 `Opto-Coupler 13 to send button

Out0 = 0 `Opto-Coupler 1 to IC
Out1 = 0 `Opto-Coupler 2 to IC
Out2 = 0 `Opto-Coupler 3 to IC
Out3 = 0 `Opto-Coupler 4 to IC
Out4 = 0 `Opto-Coupler 5 to IC
Out5 = 0 `Opto-Coupler 6 to IC
Out6 = 0 `Opto-Coupler 7 to IC
Out7 = 0 `Opto-Coupler 8 to IC
Out8 = 0 `Opto-Coupler 9 to IC
Out9 = 0 `Opto-Coupler 10 to IC
Out10 = 1 `Opto-Coupler 11 to IC
Out11 = 1 `Opto-Coupler 12 to IC
Out12= 1 `Opto-Coupler 13 to send button

Any help with this would be greatly appreciated.

Liam
Sign In or Register to comment.