UBB Store

Commodore 64 VIC-20 VIC Rel Relay Interface with Laser Cut Case TESTED
When you click on links to various merchants on this site and make a purchase, this can result in this site earning a commission. Affiliate programs and affiliations include, but are not limited to, the eBay Partner Network.
Commodore 64 VIC-20 VIC Rel Relay Interface with Laser Cut Case TESTED
Price: US $49.00

You are buying a:

RELAY INTERFACE FOR THE COMMODORE 64/128 or VIC-20. HANDIC VIC-REL COMPATIBLE.

This is abrand newRelay Cartridge for the C64/VIC-20 User port.

Have you ever thought about controlling the Real World with your Commodore 64 or VIC-20 computer?Now you can!

Write programs that control the relays provided by this new Dorktronic VIC-Relay intefrace.

Here a few ideas.Control lamps, robot arms, remote control toys, garage doors, burgler alarms, miniature railways and so much more!

INTERFACE FEATURES:
  • 63mm(2.48\") X 150mm(5.91\") X 19mm (0.75\") in size.
  • A new custom PCB smaller than the HANDIC VIC-REL
  • A two panel acrylic case is securely bolted to the interface\'s board.
  • 3.5MM terminal screws
USING THE INTERFACE

The Dorktronic VIC-Relay interface connects to the standard user port. It has six(6) output relays (connections 1 to 12), four(4) +5V terminals (connections 13-16), four(4) 0V ground terminals (connections 17-20) and two(2) inputs (connections 21-24).

Programming the interface is easy! One POKE sets up the interface and second POKE or PEEK to output or input with the device.

CONNECTING TO THE REAL WORLDRelayTerminalRelay 11, 2Relay 23, 4Relay 35, 6Relay 47, 8Relay 59, 10Relay 611, 12+5V13, 14, 15, 160V17, 18, 19, 20Input 121, 22THE OUTPUT RELAYS

Each output relay can handle a maximum of 100 volts and 0.5 amps. Please be sure to keep your project within these limits.

C64
Setup:POKE 56579,63
I/O:POKE 56577,1(Turns on first relay.)

VIC-20
Setup:POKE 37138,63
I/O:POKE 37136,1(Turns on first relay.)

Each relay has a code to use with the POKE command. To turn on more than one relay,just add up the codes.

RelayCodeRelay 11Relay 22Relay 34Relay 48Relay 516Relay 632Input 164Input 2128

To turn on relays 1, 3 and 5 on a C64:POKE 56577,1+4+16orPOKE 56577,21

C64 Output Sample BASIC Program

10 REM C64 RELAY OUTPUT EXAMPLE20 POKE 56579,63:REM SET UP THE INTERFACE30 S=0:POKE 56577,S:REM TURN OFF ALL OUTPUTS40 INPUT \"WHICH OUTPUT (1-6)\";PN$50 PN=VAL(PN$):IF PN<1 OR PN>6 GOTO 4060 INPUT \"ON OR OFF\";O$70 IF O$=\"ON\" THEN GOTO 10080 IF O$=\"OFF\" THEN GOTO 14090 GOTO 40100 REM TURN ON OUTPUT110 S=S OR (2^(PN-1))120 POKE 56577,S130 GOTO 170140 REM TURN OFF OUTPUT150 S=S AND (255-(2^(PN-1)))160 POKE 56577,S170 REM PRINT OUTPUT STATE180 PRINT\"OUTPUT\";PN;\"IS \";O$;\".\"190 GOTO 40

VIC-20 Output Sample BASIC Program

10 REM VIC-20 RELAY OUTPUT EXAMPLE20 POKE 37138,63:REM SET UP THE INTERFACE30 S=0:POKE 37136,S:REM TURN OFF ALL OUTPUTS40 INPUT \"WHICH OUTPUT (1-6)\";PN$50 PN=VAL(PN$):IF PN<1 OR PN>6 GOTO 4060 INPUT \"ON OR OFF\";O$70 IF O$=\"ON\" THEN GOTO 10080 IF O$=\"OFF\" THEN GOTO 14090 GOTO 40100 REM TURN ON OUTPUT110 S=S OR (2^(PN-1))120 POKE 37136,S130 GOTO 170140 REM TURN OFF OUTPUT150 S=S AND (255-(2^(PN-1)))160 POKE 37136,S170 REM PRINT OUTPUT STATE180 PRINT\"OUTPUT\";PN;\"IS \";O$;\".\"190 GOTO 40

THE INPUT LINES

Each input line can detect the presence of a +5V signal passing through it. Be sure to have the positive and negative sides connected accordingly.

Here is an example of connecting a switch:

C64 Input Sample BASIC Program

10 REM C64 RELAY INPUT EXAMPLE20 POKE 56579,63:REM SET UP THE INTERFACE30 IN=PEEK(56577) AND 64:REM INPUT #140 IF IN <> 0 THEN PRINT \"INPUT #1 IS ON\":GOTO 3050 PRINT \"INPUT #1 IS OFF\"60 GOTO 30

VIC-20 Input Sample BASIC Program

10 REM VIC-20 RELAY INPUT EXAMPLE20 POKE 37138,63:REM SET UP THE INTERFACE30 IN=PEEK(37138) AND 64:REM INPUT #140 IF IN <> 0 THEN PRINT \"INPUT #1 IS ON\":GOTO 3050 PRINT \"INPUT #1 IS OFF\"60 GOTO 30

DISCLAIMER

WHILE THIS ITEM HAS BEEN TESTED ON MY PERSONAL VIC-20, IT IS PROVIDED WITHOUT ANY GUARANTEES OR WARRANTY. YOU ARE SOLELY RESPONSIBLE FOR ANY AND ALL DAMAGES TO YOU OR YOUR PROPERTY. I AM NOT RESPONSIBLE FOR ANY TECHNICAL SUPPORT. REMEMBER, THIS IS PART OF AN ELECTRONIC SYSTEM INCLUDING YOUR OWN PARTS THAT YOU USE WITH YOUR OWN RESPONSIBILITY AND IMAGINATION.

Be sure to READ and FULLY UNDERSTAND all of the documentation regarding the electrical characteristics of your computer before using this board, i.e. maximum voltages and amperes allowances. ALSO BE VERY SURE you understand all of the properties of any ICs that you use with the board. Always read the datasheets!

REFUNDS

Refunds will only be offered for items returned within 30 days. Buyer pays any and all shipping costs.

Please note that the descriptions herein are provided as is. I am not responsible for any typos.

PLEASE ASK QUESTIONS IF YOU\'RE IN DOUBT BEFORE BUYING!

THANKS!



Buy Now