Can I hook this up directly to an Arduino Uno ?
http://www.ebay.co.uk/itm/351003594516
It says it needs 50-60mah and I think thats
on the limit of an Uno ?
(1) Yes, you can drive control it directly by the Arduino. As said, 50-60mA is to run the coil. The DigitalOut pins can turn on the opto (that switches the coil) no problem. (EDIT: adding this: I have not been using current limiter, that probably shorten the life if run too long that way. A current limiting resister there is a good idea.)
(2)
Number is wrong. 50-60mA is NOT enough to drive the coil. The
specsheet of the relay said it takes 85-90mA for the coil. From actual measurement of a two rely unit, it takes APPROX 75mA each relay (including transistor LED, etc). You should plan according to specsheet, allocate 85-90mA for the coil.
If you run all four, you are talking a total of about 400mA. (or to be cheap, I measure it to be 75, at 75mA*4=300mA, but that is playing the margines.)
You should use an external power source. (For a full size Arduino like the UNO, you can drive two. Three would be too much. I am not sure the NANO has enough power to drive two.)
(3) You see the
blue jumper on the lower left right in the picture -
JD-VCC&VCC. If you pull that jumper, you can supply the coil's power at the JD-VCC pin. The jumper there connects JD-VCC directly to VCC. JD-VCC is the coil part (the coil side of the opto); VCC drives the MCU side of opto, the led, and all that good stuff.
(4) This could cause you to panic until you realize it. I initially thought the unit didn't work. With my two rely unit,
LOW is when the LED is ON! Yours should be the same. LOW=on, HIGH=off.
Good luck,
Rick