Shop OBEX P1 Docs P2 Docs Learn Events
Apple IR Controller? — Parallax Forums

Apple IR Controller?

KPRKPR Posts: 189
edited 2010-04-27 13:18 in Propeller 1
Has anyone ever gotten the Apple IR controller that comes with an iMac to work using the IR code for the propeller?

I've tried all the examples that I can find and 7 different IR units and cant get any to work..

k.

▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
I always have someone watching my back.

Comments

  • AleAle Posts: 2,363
    edited 2010-04-26 06:18
    Could you please be a bit more descriptive ?.

    Do you mean the remote controller ?. Which IR receiver are you using ?. Have you had a look at the pulse train that comes from your IR receiver ?. If you do not have an oscilloscope, you can get the propeller to act as a logic analyzer. I think cluso or heater have developed some hardware/soft combination for that.

    ▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
    Visit some of my articles at Propeller Wiki:
    MATH on the propeller propeller.wikispaces.com/MATH
    pPropQL: propeller.wikispaces.com/pPropQL
    pPropQL020: propeller.wikispaces.com/pPropQL020
    OMU for the pPropQL/020 propeller.wikispaces.com/OMU
    pPropellerSim - A propeller simulator for ASM development sourceforge.net/projects/ppropellersim
  • MagIO2MagIO2 Posts: 2,243
    edited 2010-04-26 13:46
    Ale's right ... give us more info!

    Do you want to read the IR sent by the IR controller with a propeller or do you want the propeller to generate the same IR code? What's your setup? Do you have a IR diode for input or do you have a IR receiver which already removes the carrier signal?
  • KPRKPR Posts: 189
    edited 2010-04-26 14:35
    I am using the prop and a standard 38k Ir receiver ( PNA4602M ) and what I am trying to do is use the IR remote ( any IR remote at the present ) as a keyboard substitute to move/hi-light and select items in a list of items. That's why I chose the Apple remote .. nice and simple, and the fact I had it sitting around..

    When I get a chance I'm going to wire up another test unit using my proto board so I can have serial out to debug using the code in OBEX from JonnyMac..

    ▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
    I always have someone watching my back.
  • JonnyMacJonnyMac Posts: 9,208
    edited 2010-04-26 16:07
    Sony IR remotes are simple to decode, easy to come by, and there's a load of good code for them -- including the program I PM'd you last night. It's very likely that the protocol used by the Apple remote is proprietary, and not worth trying to figure out. RC-5 is another easy protocol (from Philips) that many of us have written code for.

    ▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
    Jon McPhalen
    Hollywood, CA
  • KPRKPR Posts: 189
    edited 2010-04-26 16:21
    It looks like I'm going to have to find another remote ( any suggestions ) ..

    Basically I have tried every remote in my house to get any type of info out of into my prop .. My Apple one, 4 different universals, and even my controller from sony for my Trinitron TV ( plus any others I found.. ) .. and I get nothing.. So I am going to pick up a usb to serial programmer for my prop so I have the serial terminal to debug with and start there..

    I gotta dig out the manual for my universal controller and config it for sony as well and maybe that will work..

    Thanks for the code help Jonny..

    ▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
    I always have someone watching my back.
  • Shawn LoweShawn Lowe Posts: 635
    edited 2010-04-26 16:40
    Okay, quick google search. Someone says apple uses the NEC protocall:

    http://wiki.altium.com/display/ADOH/NEC+Infrared+Transmission+Protocol

    So you would have to get the correct IR reciever to decode the button presses

    Never mind, its just the protocall you need. NEC is 38 kHz too

    ▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
    Shawn Lowe


    When all else fails.....procrastinate!
  • CannibalRoboticsCannibalRobotics Posts: 535
    edited 2010-04-26 20:47
    Have you tried the IRKit from the Obex?
    I've used that a bunch of times to figure out remotes and it's got some great discussion of IR in the code and directions.
    Jim-

    obex.parallax.com/objects/37/

    ▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
    Signature space for rent!
    Send $1 to CannibalRobotics.com.
  • KPRKPR Posts: 189
    edited 2010-04-26 21:16
    I'll take a look tonight.. thanks

    ▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
    I always have someone watching my back.
  • KPRKPR Posts: 189
    edited 2010-04-27 00:09
    Thanks for the tip CannibalRobotics ... I got IR readings.. using the M5 settings.. now to figure out what the output means... but at least we're in the right direction...

    ▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
    I always have someone watching my back.
  • iQuitiQuit Posts: 78
    edited 2010-04-27 03:23
    I read somewhere that the Apple remote uses a diff. freq. I think I read it in a forum all about carputers. If I recall correctly, much faster. That may be your
    problem.

    Do a google to prove me wrong smile.gif

    ▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
    "She may not be very pretty now, but she was somebody's baby once." Bugs Bunny
  • Shawn LoweShawn Lowe Posts: 635
    edited 2010-04-27 12:43
    CannibalRobotics said...
    Have you tried the IRKit from the Obex?
    I've used that a bunch of times to figure out remotes and it's got some great discussion of IR in the code and directions.
    Jim-

    obex.parallax.com/objects/37/

    Wow! That is a cool object! Thanks for pointing it out! smile.gif

    ▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
    Shawn Lowe


    When all else fails.....procrastinate!
  • KPRKPR Posts: 189
    edited 2010-04-27 13:18
    Of coarse I ran the ir_view code and played and found out all of the codes, which matched up with the info I found on a linux site, but now for the life of me I can't get the specific nec reader code to work.. it has configuration settings not in the documentation..

    So I trudge on.. I may just rewrite the ir_view code to suite my purpose.. I need more time..

    ▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
    I always have someone watching my back.
Sign In or Register to comment.