Skip to content

Latest commit

 

History

History
19 lines (16 loc) · 1.15 KB

GPIO media control Instructions.md

File metadata and controls

19 lines (16 loc) · 1.15 KB

GPIO Control of Media Control and Playlist play

This software uses the onoff npm module to read input from the GPIO pins.

Hardware Connections on breadboard

  1. Connect Pin1(3.3v) (or pin17) of raspberry pi to a 1k resistor.
  2. From the 1k resistor take three wires and connect to three different switches
  3. Connect from switches to pin 11(GPIO 17), pin 12(GPIO 18) and pin 13(GPIO 27).
  4. Now the switch connected to
    • pin11(gpio 17) acts as forward button if evince pdf reader is not running. If evince pdf reader is running then this switch acts as show next slide .
    • pin12(gpio 18) acts as backward button if the evince pdf reader is not running. show previous slide otherwise.
    • pin13(gpio 27) acts as pause/play playlist button.

Play a playlist when the PIO button is pressed

  1. Connect a switch to GPIO 22(pin 15) similar to the above procedure.
  2. Create a playlist and make it key event playlist with keycode as 22
  3. Now the switch can be used to play and stop (toggle) the playlist