Project tutorial
Smart_VLC media player

Smart_VLC media player © GPL3+

Here's a small but unique idea to make your VLC media player a smart one. It operates on hand-gesture.

  • 250 views
  • 0 comments
  • 2 respects

Components and supplies

About this project

This project lets you to play/pause and volumeUP/volumeDOWN in VLC media player with the help of movement of your hands. Alongside ultrasonic sensor measure the distance and act accordingly by the python program.

Code

Code of python program used in thisPython
click on it/ copy paste the link on browser
import serial #Serial imported for Serial Communication
import time   #Required to use delay functions
import pyautogui


ArduinoSerial = serial.Serial('com3',9600) #Create Serial port object called arduinoSerialData
time.sleep(2) #wait for 2 seconds for the communication to get established

while 1:
    distance = int(ArduinoSerial.readline()) #read the serial data and print it as line
    
    if (distance<5):
        print("Vdown")
        i=8
        while(i>0):
            pyautogui.hotkey('ctrl', 'down')
            i=i-1
        
        
    elif (5<distance<12         ):
        print("Play/Pause")
        pyautogui.typewrite(['space'], 0.2)

    
    elif (9<distance<20):
        print("Vup")
        i=8
        while(i>0):
            pyautogui.hotkey('ctr l', 'up')
            i=i-1
        
    else:
        print('Nothing') 

Comments

Similar projects you might like

Gesture Based Media Player Controller Using Arduino

Project tutorial by Jithin Sanal

  • 2,670 views
  • 0 comments
  • 10 respects

Automatic Temperature Based Fan Control (for Media Cabinets)

Project tutorial by Vess Bakalov

  • 7,794 views
  • 4 comments
  • 29 respects

Low Power RF Beacon for Remote Sensing & Communication

Project tutorial by Shahariar

  • 6,134 views
  • 1 comment
  • 19 respects

LSS (Light Status System) Intensity and Direction Finder

Project tutorial by Alireza Karkon

  • 1,382 views
  • 0 comments
  • 10 respects

DHT11 Humidity + Temperature Sensor with 16x2 LCD display

Project showcase by onatto22

  • 35,555 views
  • 8 comments
  • 47 respects

Rain Warning Display on Mobile for your Home Garden

Project showcase by Kaustubh Agarwal

  • 8,603 views
  • 7 comments
  • 33 respects
Add projectSign up / Login