Home of the Squeezebox™ & Transporter® network music players.
Page 1 of 4 123 ... LastLast
Results 1 to 10 of 33
  1. #1
    Junior Member
    Join Date
    Jul 2008
    Posts
    29

    Use Duet Controller as remote for your amp.

    The enclosed zipfile contains a applet to control a NAD amplifier (C 352) with the IR emitter on your Duet Controller.
    I used the TestIR applet from the controller as a basis.
    It is very simple customize it for other amplifiers if you know the infrared codes of your remote.
    The range of the IR controller of the duet is really amazing.

    Installation
    Unpack the zipfile.
    Copy the map to your controller (usr/share/jive/applets)
    To do that enable external acces on your remote (SSH) and copy the map with for instance winscp.
    The remote functions are now available under the home menu on your controller.

    I did not do much work on modifying the png file.

    But it seems very easy to program your own remote for the duet controller.

    It only controls power on/off, volume up/down and input select disc. It is easy to add other functions but i did not needed that.
    Last edited by Egnos; 2009-01-17 at 06:37. Reason: forget to add the functions

  2. #2
    Babelfish's Best Boy mherger's Avatar
    Join Date
    Apr 2005
    Location
    Switzerland
    Posts
    20,460

    Use Duet Controller as remote for your amp.

    > The enclosed zipfile contains a applet to control a NAD amplifier (C
    > 352) with the IR emitter on your Duet Controller.


    Hey, that's very cool! I've been using the NAD's SR-5 remote to control my Transporter for years. This might swap the roles :-).

    I'm not sure about the Sleep button: what is it intended to do? In my case it switches to the Disc input - which is perfect for me, as that's where the Transporter is connected. But is this intentional?

    --

    Michael

  3. #3
    Senior Member autopilot's Avatar
    Join Date
    Oct 2005
    Location
    UK
    Posts
    2,371
    Excellent work Is this the first time anyone has got the SBc to control an AMP etc via IR? If so, I'm surprised no one has yet. Could you provide a bit more info, such as how it can be customised for other AMP's, such as my Cambridge Audio Azur 640a?
    Cheers, auto.

    Lounge: Squeezebox 3, Squeezebox Controller, Cambridge Audio 640A, Mission 701's Kitchen: Squeezebox Touch, Trends TA-10.1, Kef Cresta 1's. Bedroom: Squeezebox Boom Bathroom/Garden: Squeezebox Radio Car: iPod Classic 80GB Portable: iPhone 3GS 32Gb (+iPeng)

  4. #4
    Babelfish's Best Boy mherger's Avatar
    Join Date
    Apr 2005
    Location
    Switzerland
    Posts
    20,460
    I've modified the image to improve the contrast and legibility on the display.

    In the applet there are key handlers for the hardware buttons. Are they mapped to anything NAD specific or are they still doing their default job?

    I'll probably going to modify the volume buttons to set the NAD's volume instead, skip to switch between sources etc.
    Michael

    "It doesn't work - what shall I do?" - "Please check your server.log and/or scanner.log file!"
    (LMS: Settings/Information)

  5. #5
    Junior Member
    Join Date
    Jul 2008
    Posts
    29
    Michael, the reason why i took sleep is that i was too lazy to design a new png image with "disc" on it.
    thanks for teh higfh contrats png image. Who is going to make a nice image for the remote.


    Autopilot, in the file NADIRapplet.lua you find the definitions of the keys.
    In my case the following 4 keys. The first key-sleep is to select disc input, the second is power en up down is for volume up and down.
    It is very simple to add more keys (see the IR example on your controller).

    local keymap = {
    { key=KEY_SLEEP, x=29, y=34, dx=18, dy=0, ir="0xE13E916E" },
    { key=KEY_POWER, x=207, y=27, dx=22, dy=0, ir="0xE13E01FE" },
    { key=KEY_UP, x=119, y=34, dx=18, dy=0, ir="0xE13E11EE" },
    { key=KEY_DOWN, x=119, y=85, dx=18, dy=0, ir="0xE13E31CE" },
    }

    As you can see there is a parameter called ir="0x********".
    You have to find the IR codes for your amp. Try for instance the lirc database http://lirc.sourceforge.net/remotes/
    maybe your remote is there.

  6. #6
    Junior Member
    Join Date
    Jul 2008
    Posts
    29
    Michael
    I changed the png and put in the disc and some text for volume.
    Last edited by Egnos; 2009-01-25 at 08:08.

  7. #7
    Senior Member
    Join Date
    Feb 2007
    Location
    Olde London Town
    Posts
    1,111
    How does the applet encode IR commands?

    My Pronto has learnt IR commands, e.g. to set the AV input on the amp in pronto hex is '5000 0073 0000 0001 0010 0002'.

    IIRC the '5000' at the start means the rest is RC5 encoded.

    IMHO The Squeezebox team who understand LIRC should meet up with the Harmony developers who use Pronto hex and sort out some utility.
    Last edited by amcluesent; 2009-01-25 at 09:38.

  8. #8
    Junior Member
    Join Date
    Jul 2008
    Posts
    29
    For more background on the IR code see http://forums.slimdevices.com/showth...nfrared&page=2
    Maybe this will help you to understand the LIRC files.

  9. #9
    Senior Member
    Join Date
    Feb 2007
    Location
    Olde London Town
    Posts
    1,111
    >Maybe this will help you to understand the LIRC files.<

    Hmm, not really obvious is it

    I think I'll wait for someone to develop a lua function which will process the pronto hex IR codes.

  10. #10
    Member pufnstuf's Avatar
    Join Date
    Feb 2007
    Location
    Australia
    Posts
    70
    Quote Originally Posted by Egnos View Post
    The enclosed zipfile contains a applet to control a NAD amplifier (C 352) with the IR emitter on your Duet Controller.
    Great information; this looks like a brilliant piece of functionality to add to the SBC. Please keep up the great work Egnos (& Michael)!

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •