Introduction: LightControl

The project started with that i had 2 remotes to control 6 outlets in my apartment. But i wanted to get rid of the remotes and control the light with my iPhone and in my web-browser on my computer.

I figured i could use an Arduino with Ethernet shield to do that. I already had an Arduino uno so i bought an Ethernet shield on ebay.

Update 27-9 2015:

I will soon start working on making a login system so you dont need to worry about people getting your ip if you use it on the internet. and make an updated parts list as it will then use the arduino mega(more memory)

Update 28-10 2015:
I have now added a version with authentication, check it out and let me know what you think.

Teacher Notes

Teachers! Did you use this instructable in your classroom?
Add a Teacher Note to share how you incorporated it into your lesson.

Step 1: Remote

I took one of the remotes apart and found out that i could just short the buttons to ground, to push them. but the remote was running on a 12v battery, and the arduino dont do well with 12v so i used some optocoupler to isolate the 12v from the arduino.

Step 2: Parts Needed

the parts that are needed

1x Arduino uno (can be any arduino)

1x Ethernet shield (it should be the one with the w5100 chip)

1x mixro sd card

1x 5v to 12v stepup

1x 433mhz transmitter

1x 3d printed box (stl provided)

some 433 mhz controllable wall outlets

i used 5 and one relay module connected to another system that i will add here later when it is finished

Step 3: Interface

The interface i made in HTML.

the first 2 pictures is an older version of the interface, where i started to have buttons, but they didnt work that great on my phone, so i went for iPhone styled checkboxes.

the text in the last 4 pictures is in danish because i am from denmark. but the first function is used to turn off all of the outlets, and the second one is used to control the first 4 lights.

there is some mistakes in the pictures, but there is an updated version index. file here.

the index.htm file should be put on an sd card and put into the Ethernet shield

the index.htm file is inside this zip file in the last step.

Step 4: Arduino Code

the arduino code is based on the webserver example.

but the code have gotten very complicated so i will not go into detail here, but fell free to ask questions

the arduino code can be found in the zip file in the last step. if you have any questions about it feel free to ask.

Step 5: 3D Printed Case

i used a 3D printer to print a case for the arduino ethernet that i designed in google sketchup.

the stl files i provided here, but can also be found on my thingiverse thing.

i added sketchup file as vinz3nt requested.

Step 6: Final

It have now been running for some days, with the final version and it works great.

I have made a cleanup in the code, where unused parts was removed.

i have also planned an upgrade to the project that will come this summer, when i get my spark photon.

Step 7: Authentication

I have made an update to the webserver so that it now requires a username and password to access the light control webpage, how ever this version is activated with rcswitch so the program size is to large for an uno so i need to be used on an arduino mega. There have also been added a little 0.96" oled display, but is not needed you can just comment it out.

in line 83 in the webserverauth.ino file you need to set your username and password, that is encoded in base64, use this link to encode your user and pass

in format USERNAME:PASSWORD where you replace USERNAME with your choosen username and PASSWORD with what you want as password.

Be the First to Share


    • Trash to Treasure Contest

      Trash to Treasure Contest
    • Raspberry Pi Contest 2020

      Raspberry Pi Contest 2020
    • Wearables Contest

      Wearables Contest

    6 Discussions


    5 years ago on Introduction

    Nice jeg har hentet mit sæt i jem og fix og bestil mine optocoupler :D Det her kommer til at hjælpe mig :)


    Reply 5 years ago on Introduction


    koden til at bruge fjernbetjeningerne er kommenteret ud. så det skulle være nemt at gå til, men vil dog anbefale dig at bestille sådant en 433MHz sender, fra ebay, de kan fåes til omkring 6 kr.

    hvis der er noget du ikke kan få til at virke så spørg endelig :)


    Reply 5 years ago on Introduction

    Jeg har prøvet med en 433MHz sender, men kunne desværre ikke få min kode til at virke.
    Hvad brugte du i stedet for RCSwitch ??


    Reply 5 years ago

    Det kunne jeg heller ikke, men så prøvede jeg med deres light version hvor man ikke skal inkludere RCSwitch biblioteket.


    5 years ago

    wow, I really like it! I actually own exactly the same remote controlled set! mine are made by a Dutch company, elro (Roos Electronica) but I guess the origins might be in China or so.
    can you perhaps include the sketchup files? I'm at the moment designing a LCD screen case and learning how to draw it in sketchup, watching other people's work helps a lot.
    great instructable, I enjoyed it.


    Reply 5 years ago on Introduction


    nice, then you better get building it :P
    yes i think they come from china.

    i have added the sketchup file all parts of the box is in that one file.