Inspiration

We were asked to submit a computer project during summer break. So I thought of doing something very innovative.

Then I came up with the idea of building an android app that lets you control any electronics device wirelessly from any part of the world.

How it works

I have integrated the Nexmo Verify API and amazingly I get both SMS as well as call from Nexmo to get number verification

This is a project that is combination of both hardware and software.

Working of the app is most exciting, I will explain with an example of an electric bulb.

First of all electric bulb is connected to AC relay module, which is connected to GPIO pin of Raspberry Pi v2. Raspberry Pi v2 is configured with an WIFI adapter, along with it web Server, PHP module, wiringPI module Weaved is installed on Raspberry Pi on PORT 80 for HTTP Access GPIO php file which is made by me (available for download on my github link) is installed on the raspberry web server

Then LightMyPi app now available on play store (made by me) is downloaded and installed on the android Phone. In the settings tab of app, the raspberry pi local url with GPIO.PHP url is entered and saved

Then you can control all electrical devices through LightMyPi with ease. Also you can control UART TX RX pins can be controlled with the app

This sounds bit complicated, but you can figure it out For Weaved to work, make sure you have internet connected to ethernet port For wireless control, change settings of raspberry pi to give a wifi access point

The best part with my app is you don't need to SSH login into raspberry pi every time to control GPIO, you can control without SSH and without need of port forwarding

For a college student, may be this is an extra ordinary achievement

Challenges I ran into

The hardest part was making the app, because this was the first ever android app I was building, it took me almost 2-3 weeks to get this working.

Configuring raspberry pi especially the part to give WiFI access point was very complicated, and there were errors which took me almost 24 hours to fix.. But in the end I have achieved something


I came to know about nexmo competition few hours before and I have to rush to integrate the API. The app has a technical failure that prevents the number from getting verified.

If I am given more time, I will be able to fix the issue

But I am sure the Verify API works perfectly in sending the verification code to the users mobile phone.

Accomplishments that I'm proud of

I can control a device wirelessly, more like a super power.. I have unknowingly touched my hands on the IoT world and this has changed my views a lot about technology and android apps.

I have got over 100 downloads for this app on play store, I am happy someone is using this app, even though it appears very complicated

This was my idea which my professor said would be very hard to achieve and told me whether I am willing to take risk. I took the risk and I made a change

What I learned

All About Raspberry, IoT things, Weaved, REST API, ANDROID SDK, JAVA, GPIO PINS, PYTHON, GIT, CURL, PHP

Also the wonderful features of Nexmo API. I would love to integrate Nexmo Verify API in all my apps in near future.

What's next for LightMyPi_Nexmo

I am thinking of giving users more features like auto switching OFF light during daytime, auto ON in night and other advanced automation features at a touch of finger tip from your android phone.

To Nexmo technical team and Judges

Features of Nexmo are good and I will integrate in all my apps in near future.

I came to know about nexmo competition few hours before competition ends and I have to rush to integrate the API. The app has a technical failure that prevents the number from getting verified.

If I am given more time, I will be able to fix the issue

But I am sure the Verify API works perfectly in sending the verification code to the users mobile phone and I got even call from Nexmo with verification code. I am sure I have integrated it to the best

Built With

  • android-eclipse-raspberry-pi-rest-weaved-iot-relay-gpio-php
  • nexmo
Share this project:

Updates