Coder Social home page Coder Social logo

mypi's Introduction

MyPi

MyPi is a very simple yet powerful technique to control the mouse over IP using Raspberry pi. It is a over-engineered plug and play device which can convert any USB based Mouse(Wired or Wireless) to an IP Mouse. An IP Mouse is basically an Interent Protocol device which can connect to your PC over a WiFi connection and can control your device wirelessly in real time.

Features

  • Multi Platform(Windows/macOS)
  • Simple UI
  • Minimum Latency
  • It costs can be as low as Rs 1500(www.robu.in)

Required Hardware

  • Raspberry Pi with Raspian installed on it.
  • USB Mouse
  • WiFi Connection

DIY

  • Install the Server.py and Screen.py file in your Raspberry Pi and set it to execute at startup.
  • Connect the USB Mouse to your Raspberry Pi.
  • Ensure both the Raspberry Pi and your computer is connected to the same WiFi.
  • Launch the MyPi.exe( or MyPi.app) in your computer.

- Click on Connect to automatically connect to your Raspberry pi. - Now, Click on Activate to control your computer using the IP Mouse.

Implementation using Python Scripts

Installation

From source:

git clone https://github.com/rockysaikia730/MyPi
cd MyPi
pip install pyautogui, pynput
pip install sockets
pip install pyqt5

For conda:

conda install -c anaconda pyqt

Inference

Sensitivity: The Default Sensitivity adjusts by upscaling/downscaling with respect to the Raspberry Pi Default Resolution. Keep the Default Resolution of Raspberry Pi to 1920โœ•1080 The Sensitivity Can be changed by changing the following variables:

scale_height = int(device_height/max_height_device) #Along y-direction
scale_width = int(device_width/max_width_device)    #Along x-direction

Latency: The Latency can be adjusted by the following method: The Default Value of PAUSE for PyAutoGUI is 0.1. So, it is recommended to decrease the PAUSE value

pyautogui.PAUSE=0.001

To Run the python file:

python MyPi.py

Executables

.app in macOS

pip install pyinstaller
pyinstaller --add-data '0.jpg:.' MyPi.py
pyinstaller MyPi.spec
mkdir appfolder
  • Copy all the contents of dist/MyPi/ and paste it to appfolder
  • Rename appfolder to MyPi.app

.exe in Windows

pip install pyinstaller

Use pyinstaller to convert into .exe :

pyinstaller --onefile --windows --icon=logo.ico MyPi.py

mypi's People

Contributors

rockysaikia730 avatar priyanshupansari avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.