element14 Community
element14 Community
    Register Log In
  • Site
  • Search
  • Log In Register
  • Community Hub
    Community Hub
    • What's New on element14
    • Feedback and Support
    • Benefits of Membership
    • Personal Blogs
    • Members Area
    • Achievement Levels
  • Learn
    Learn
    • Ask an Expert
    • eBooks
    • element14 presents
    • Learning Center
    • Tech Spotlight
    • STEM Academy
    • Webinars, Training and Events
    • Learning Groups
  • Technologies
    Technologies
    • 3D Printing
    • FPGA
    • Industrial Automation
    • Internet of Things
    • Power & Energy
    • Sensors
    • Technology Groups
  • Challenges & Projects
    Challenges & Projects
    • Design Challenges
    • element14 presents Projects
    • Project14
    • Arduino Projects
    • Raspberry Pi Projects
    • Project Groups
  • Products
    Products
    • Arduino
    • Avnet & Tria Boards Community
    • Dev Tools
    • Manufacturers
    • Multicomp Pro
    • Product Groups
    • Raspberry Pi
    • RoadTests & Reviews
  • About Us
  • Store
    Store
    • Visit Your Store
    • Choose another store...
      • Europe
      •  Austria (German)
      •  Belgium (Dutch, French)
      •  Bulgaria (Bulgarian)
      •  Czech Republic (Czech)
      •  Denmark (Danish)
      •  Estonia (Estonian)
      •  Finland (Finnish)
      •  France (French)
      •  Germany (German)
      •  Hungary (Hungarian)
      •  Ireland
      •  Israel
      •  Italy (Italian)
      •  Latvia (Latvian)
      •  
      •  Lithuania (Lithuanian)
      •  Netherlands (Dutch)
      •  Norway (Norwegian)
      •  Poland (Polish)
      •  Portugal (Portuguese)
      •  Romania (Romanian)
      •  Russia (Russian)
      •  Slovakia (Slovak)
      •  Slovenia (Slovenian)
      •  Spain (Spanish)
      •  Sweden (Swedish)
      •  Switzerland(German, French)
      •  Turkey (Turkish)
      •  United Kingdom
      • Asia Pacific
      •  Australia
      •  China
      •  Hong Kong
      •  India
      •  Korea (Korean)
      •  Malaysia
      •  New Zealand
      •  Philippines
      •  Singapore
      •  Taiwan
      •  Thailand (Thai)
      • Americas
      •  Brazil (Portuguese)
      •  Canada
      •  Mexico (Spanish)
      •  United States
      Can't find the country/region you're looking for? Visit our export site or find a local distributor.
  • Translate
  • Profile
  • Settings
Raspberry Pi
  • Products
  • More
Raspberry Pi
Blog Switching appliances ON and OFF remotely by e-mail with the Raspberry Pi and Mains Switch Widget
  • Blog
  • Forum
  • Documents
  • Quiz
  • Events
  • Polls
  • Files
  • Members
  • Mentions
  • Sub-Groups
  • Tags
  • More
  • Cancel
  • New
Join Raspberry Pi to participate - click to join for free!
Featured Articles
Announcing Pi
Technical Specifications
Raspberry Pi FAQs
Win a Pi
GPIO Pinout
Raspberry Pi Wishlist
Comparison Chart
Quiz
  • Share
  • More
  • Cancel
Group Actions
  • Group RSS
  • More
  • Cancel
Engagement
  • Author Author: mistertee
  • Date Created: 10 Sep 2014 6:47 AM Date Created
  • Views 480 views
  • Likes 0 likes
  • Comments 0 comments
Related
Recommended
  • on
  • mains
  • switch
  • off
  • home
  • automation
  • widget

Switching appliances ON and OFF remotely by e-mail with the Raspberry Pi and Mains Switch Widget

mistertee
mistertee
10 Sep 2014

I was keen on turning things ON and OFF remotely by sending an e-mail to the Raspberry Pi. The Mains Switch Widget (MSW) allows me to easily plug in an appliance and use the Raspberry Pi to control it. I looked at Twitter and then text messages to control the MSW. Twitter did not allow me to send the same message twice, which was kind of essential to send ON and OFF commands. Text messages looked a little complicated with either a GSM connection or some sort of text to e-mail service.

 

Controlling the RPi directly with an e-mail had many advantages. It seemed relatively easy to do and could be expanded to control more than 1 appliance. Please see here for our blog posts on this.

 

Electronics including Raspberry Pi: Switching appliances ON and OFF remotely by e-mail with the Raspberry Pi and Mains S…


Electronics including Raspberry Pi: Switching appliances ON and OFF remotely by e-mail with the Raspberry Pi and Mains S…


Mains Switch Widget

 

Since launching the Custard Pi range for the Raspberry Pi, we always get asked for the ability to switch mains powered devices ON and OFF from the RPi as well as other single board computers like the Beaglebobe or a micro controller like the Arduino.  I always explain that there is more to switching mains ON and OFF than just using the correct relay.

 

One has to take into account the following:

 

1.  The correct spacing on the PCB between the mains voltage side and the low voltage side

 

2.  Anchoring the mains cable so that they do not accidentally pull out and touch other parts - thus making them LIVE

 

3.  The correct fusing - to prevent a fire in case of a fault

 

4.  Prevent the user from accidentally touching the PCB with mains voltages on it

 

All this is taken care of on the Mains Switch Widget. It is supplied in kit form and the user supplies the appropriate mains plug and socket based on the country where the appliance is going to be used.

 

image

 

More information and full documentation is available here.

  • Sign in to reply
element14 Community

element14 is the first online community specifically for engineers. Connect with your peers and get expert answers to your questions.

  • Members
  • Learn
  • Technologies
  • Challenges & Projects
  • Products
  • Store
  • About Us
  • Feedback & Support
  • FAQs
  • Terms of Use
  • Privacy Policy
  • Legal and Copyright Notices
  • Sitemap
  • Cookies

An Avnet Company © 2025 Premier Farnell Limited. All Rights Reserved.

Premier Farnell Ltd, registered in England and Wales (no 00876412), registered office: Farnell House, Forge Lane, Leeds LS12 2NE.

ICP 备案号 10220084.

Follow element14

  • X
  • Facebook
  • linkedin
  • YouTube