GazonkFoo wrote:Using a optoisolator would be awesome of course so i measured everything you told me:
1) 22.5V ... should be OK!?
2) 1.25mA ... this is problematic for the 4N28 i guess? But i also have a bunch of 4N35 and according to the datasheet those have a CTR of 100, right? so those should work?
3) Using a 10 Ohm resistor the gate closes
So i can use the 4N35?
A simple relay board costing a few dollars, driven by the Pi will do.
Also consider SSR for a lot more dollars.
It only has to close pin 7 to pin 1, and will give electrical isolation, and can have a manual switch added.
To read pin 12 a relay is shown as being an option to connect. So connect a relay (FaaC pin 10 and 12) and hook the volt free contacts into the Pi.
W.L. - Power supply to indicator light / timed exit / electric lock
/ 'traffic lights' (terminal 12)
Connect any 24 Vdc - 3 W max indicator light, timed exit,
command device for electric lock or 'traffic lights' between
this terminal and the +24V (see advanced programming
in Chap. 5.5.2). To avoid jeopardizing correct operation
of the system, do not exceed the indicated power.
(NB: I have adjusted the spelling of "geopardising" to one to suit the spell checker)