element14 Community
element14 Community
    Register Log In
  • Site
  • Search
  • Log In Register
  • Members
    Members
    • Benefits of Membership
    • Achievement Levels
    • Members Area
    • Personal Blogs
    • Feedback and Support
    • What's New on element14
  • Learn
    Learn
    • Learning Center
    • eBooks
    • STEM Academy
    • Webinars, Training and Events
    • Learning Groups
  • Technologies
    Technologies
    • 3D Printing
    • Experts & Guidance
    • FPGA
    • Industrial Automation
    • Internet of Things
    • Power & Energy
    • Sensors
    • Technology Groups
  • Challenges & Projects
    Challenges & Projects
    • Design Challenges
    • element14 presents
    • Project14
    • Arduino Projects
    • Raspberry Pi Projects
    • Project Groups
  • Products
    Products
    • Arduino
    • Dev Tools
    • Manufacturers
    • Raspberry Pi
    • RoadTests & Reviews
    • Avnet Boards Community
    • Product Groups
  • 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
Personal Blogs
  • Members
  • More
Personal Blogs
Legacy Personal Blogs Controlling Raspberry Pi from Smart Phone
  • Blog
  • Documents
  • Mentions
  • Sub-Groups
  • Tags
  • More
  • Cancel
  • New
Blog Post Actions
  • Subscribe by email
  • More
  • Cancel
  • Share
  • Subscribe by email
  • More
  • Cancel
Group Actions
  • Group RSS
  • More
  • Cancel
Engagement
  • Author Author: rithvikpodduturi
  • Date Created: 6 Dec 2016 4:07 PM Date Created
  • Views 310 views
  • Likes 0 likes
  • Comments 0 comments
  • smartphone
  • pi
  • rasp
  • raspbery pi
Related
Recommended

Controlling Raspberry Pi from Smart Phone

rithvikpodduturi
rithvikpodduturi
6 Dec 2016

pi_f-750x480.jpg

Step 1: Getting Raspberry pi IP Address:

To begin with the project, one will need to know the IP address the raspberry pi. In order to do so connect your raspberry pi with the LCD and, type ifconfig or hostname-I in the terminal window.

Note: Only for this particular section any external display is used like LCD, else for whole of the project smartphone (Android Phone) will be used.

Step 2: Connecting Pi with Phone (Setting up SSH client)

SSH (Secure Socket Shell) is a protocol to access Raspberry Pi with any device. For this project Serverauditor is used that can be downloaded from the Android play store for free. It’s also available for iOS devices.

Steps to install Serverauditor on Phone:

Step 2.1: When you first start the application click on the plus button present on the bottom left of the screen, and then choose the New Host.

pi_a-180x300.png

Step 2.2: Enter the following Details:

Alias: Any name is acceptable

Username: pi

Hostname: Your Raspberry Pi IP address (From Step 1)

Password: raspberry

pi_b-205x300.png

The other fields can be left blanks, then tap the check mark on the top right. After that, click one Connect when asked “If you really want to connect your device”

Note: that Username and Password are those of Raspberry Pi. If one has changed it from default ones, one need to enter the current username and password.

pi_c-169x300.png

You now have raspberry pi console line on your screen.

Step 3: Install & set up VNC server on Raspberry Pi

As now you have SSH, you can do this either on Raspberry Pi console i.e. on your tablet/smartphone. For sure you can do this by connecting your Raspberry Pi with a PC monitor and opening a console line.

Enter the following commands in order.

Step 3.1: Install TightVNC package

sudo apt-get install tightvncserver

Step 3.2:  Run TightVNC Server

tightvncserver

You will be asked to enter a password and an optional view-only password.

Step 3.3: Create a script file to start the VNC server.

open text editor:

nano

Put the following script in it:

#!/bin/sh

vncserver :1 -geometry 1920×1080 -depth 24 -dpi 96

“Ctrl+O” to save the file. The extension should be “.sh”. I named it “vnc.sh”. Then, “Ctrl+X” to exit the editor.

pi_d-169x300.png

Then make the file executable.

sudo chmod +x vnc.sh

With this file, you can start VNC server from your tablet/smartphone by sending a command via SSH:

./vnc.sh

Step 4: Install & set up VNC viewer on your tablet/smartphone:

Download and install Real VNC from android store for free.

Setting up Real VNC:

Enter Raspberry Pi IP address followed by “:1” which means display number 1.

Also one needs to enter the VNC server password that you created in that was created in Step 3.2.

pi_e-219x300.png

Now you are ready

pi_f-300x224.jpg

  • Sign in to reply
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 © 2023 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