Summary
So far you have been able to do a lot of interesting projects with your Raspberry Pi. There is, however, one topic that always comes up when you talk to anyone about practical uses for a microcontroller or, in your case, for the Raspberry Pi. That question goes something like “how can I turn on some random device in my house?” For example, you may want to turn on a lamp at night or your air conditioner before you get home. Nothing like a cron job to turn on your air conditioner! Now if you think about this quickly, getting the Raspberry Pi to turn on a random device is an easy task. In theory, turning a mains-powered device on or off is no different. It’s just interrupting the flow of electricity to that device; after all, this is what your common wall switch does. Unfortunately, here are two big issues that you will face and they both have the same source. That source is alternating current, or AC.
Access this chapter
Tax calculation will be finalised at checkout
Purchases are for personal use only
Preview
Unable to display preview. Download preview PDF.
Rights and permissions
Copyright information
© 2013 Brendan Horan
About this chapter
Cite this chapter
Horan, B. (2013). Controlling a Mains Device. In: Practical Raspberry Pi. Apress, Berkeley, CA. https://doi.org/10.1007/978-1-4302-4972-6_10
Download citation
DOI: https://doi.org/10.1007/978-1-4302-4972-6_10
Publisher Name: Apress, Berkeley, CA
Print ISBN: 978-1-4302-4971-9
Online ISBN: 978-1-4302-4972-6
eBook Packages: Professional and Applied ComputingApress Access BooksProfessional and Applied Computing (R0)