element14 Community
element14 Community
    Register Log In
  • Site
  • Search
  • Log In Register
  • About Us
  • 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 Boards Community
    • Dev Tools
    • Manufacturers
    • Multicomp Pro
    • Product Groups
    • Raspberry Pi
    • RoadTests & Reviews
  • 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
Arduino
  • Products
  • More
Arduino
Arduino Forum Using an Arduino to Turn on the Lights
  • Blog
  • Forum
  • Documents
  • Quiz
  • Events
  • Polls
  • Files
  • Members
  • Mentions
  • Sub-Groups
  • Tags
  • More
  • Cancel
  • New
Join Arduino to participate - click to join for free!
Actions
  • Share
  • More
  • Cancel
Forum Thread Details
  • State Suggested Answer
  • Replies 4 replies
  • Answers 2 answers
  • Subscribers 392 subscribers
  • Views 1000 views
  • Users 0 members are here
  • circuit
  • light
  • Design
  • lights
  • arduino
  • relay
Related

Using an Arduino to Turn on the Lights

Former Member
Former Member over 10 years ago

I've recently been working with home automation stuff using Arduino and Raspberry Pi. I only got into electronics just a few months ago and I need some help on this design I'm working on. The idea is to be able to remotely trigger lights that are already hooked up to a wall switch, I'd like to still be able to use the switch though as well. I created a schematic in Fritzing as it is the most user friendly software I know of, there is also a visual diagram and a PCB layout. To  be able to control the arduino wirelessly I use the HopeRFM69HW module, I didn't include this in the layout because it is not important and not what this is really about. The circuit works (at least in theory) by triggering a relay using an Arduino Pro Mini, when tripped the 110V flows through the relay and into the light. Hopefully some of you can give me some pointers on whether or not this will work and if it does not how I could fix it. Thanks!

 

I've included several PDF's all named accordingly to what they are, keep in mind on the PCB with components file things like the button and light would not actually be mounted on the board but attached with wires leading off the board.

Attachments:
imageRelay_bb.pdf
imageRelay_pcb_components.pdf
imageRelay_pcb_no-components.pdf
imageRelay_schem.pdf
  • Sign in to reply
  • Cancel

Top Replies

  • Robert Peter Oakes
    Robert Peter Oakes over 10 years ago +2 suggested
    Your low voltage wiring on the PCB go between the mains terminals of the relay, this is not a good idea, these need to be as far away as possible from the mains voltages There is a lot of rules and regulations…
  • mcb1
    mcb1 over 10 years ago in reply to Former Member +2
    Great you recognise your limits. ...it's safer that way. You might want to look at using some of the 433Mhz RF Outlets sued in the Forget Me Not challenge, and mentioned in other places. These allow you…
  • Robert Peter Oakes
    0 Robert Peter Oakes over 10 years ago

    Your low voltage wiring on the PCB go between the mains terminals of the relay, this is not a good idea, these need to be as far away as possible from the mains voltages

     

    There is a lot of rules and regulations regrding the insulation and handling of mains in electronic systems and this vaaries between jurisdictions and countries so be sure to follow the rules for your location

     

    If you hae never woked on LETHAL voltages before then get someone experianced to help and oversee the mains side of things (You mention only getting into electronics a few months ago but dont mention if you have electrical skills or not.)

     

    Technically your circuit should work but I would add a resistor of a few hundred ohms in series with the LED, this will limit the current through it and prevent damage to the MCU pin it is connected to

     

    If this is your first venture into "Automation" then i would for safety sake try with low power lighting like LEDs, you can get some great 10W LEDs that will work very well and un of a safe power supply / adapter and still provide the learning experiance.

     

    MAINS is nothing to trifle with and not worth the risk as a learning project. Once your trained and have built up the skills and experiance then re-visit it, till then I would sugges the safer route of he low voltage but equally fun Power LED's, even adding full blown RGB power LEDs can be great fun. I am currently experementing with a 50W RGB LED, that would be equivelent to perhaps a 500W candecent bulb... cool stuff (Well not really, it still gets very hot and needs significant cooling image )


    Be safe and live to create tomorows projects, not just todays.

    • Cancel
    • Vote Up +2 Vote Down
    • Sign in to reply
    • Verify Answer
    • Reject Answer
    • Cancel
  • Former Member
    0 Former Member over 10 years ago in reply to Robert Peter Oakes

    Thanks for your input, as far as my electrical skills go I am pretty inexperienced. I'm only 16 years old and the only real "electrical" work I've done is mount and wire up some lights in my attic to a switch. I do want to clarify that although I may some day want to do this project, witch my current knowledge it was more of just a proof of concept type thing.

     

    I'm trying to learn more about how AC voltage works and this definetely wouldn't be the project to start on. I'll check out those LED's you mentioned and experiment around. Thanks again!

     

    Brayton

    • Cancel
    • Vote Up 0 Vote Down
    • Sign in to reply
    • Verify Answer
    • Cancel
  • Robert Peter Oakes
    0 Robert Peter Oakes over 10 years ago in reply to Former Member

    You can also consider using low voltage AC bulbs and devices. It is simply a case of getting a nice AC transformer wall wart that gives out say 12VAC, then you can play with AC but in a safe way

     

    good luck and dont forget were here to help and willing to do so

     

    Peter

    • Cancel
    • Vote Up 0 Vote Down
    • Sign in to reply
    • Verify Answer
    • Reject Answer
    • Cancel
  • mcb1
    0 mcb1 over 10 years ago in reply to Former Member

    Great you recognise your limits. ...it's safer that way. image

     

    You might want to look at using some of the 433Mhz RF Outlets sued in the Forget Me Not challenge, and mentioned in other places.

    These allow you to remotely control outlets but in total safety.

     

    Mark


    • Cancel
    • Vote Up +2 Vote Down
    • Sign in to reply
    • Verify Answer
    • Cancel
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