ARM

  • Raspberry Pi
  • Windows 8
  • Android
  • Interesting Stuff
    • volvo emergency braking technology
    • App controlled spy tank with night
    • Finder-Key control
  • Linux
  • Contact

Remote access to raspberry pi

Posted by praveen kumar at 07:03

Remote access in raspberry pi 


PiPurr Server
PiPurr Server
All the best hacks and open-source projects come about by scratching personal itches. In fact when asked by friends and acquaintances “How do I start with coding – what should I write?“, that is my usual answer – “Find something you don’t like or would like to improve and do that“.
This brings us to the idea of PiPurr, what I like to call the Remote Cat Interaction Server.
Whenever we go on holiday, we never really get to relax, because Hannah is always asking me things like “Do you think the cats are OK?“, “What do you think the cats are up to?” etc. PiPurr is the solution to this problem.
The goal is not just to be able to keep an eye on what the cats are doing when away from home, but also to interact and play with them remotely too.
PiPurr is a simple client-server solution. The server runs on a Raspberry Pi, for low power consumption and provides the functionality – capturing images, dispensing treats, making sounds play from the speakers etc, and clients connect to this over HTTP and request those actions.
PiPurr for Android
PiPurr for Android
The server is implemented as a small Python web server, using HTTPServer that, instead of serving static files from a directory, exposes a small number of URIs that correspond to those actions. This means that all that is required to access it is a browser. A summary of the actions are:
  • /cats.jpeg – Capture and return a photo from the webcam. Uses OpenCV.
  • /sound – Play the sound out the speakers to entice the cats over.
  • /treat – Dispense a cat treat – Currently in development, and will use a PicoBorg stepper motor to drive a treat dispenser. Keep a look out for another blog post about this in the future.
The decision to use the (rather large and fiddly to get working on Raspberry Pi) OpenCV for image capture is down to the fact that in the future I am going to write a cat detector, and possibly other vision-based functionality.
A neat addition to the server is the LedBorg, which is an RGB LED add-on, set to flash different colours depending on what happens when requests come in. Red for 403s, 500s etc., green for 200 on the image URI and blue for 200 on the sound URI.
Sharing
Sharing
For ease of use, I also developed an Android client that allows easy access to PiPurr whilst out and about. The app also allows for sharing of the captured images over email, Facebook etc.
I will be adding more functionality to the solution as time goes on. Some of the things I have planned are:
  • / – Implement a web UI to control it easier with a web browser.
  • /laser – Move a laser pointer or similar cat to about with motor control.
  • /video – Stream live video.
I plan to talk about this project at BarCamp Canterbury on the 27th April 2013 if you would like to find out more, or have any cool ideas.
Email ThisBlogThis!Share to TwitterShare to FacebookShare to Pinterest

0 comments:

Newer Post Home Older Post
Subscribe to: Post Comments (Atom)

Categories

  • 512mb ram
  • add on board
  • arm
  • assembly coding in raspberry pi
  • codec for raspberry pi
  • console window for raspberry pi
  • control from phone
  • controlling raspberry pi from android
  • development boards
  • ir remote+ raspberry pi
  • ir with raspberry pi
  • latest projects in raspberry
  • lcd
  • linux
  • linux based development board
  • media centre
  • More LEDs and a Button
  • open source board
  • openelec
  • pi
  • piface
  • Piscanner
  • program
  • projects for raspberry pi
  • projects on raspberry
  • push button with raspberry pi
  • pwm in raspberry pi
  • python
  • raspberry
  • raspberry pi
  • Raspberry Pi and the Piezo Speaker
  • raspberry pi basics
  • raspberry pi console
  • raspberry pi gpio
  • raspberry pi home theater
  • raspberry pi projects
  • raspberry pi using AA battery
  • raspberry pi vs pandaboard vs beaglebone vs arduino vs cotton candy
  • sbc
  • senors
  • single board computer
  • sudo
  • touch screen for raspberry pi
  • twitter controlled raspberry pi
  • ultrasound sensor with Rasperry pi
  • why sudo for raspberry pi
  • xbmc

Photostream

Pages

  • Linux

Blog Archive

  • ▼  2013 (34)
    • ►  May (1)
    • ▼  April (25)
      • Expand the Number of GPIO Pins on the Raspberry PI...
      • Raspberry Pi remote access
      • Remote access to raspberry pi
      • Manual override: Raspberry Pi beginners' books
      • Raspberry Pi TouchScreen LCD
      • PiTelephone - Raspberry Pi retro dial phone
      • Battery Power Supply for raspberry pi
      • Control raspberry from twitter
      • Deploying Raspberry Pi's in a Classroom - Problems...
      • Raspberry Pi VS Arduino VS BeagleBoard VS PandaBoa...
      • 8 great Raspberry Pi projects created by kids
      • This is controlled by Rasperry Pi
      • Raspberry Pi Assembly Code
      • PWM for Raspberry Pi
      • Raspberry pi has PWM pins
      • Remote Controlling a Car over the Web. Ingredients...
      • Controlling a Raspberry Pi’s GPIO over the network...
      • Raspberry Pi Ultrasound Sonar Range Sensing
      • Ten pi-fect projects for your new Raspberry Pi
      • Sudo on Raspberry Pi – why? And why you need to as...
      • Setting up PiFace on Raspberry Pi
      • Simple Python programs
      • Raspberry Pi Serial Console With MAX3232CPE
      • Buttons and Switches with Raspberry Pi
      • Video Wall in Raspberry
    • ►  March (8)
Powered by Blogger.

Hello there!

Follow us

Tags

  • 512mb ram (2)
  • add on board (1)
  • arm (7)
  • assembly coding in raspberry pi (7)
  • codec for raspberry pi (2)
  • console window for raspberry pi (3)
  • control from phone (8)
  • controlling raspberry pi from android (10)
  • development boards (1)
  • ir remote+ raspberry pi (1)
  • ir with raspberry pi (2)
  • latest projects in raspberry (25)
  • lcd (1)
  • linux (3)
  • linux based development board (10)
  • media centre (2)
  • More LEDs and a Button (3)
  • open source board (5)
  • openelec (4)
  • pi (3)
  • piface (1)
  • Piscanner (4)
  • program (1)
  • projects for raspberry pi (11)
  • projects on raspberry (1)
  • push button with raspberry pi (5)
  • pwm in raspberry pi (2)
  • python (2)
  • raspberry (8)
  • raspberry pi (7)
  • Raspberry Pi and the Piezo Speaker (1)
  • raspberry pi basics (1)
  • raspberry pi console (1)
  • raspberry pi gpio (9)
  • raspberry pi home theater (4)
  • raspberry pi projects (3)
  • raspberry pi using AA battery (1)
  • raspberry pi vs pandaboard vs beaglebone vs arduino vs cotton candy (3)
  • sbc (1)
  • senors (1)
  • single board computer (1)
  • sudo (1)
  • touch screen for raspberry pi (1)
  • twitter controlled raspberry pi (1)
  • ultrasound sensor with Rasperry pi (1)
  • why sudo for raspberry pi (1)
  • xbmc (8)
High Quality Blogger Templates
Copyright © 2012 ARM - and Free Blogger Templates.