You are reading a single comment by @Gordon and its replies. Click here to read the full conversation.
  • Ahh, ok - so the relay you found would be pretty good for that (but you still need a nice way to drive it from Espruino), and SSRs wouldn't be useful.

    For small battery powered devices, you might find a simple optocoupler works fine for you - like: http://uk.farnell.com/isocom/sfh615a-4x/­optocoupler-dip-4-tr-o-p/dp/1683350

    It's rated at 50mA....

    The only 'gotcha' there is as it's not a switch, you're going to have to make sure that you connect + and - on the device the right way around.

About

Avatar for Gordon @Gordon started