Shop OBEX P1 Docs P2 Docs Learn Events
Infrared Recorder — Parallax Forums

Infrared Recorder

CumQuaTCumQuaT Posts: 156
edited 2009-08-04 23:37 in Propeller 1
Hello,

I'm new to using the Propeller (been working at it for a few months now, but have only had small amounts of time to dedicate to it) and I've gotten to the point where I want to build a circuit that can read IR frequencies coming from a TV remote. I have my circuit all set up with the output from my sensor going to pin 8 on the prop, but have no idea what to put into spin in terms of coding... Can anyone give me a kick start? I'm a fast learner, so all I need is a bit of a nudge in the right direction. I'm too used to using PBASIC!

▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
Who are you, and why are you reading my signature?

Comments

  • Mike GreenMike Green Posts: 23,101
    edited 2009-08-04 13:48
    How about starting with the existing PBasic code in "IR Remote for the BoeBot" and using the BS2 Functions Library from the Object Exchange to provide the functionality for things like PULSIN?
  • CumQuaTCumQuaT Posts: 156
    edited 2009-08-04 14:04
    I can program a propellor in PBasic????

    ▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
    Who are you, and why are you reading my signature?
  • JonnyMacJonnyMac Posts: 9,197
    edited 2009-08-04 14:29
    The Sony SIRCS protocol is popular because it's easy to decode -- you can find lots of PBASIC and SX/B implementations for decoding it. As I use Sony remotes in a few projects I ported my SX/B code to PASM (Propeller Assembly). The project (ObEx link below) will display IR codes from TV and/or DVD remotes that use the Sony protocol.

    No, you cannot program the Propeller in BASIC (not yet, anyway). Spin and PASM are easy to learn.

    obex.parallax.com/objects/477/
  • StefanL38StefanL38 Posts: 2,292
    edited 2009-08-04 17:23
    The BS2Basic-object provides functions that work as the equivalent PBASIC commands
    but they are written in SPIN. A Propeller can only interpret SPIN or run Propeller-Assembler (PASM) code.

    You can use this as a start. Of course this object has its limitations.

    there are two objects in the obex related to IR remote-controls

    IR-kit

    and

    IR remote

    best regards

    Stefan
  • SamMishalSamMishal Posts: 468
    edited 2009-08-04 17:45
    CumQuat,

    Not too long ago I posted a spin program on this forum that does EXACTLY what you are trying to do.

    Here is the link to the posting.....the program IR_Keypad.Spin is an attachment in that posting and you
    can download it and study it....it allows you to use a Sony TV remote to enter numbers. It has all you
    need to achieve what you are asking for.

    http://forums.parallax.com/showthread.php?p=821283



    Regards

    Samuel
    P.S. You may also be interested in this posting (attached program is IR_Music.spin)
    http://forums.parallax.com/showthread.php?p=822242

    Post Edited (SamMishal) : 8/4/2009 5:54:37 PM GMT
  • CumQuaTCumQuaT Posts: 156
    edited 2009-08-04 23:37
    Thank you all! This will make my life a lot easier!

    ▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
    Who are you, and why are you reading my signature?
Sign In or Register to comment.