You need to use a device called "relay", which is essentially a (low) voltage controlled switch.
You're question indicates that you don't have a lot of experience with electricity, so I would strongly advise against trying to mess with high voltage yourself. I would imagine there should be relays available that have some standards outlets for the high voltage stuff and an isolated port for the low voltage control.
--
You received this message because you are subscribed to the Google Groups "ioio-users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to ioio-users+...@googlegroups.com.
To post to this group, send email to ioio-...@googlegroups.com.
Visit this group at http://groups.google.com/group/ioio-users.
For more options, visit https://groups.google.com/d/optout.