HP Forums
Driving a relay with the HP-71B - Printable Version

+- HP Forums (https://archived.hpcalc.org/museumforum)
+-- Forum: HP Museum Forums (https://archived.hpcalc.org/museumforum/forum-1.html)
+--- Forum: Old HP Forum Archives (https://archived.hpcalc.org/museumforum/forum-2.html)
+--- Thread: Driving a relay with the HP-71B (/thread-144251.html)



Driving a relay with the HP-71B - Klaus - 11-30-2008

I finally took some time to work on my project to use the HP-71B to control a relay. The idea is to use the wake-up-on-timer feature of the HP-71B to control some devices. To maximize battery life, I chose a bistable relay with two coils, so only when switching the state of the relay, "power" (I don't think this is the correct term, but you will understand what I mean) is needed.

Each coil of the relay is connected to V+ (via a small resistor), and via a darlington transistor (BC-517) to GND. The HP-71B drives the darlington transistors with its unused output-lines "OR9" and "OR8". Between the HP-71B and the base of the transistor is a 100k ohm resistor and a diode.

The code to drive one output-line is the following:

   BIN 'OR9'
CHAIN -1
ENDBIN EQU #0764B
LCHEX 01F
OUT=C
GOVLNG ENDBIN
END

I assembled this program, and now the HP-71B is able to switch the relay by executing "RUN OR9" and "RUN OR8". But since this is my first program for the HP-71B, I would like to hear your opinion. I have some doubts about "cleaning up" after the program. Can I rely on the HP-71B OS to set the output lines OR9 and OR8 to a low-level after the asm-program is run*? Has anyone done a similar project? I used the projects described in "control the world with HP-IL" as an orientation.

Have a nice weekend! Klaus

* I could do the cleanup myself, but the relay needs 6msec to switch, so I don't want to program a loop that waits. And the code-as-is works.




Re: Driving a relay with the HP-71B - Christoph Klug - 12-02-2008

Dear Klaus,

you describe a nice application for HP-71.

By using the HP82166A IL-Converter you get the possibility for creating much complexer interface applications - for example driving some more relais.

This interface technology is described in the new 2008 book edition "HP-41 Input / Output Board & IL2000 Interface System".

Regards - Christoph Klug