I am trying to test the sonars on my robot and as such would like to control the 2 pwm signals (1 to each wheel) I have got I2C-IO working and can I can modify it so that I could have a command for forward, back, left, right etc. However, this seems a bit unwieldy, what I would like to do it either use a joystick or the keyboard to control the robot in real time. Has anyone attempted this and would be willing to share the code? If not any ideas would also be welcome.
Tracy