onkyori_*** are modules what enable cooperation with the Onkyo RI system.
'Onkyori_listener2' acquires Onkyo RI signal and registers it to database.
This module contains the Raspberry Pi daemon and the Arduino program.
This module needs onkyori_common module (Ver. 0.4 or above) to operate.
- Requirements of onkyori_common
- Physical Products and Parts
- Arduino Uno R3
- USB 2.0 Cable Type A to B
- Audio Cable (3.5mm Mono)
- Arduino IDE
- Python Packages:
- PySerial 3.4
- Connect the Onkyo RI equipment and the Arduino
- Use the audio cable.
- Plug the cable plug to the Onkyo RI equipments "RI Remote Control" jack.
- Connect another plug's line to the Arduino.
(audio) Ground <-> GND (Arduino)
(audio) Signal <-> PIN_2 [Default] (Arduino)
- Setup the Arduino
- Load 'Arduino/acquire_ri/acquire_ri.ino' using the Arduino IDE.
- Compile the source and upload the program to the Arduino.
- Operate the Onkyo RI equipment to confirm the receive data.
If the Arduino cannot receive the data normally, you can edit the constant values in the Arduino source code.
- Connect the Arduino Uno and the Raspberry Pi 3 via USB Cable.
- Place this repository files into Raspberry Pi
- Login to Raspberry Pi.
- Create directory: '/var/project/onkyori_listener2/'
- Place this repository files to '/var/project/onkyori_listener2/'.
- Add execute permission to 'index.py'.
- Install systemctl service
- Move 'onkyori_listener2.service' to '/usr/lib/systemd/system/'.
- Execute the following command to reload daemons.
sudo systemctl daemon-reload
- Execute the following command to start this service.
sudo systemctl start onkyori_listener2
- Execute the following command to set this service starting automatically.
sudo systemctl enable onkyori_listener2