The huzzah obviously has 3v gpio and most relays are 5v. I was thinking of using an optocoupler as a sort of relay. Would an optocoupler with forward current of say 5ma be an acceptable way to do this or should I build out a transistor controlled relay. Something like this: http://www.mouser.com/ProductDetail/Sharp-Microelectronics/PC817X1NSZ0F/?qs=sGAEpiMZZMteimceiIVCBwW0eeEZ4eD118K0CibgR7c%3d
The huzzah obviously has 3v gpio and most relays are 5v. I was thinking of using an optocoupler as a sort of relay. Would an optocoupler with forward current of say 5ma be an acceptable way to do this or should I build out a transistor controlled relay. Something like this: http://www.mouser.com/ProductDetail/Sharp-Microelectronics/PC817X1NSZ0F/?qs=sGAEpiMZZMteimceiIVCBwW0eeEZ4eD118K0CibgR7c%3d