I need to drive a relay coil from one of the outputs of an AT-MIO-16D module.
From the AT-MIO-16D User Manual (p. 2-35) it remains unclear for me
how to do it. It seems that the Digital outputs are of "sinking" type, i.e.
they
connect to either ground or to a high resistance, however the electrical
specifications
considers both output "source" and "sink" currents.
Assuming "sink" type, I think the wiring should be as follows:
+5Vdc to relay coil (flyback diode in parallel)
relay coil to DAQ module output point
-5Vdc common to DAQ Dig Gnd point
My questions are:
1. Is my suggested wiring right?
2. Do I need some resistor to limit the current through the DAQ board or
is the coil resistance enough?
3. How do I protect the module against the reverse voltage generated in the
coil once
disconnected? With the flyback diode suggested I am protecting the power
supply
output but not the DAQ module.
Please attach a suggested wiring diagram to your answer.
Thanks in advance for your support.