Network Security Internet Technology Development Database Servers Mobile Phone Android Software Apple Software Computer Software News IT Information

In addition to Weibo, there is also WeChat

Please pay attention

WeChat public account

Shulou

How to understand the infrared remote control version of NetEase Yun music player based on raspberry pie

2025-02-22 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Internet Technology >

Share

Shulou(Shulou.com)06/01 Report--

This article introduces how to understand the infrared remote control version of NetEase Yun music player based on raspberry pie. The content is very detailed. Interested friends can use it for reference. I hope it will be helpful to you.

Infrared remote control version of NetEase Yun music player based on raspberry pie. The following is a schematic diagram of the remote control keyboard:

CH- CH CH+ > | |-+ EQ 0 100 + 200 + 1 2 3 4 5 6 7 8 9

Musicbox uses the current user's favorite playlist as the channel list. CH-/+ represents switching to the first / next channel. Press the CH key to broadcast the relevant information of the current channel, and double press the CH key to restart musicbox. For switching to the top / next track, press the | key to play / pause the current track. + /-is the volume adjustment key. Press EQ to broadcast information about the current repertoire. If a single / a pair press the 0 to 9 keys, the corresponding ordinal tracks will be played. For example, if you press 6 alone, you will play the track with ordinal 6; for example, if you double press 7, you will play the repertoire with ordinal 77. Press 100 + to broadcast the current date and 200 + to broadcast the current time.

Install dependent software package $[sudo] apt-get install mpg123 $[sudo] apt-get install python-dev$ [sudo] pip install requests$ [sudo] pip install BeautifulSoup4 $[sudo] pip install pycrypto$ [sudo] pip install future$ [sudo] npm install forever-g Infrared receiver function installation and configuration

VCC connected to 3.3v pin, GND grounded, IN connected to GPIO 18.

Open the file / boot/config.txt, find the configuration that starts with dtoverlay, read the comments, and modify it as follows.

Dtoverlay=lirc-rpi,gpio_in_pin=18

Infrared default output is 18 pins, after the above, gpio_in_pin=18 can not be written. If the infrared receiver head is connected to other pins, the corresponding pins need to be modified.

After installing the lirc software.

$[sudo] apt-get install lirc

Edit the file / etc/lirc/hardware.conf to modify some of the contents as follows. After modification, save and restart the system, and use the ls / dev/l* command to check whether the infrared device works, and if there is a lirc0, it can be used.

LIRCD_ARGS= "- uinput" DRIVER= "default" DEVICE= "/ dev/lirc0" MODULES= "lirc_rpi"

To test the infrared reception function, first use the command / etc/init.d/lirc stop to shut down the LIRC software, and then execute the following command.

$[sudo] mode2-d / dev/lirc0

Finally, overwrite the file musicbox/lircd.conf to the corresponding file of the LIRC software

$[sudo] cp ~ / lircd.conf / etc/lirc/lircd.conf installation self-startup script

Copy the file musicbox to the directory / etc/init.d/

$[sudo] cp musicbox / etc/init.d/

Modify the execution permissions of the copied file

$[sudo] chmod 755 musicbox

Add boot startup item

[sudo] update-rc.d musicbox defaults about how to understand the infrared remote control version of NetEase Yun music player based on raspberry pie. I hope the above content can be of some help and learn more. If you think the article is good, you can share it for more people to see.

Welcome to subscribe "Shulou Technology Information " to get latest news, interesting things and hot topics in the IT industry, and controls the hottest and latest Internet news, technology news and IT industry trends.

Views: 0

*The comments in the above article only represent the author's personal views and do not represent the views and positions of this website. If you have more insights, please feel free to contribute and share.

Share To

Internet Technology

Wechat

© 2024 shulou.com SLNews company. All rights reserved.

12
Report