Skip to content

Implementation that acts as a Horizontal Mouse Wheel with contactless control. For this implementation, we need just two electronics component and simple code written with Python.

Notifications You must be signed in to change notification settings

oreitor/contactless-mouse-and-keyboard-control

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

27 Commits
 
 
 
 
 
 
 
 

Repository files navigation

Horizontal Mouse Wheel with Contactless Control

Implementation that acts as a Horizontal Mouse Wheel with contactless control. For this implementation, we need just two electronics component and simple code written with Python.

First things first, lets built up electronics side. Arduino is our microcontroller. Also, I used HC-SR04 ultrasonic sensor for detect distance. When the ended up connecttions about Arduino and HC-SR04 required install this code which about distance detection to Arduino.

Lets move on to the fun part now. Two packages need to be installed before writing code with Python.

pip install pyserial
pip install PyAutoGUI

We have to complete serial communications between Python and Arduino. pyserial package provides that. Distance results created by sensor send to Python with serial comm. Other package pyAutoGUI, allows us to switch between Python and computer GUI platform. Thus, desired commands can be assigned for mouse or keyboard.

Lastly, run this Python code. Everything is ready!

About

Implementation that acts as a Horizontal Mouse Wheel with contactless control. For this implementation, we need just two electronics component and simple code written with Python.

Topics

Resources

Stars

Watchers

Forks