Home Automation Using RemoteMe & Arduino Remote LITE App.

Introduction: Home Automation Using RemoteMe & Arduino Remote LITE App.

About: I am a Programmer, Hacker, Maker and Technology enthusiast.

Hello guys,

In this project I will be sharing with you all, how to use RemoteMe & Arduino Remote Lite app to control relays. which can be used in multiple projects like home automation, etc. Using this you don't have to be in the house to control the relay as it can be done over the internet from any where around the world.

I will try to explain this in details still trying to keep it simple so this might be a long post.

If you have no experience with RemoteMe check out Control Devices Over Internet. and Simple Weather Station posts to get an idea.

With that been said, Lets jump right into it.

Step 1: What Is RemoteMe ?

I decided to start with a simple introduction to RemoteMe for those who do not know what it is and what you can do with it.

So RemoteMe is a web application which is used to communicate with devices like Arduino, NodeMCU, Raspberry Pi, etc. With the RemoteMe application, you can host your websites to control your devices in the RemoteMe cloud. Only you and the users who have the generated key have access to those websites. You can have as many pages as you want and totally free.
You can use the built in code generation wizard to make the code, so you don't have to write all code from scratch.

Using RemoteMe you can connect your projects to the internet.You will need an account on RemoteMe to use its features.

Step 2: What Is Arduino Remote Lite ?

Arduino Remote Lite is android application which can be used to remotely control your projects via Bluetooth or WiFi. It can also be connected to RemoteMe server to control Relays and other such devices.
You can download this app from TopHopApps' website. Here is the link.

Step 3: What You Will Require :-

Hardware Components :-

  1. ESP8266 dev board (Amazon US / Amazon EU / Banggood)
  2. Relay board. (Amazon US / Amazon EU / Banggood)
  3. Breadboard. (Amazon US / Amazon EU / Banggood)
  4. Male to Female jumper wires. (Amazon US / Amazon EU / Banggood)
  5. 9v battery. (Amazon US / Amazon EU / Banggood)

Software Components :-

  1. Arduino IDE. (To upload the code)
  2. RemoteMe account.
  3. Arduino Remote Lite app.

Step 4: Setting Up the IDE :-

First things first, We have to set up the IDE and install all the required libraries.

  1. In order to be able to program the ESP board using arduino IDE, your IDE needs some modification. Here I have provided a link to another Instructable where I have shared the information on how to do that :- Getting Started With NodeMCU (ESP8266).
  2. Once the ESP environment is ready next step is adding the libraries required for RemoteMe connection.
  • Open IDE and goto >> Sketch >> Include Library >> Manage Libraries. A pop will show up where you have to search the required libraries and install them one by one.
    Libraries are :-
    * RemoteMe.h
    * Remotemeutils.h
    * RemoteMeSocketConnector.h
    * RemoteMeDirectWebSocketConnector.h
    * ESP8266WiFi.h
    * ESP8266WiFiMulti.h

Once these libraries are installed the IDE is ready to work with RemoteMe.org

Step 5: Setting Variables & Generating Code :-

First head over to RemoteMe.org goto "Applications" and signup if you haven't already.

Now install the Arduino Remote Lite apk and Sign in using the RemoteMe account. once that is done, get back to RemoteMe website to create variables.
Follow the Following steps carefully :-

    1. In 'Application' goto 'Variables', here you will notice a list of variables created automatically by the 'Android Remote Lite' app . We will be using these variables to control the relays.

    2. Now above 'Variables' there is another option named 'Devices' click on it and a new page will load where you can create devices.

    3. Click on 'New Devices' option on top right corner, a drop down list will appear. Select the last option 'New Network Device'. Now give the device a name like 'Relay' or 'Automation' anything you want. also give the device a unique ID so the device is recognized and differentiated from other devices.

    4. After the above step a new device will appear. Now we have to generate a code. For that notice the burger menu (Represented by 3 horizontal lines) click on that. Select 'Code Generating Wizard' , You will see a pop up window with a list of all the variables generated by the App.

    5. Scroll down to find the list of relays. As here I am using a 4ch relay, I will select the first 4 relay variables, If you are using 8 / 16 ch relays. select the numbers you require and click on 'Next'

    6. In next step enter your WiFi name and password and click on 'Next'.

    7. In next step you have an option to enable 'Enable Direct Connection' if you enable this option. the App will connect to the device directly without internet if the Smartphone is in the range of the WiFi.

    8. In next step enable the Debug option and hit next. Now you can download the code and move on to edit it.
    We need to edit the code to set i/o pins.

    Coding :-
    Just add the following in the downloaded code :

    int Relay1 = D0;
    int Relay2 = D1;
    int Relay3 = D2;
    int Relay4 = D3; 

    So on you can add more if you want.

    void onRELAY_01Change(boolean b)
        Serial.printf("onRELAY_01Change : b : %d\n", b);
        if(b == 1) 
            digitalWrite(Relay1, HIGH);
        else if(b == 0)
           digitalWrite(Relay1, LOW);

    Above the functions in the code are edited for operating relays. In a similar way you can edit all the functions for the number of relays you are using.

    pinMode(Relay1, OUTPUT);
    pinMode(Relay2, OUTPUT);
    pinMode(Relay3, OUTPUT);
    pinMode(Relay4, OUTPUT);

    The above code is to be added in setup to set the pins as output.

    That's all the code that needs to be edited, The whole code is provided below just add your WiFi name and password, your device ID, and token which can be found in 'Token' below 'Variables'.

    With that been done, the code is ready to be uploaded to the ESP board.

    Step 6: Connections :-

    1. Place the ESP8266 board on Breadboard, Connect the GND pin to the -ve rails on both sides.

    2. Now connect some male to female jumpers to the relay board. Refer to the pictures above for the connections.

    3.Connect a 9v battery clip to the breadboard. It will power both the Relays and the Logic circuit of the relay board.

    4. Now connect the wires of the Appliance you want to control, The AC appliance will have 2 wires. you have to cut the live wire and connect one end to the center terminal of the relay and another end to the normally open terminal. (Check the picture above).

    CAUTION : - Alternating Current is very dangerous and accidental shock could be fetal. Work with AC appliances only if you are 100% sure of what you are dealing with. I shall not be responsible if you caused any harm to yourself or anyone else.

    With that the connections are ready now move on to test the build, First power it up with 9v battery. If you want to power the ESP board with the battery as well, Just connect the Vin pin of ESP board to +ve rail of the breadboard. Then you don't need to connect the USP cable.

    Open the Arduino Remote Lite app, Head over to the 3rd option "Relay Control" from here you can control the Relays with the switches.

    Hope this post was informative and helpful.

    If you have any doubts, leave it in the comment section.

    Thank You.

    Step 7: Video Tutorial :-

    Don't forget to checkout the video tutorial to get a clear understanding of the steps.

    Be the First to Share


      • Pocket-Sized Speed Challenge

        Pocket-Sized Speed Challenge
      • Super-Size Speed Challenge

        Super-Size Speed Challenge
      • Audio Challenge 2020

        Audio Challenge 2020

      7 Discussions


      10 months ago

      I can find all libraries that you required


      1 year ago

      Great project. Thank you for sharing


      1 year ago on Step 1

      the design of theremote is added again? like sliding buttons,temperature monitors,and sensor2 and canbe used on laptop

      Harsh Dethe
      Harsh Dethe

      Reply 1 year ago

      I don't understand what you are saying.


      Question 1 year ago on Introduction

      Can't I use this method offline or is there any other way to do like this offline?

      Harsh Dethe
      Harsh Dethe

      Answer 1 year ago

      you can use bluetooth if you do not want to take the system online. The app has bluetooth conectivity too.


      1 year ago

      Nice tutorial. I'll try.