Post

Visualizzazione dei post da febbraio, 2020

LIRC: control your Raspberry with a remote

Immagine
When I'm using my Raspberry as a Spotify Connect device , I'd like to control the playback easily without unlocking the phone. The best solution I found is to use the stereo remote . We will take advantage of a infrared sensor connected to the GPIO pins available on the Raspberry, decoding the input signals with the tool LIRC . Unfortunately, the Raspbian mantainers team is changing the support to LIRC, so most of the articles available online are out-to-date. The guide here is tested on Raspbian Buster and it's working! First of all: materials needed. Raspberry (any version) Power adapter and cable Internet connection 3 jumper wires female-female IR receiver working at 38 kHz We start connecting our components using the jumper wires. The IR sensor I used has 2 power supply pins (Vs, pin 3, and GND, pin 2), that will be connected to a +3.3V pin and to a GND pin, and one communication pin (pin 1), that we will connect to pin GPIO 17. Be careful! Check