How cane I make 2 programms in one ?

BreuliBreuli Posts: 4
edited March 2013 in Robotics Vote Up0Vote Down
German Version

Hallo ich brauche eure Hilfe :)

Ich baue einen Laufroboter der mit einer Fernbedienung gerade aus und r

Comments

  • 9 Comments sorted by Date Added Votes
  • ercoerco Posts: 17,460
    edited March 2013 Vote Up0Vote Down
    Zu hilfe! :)

    Do you mean a tv remote control, using modulated 38 kHz IR? You will need a special 3 pin IR receiver, such as http://www.amazon.com/TSOP1838-IR-Infrared-Receiver-KHz/dp/B003IVGE6M which is active low, BTW.

    You also need Parallax's "read IR" routine to know which key was pressed. Do you know that routine?
    "When you make a thing, a thing that is new, it is so complicated making it that it is bound to be ugly. But those that make it after you, they don’t have to worry about making it. And they can make it pretty, and so everybody can like it when others make it after you."

    - Pablo Picasso
  • ercoerco Posts: 17,460
    edited March 2013 Vote Up0Vote Down
    One general method to combine your programs is like this:

    main:
    read IR remote signal X
    if X=1 then forward
    if X=2 then backward
    goto main

    forward:
    (your routine to take 2 steps forward)
    goto main

    backward:
    (your routine to take 2 steps backward)
    goto main

    And that read IR routine can be found at http://www.parallax.com/StoreSearchResults/tabid/768/List/0/SortField/4/ProductID/177/Default.aspx?txtSearch=ir+receiver

    more specifically, http://www.parallax.com/Portals/0/Downloads/docs/prod/audiovis/IRdecodeDetectAppnote.zip
    "When you make a thing, a thing that is new, it is so complicated making it that it is bound to be ugly. But those that make it after you, they don’t have to worry about making it. And they can make it pretty, and so everybody can like it when others make it after you."

    - Pablo Picasso
  • BreuliBreuli Posts: 4
    edited March 2013 Vote Up0Vote Down
    IMG_0282.JPG


    This is the remote control with which the robot is started.

    IMG_0281.JPG
    IMG_0279.JPG
    IMG_0280.JPG


    and so does the robot. I have everything I need there. I just do not know how I get shut hammer out the running forward and reverse running together. I can not imagine by your post looks like it is the query of individual sensors.
    960 x 720 - 262K
    960 x 720 - 235K
    960 x 720 - 263K
    960 x 720 - 249K
  • ercoerco Posts: 17,460
    edited March 2013 Vote Up0Vote Down
    Hey, that's a real Parallax Toddler. Great robot. Rare. In Germany, huh?

    Your IR receivers on the robot look OK, but that Samsung remote will be a problem, you need a Sony remote. Can you get a different universal remote and set it up like a Sony television remote?

    Do you have this document, with lots of code? www.parallax.com/dl/docs/books/edu/toddler.pdf
    "When you make a thing, a thing that is new, it is so complicated making it that it is bound to be ugly. But those that make it after you, they don’t have to worry about making it. And they can make it pretty, and so everybody can like it when others make it after you."

    - Pablo Picasso
  • BreuliBreuli Posts: 4
    edited March 2013 Vote Up0Vote Down
    No, the remote is ok;) I do not want every single keyboard on the remote control code ^^ I did it just so before the start of the robot by any click of the remote.


    The infrared sensor will be designed for the forward running and the other for the reverse rotation that is my problem :) I have no idea how to program it ...
  • ercoerco Posts: 17,460
    edited March 2013 Vote Up0Vote Down
    Sorry, I can only help if you use a Sony TV remote. If you must use that remote, then you have to program it by yourself.

    Viel gluck!
    "When you make a thing, a thing that is new, it is so complicated making it that it is bound to be ugly. But those that make it after you, they don’t have to worry about making it. And they can make it pretty, and so everybody can like it when others make it after you."

    - Pablo Picasso
  • BreuliBreuli Posts: 4
    edited March 2013 Vote Up0Vote Down
    other helper here ? ^^
  • ercoerco Posts: 17,460
    edited March 2013 Vote Up0Vote Down
    Breuli: I've offered to help you in several PMs, suggesting that you get a different remote using the Sony SIRC protocol, but you insist on using that Samsung remote you already have. If you would have spent $2 and bought a universal remote, we would have been done last week. You keep saying that you don't need all those buttons, but that is not helping your progress. If you want a small remote, then buy this and set it up for Sony TV: http://www.ebay.com/itm/New-Mini-Universal-Micro-Spy-Remote-Control-for-TV-Set-/170906454040?pt=US_Remote_Controls&hash=item27cad18818
    "When you make a thing, a thing that is new, it is so complicated making it that it is bound to be ugly. But those that make it after you, they don’t have to worry about making it. And they can make it pretty, and so everybody can like it when others make it after you."

    - Pablo Picasso
Sign In or Register to comment.