Shop OBEX P1 Docs P2 Docs Learn Events
IrRemoteButtons.bs2 modifications — Parallax Forums

IrRemoteButtons.bs2 modifications

cad000cad000 Posts: 3
edited 2007-04-13 01:50 in Robotics
I started with IrRemoteButtons.bs2 I was trying to modify it so that when you press the ChUp/Dn or VolUP/Dn buttons you can make the two continuous rotation servos speed up and down respectively but remain running at that speed until the next time you press the remote again which may be a long time between changes. what happens is it goes into the loop for the remote and doesn't come back until it gets a code I need it to check if it has a code and then come back with out one. if I haven't pressed a button.

[noparse][[/noparse]Moderator Added Subject]

Post Edited By Moderator (Chris Savage (Parallax)) : 4/12/2007 10:09:05 PM GMT

Comments

  • Mike GreenMike Green Posts: 23,101
    edited 2007-04-12 18:55
    Please post your modified program and explain clearly what you're trying to do and what is actually happening.
  • cad000cad000 Posts: 3
    edited 2007-04-12 19:01
    I was just using the program out of the IR manual for controlling a robot which is very close to what I want. but the program goes looking for the remote code and does not come back until it gets one. I need to make 2 continuous rotating servos run continuously and once in a while I need to send it a code from the remote that will change the speed of either servo.

    can you help! please....
  • Mike GreenMike Green Posts: 23,101
    edited 2007-04-12 19:17
    Around page 100 is a discussion of IR Roaming with Speed Control. This deals with the issue of receiving IR messages while still delivering speed/direction pulses to servos at least every 20ms. Your program will have to function much like this. Have a look at that section of the manual.
  • cad000cad000 Posts: 3
    edited 2007-04-13 01:50
    thanks, I was close just not there.

    you pointed me to what I was looking for.

    Thanks again...
Sign In or Register to comment.