Skip to content

A little help please #3

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
joster1 opened this issue Sep 5, 2016 · 8 comments
Open

A little help please #3

joster1 opened this issue Sep 5, 2016 · 8 comments

Comments

@joster1
Copy link

joster1 commented Sep 5, 2016

Hello,

I just ordered a whole house distributed audio amplifier (Dayton Audio DAX66) and an Onkyo TX8140. When any zone is turned on on my amplifier (via in wall keypads), I need the Onkyo receiver to turn On. When all zones are off, I'd like the receiver to go into Standby.

I will use the 12V "Control Out" output from the amplifier to signal my arduino (via a relay to protect it from 12V and keep it isolated). When the 12V is high, I want the Onkyo on and set to Tuner/Internet radio.

Questions:

  1. For this application, would it matter if I use the Onkyo_send_blocking vs the Onkyo_send_non-blocking?
  2. Do you know the two commands that I would need to toggle the Onkyo On/Tuner and Off?

Thank you so much!

@docbender
Copy link
Owner

Hello @joster1,

to your first question. For simple application is better to use "blocking" version. It's simpler. This version blocks execution of any code in arduino until command to Onkyo is send (around 61ms). If u need do something during that period than use "non blocking" version.

About TurnOff command. Try commands from table at main page. I only tested it for my receiver and for it TurnOff represents 0x420 command. If it doesn't work, you can run "test" project on your arduino. It send all commands one by one. You have to only watch device behaviour and debug information in arduino serial monitor.

@oelegeirnaert
Copy link

Hello,

I do have an Onkyo TX-SR307 AV Amp and I'd like to use the RI interface too.
Please can you provide me a wiring diagram for an Arduino?
In fact, I don't know which Arduino pin I do need to use as data signal.

Thank you very muchroom,
Oele Geirnaert

@docbender
Copy link
Owner

Hello @oelegeirnaert,

you can use any of Arduino digital pin. It is on your choice. Only than provide pin number to class constructor :

#define ONKYO_PIN 10

OnkyoRI ri(ONKYO_PIN); 

Wiring is easy. Just connect grounds together and data pin connect to JACK tip.

 x----- data -----/\                         
                 |  | 
                 |__|
                 |  |
  /---- GND -----|  |
_|_              |  |

@oelegeirnaert
Copy link

Hi,
Many thanks for your quick answer!

The purpose is to make an internet connected Amplifier.
I'll send my commands through MQTT and as front-end I'm thinking to use Node-Red.

Kind regards,
Oele Geirnaert

@oelegeirnaert
Copy link

oelegeirnaert commented Jan 5, 2017 via email

@docbender
Copy link
Owner

I don't think there is relationship between RI and remote control.

RI mainly serves to turn on/off receiver or switch input channel so only limited functions could be managed by RI. Unfortunately Onkyo does not publish supported codes.

You can try detected codes for my receiver or you can detect your code-set yourself by test program for Arduino: https://github.com/docbender/Onkyo-RI#test-program

@docbender docbender mentioned this issue Feb 5, 2019
@jrote1
Copy link

jrote1 commented Jul 22, 2019

Hi @oelegeirnaert
I see that you got this working with the TX-SR307 AMP, I was wondering if you have figured out any of the common codes and also did you do anything with the read side of this?
Thanks

@oelegeirnaert
Copy link

Hi @jrote1 ,
Currently I don't haven't this amp (and thus code aswell) anymore :-)
Sorry!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants