EVShield Steering Control of two Synchronized Motors
 Arduino   Started by Peter Hinrichsen   2016-02-14 16:13:43 -05:00   Comments: 2    Viewed: 425

  1. It's day two of working with an EVShiled and I love it, but I have a couple of questions that I'll post as separate topics on the forum.

    Have searched the demos, source code, docs and web without finding the answers, so I hope I have not missed something obvious.

    NXC, NXT-G and EV3-G all allow a pair of motors to be controlled in 'synchronized' mode with a 'steering' property that proportions power to the two motors allowing a robot to:

    * move in a straight line (set to zero);
    * turn on the sport (set to 100);
    * move in a sweeping arc (set to > 0, < 100)

    Is such a control available through the EVShield?

    Many thanks,

    Peter Hinrichsen, 2016-02-14 16:13:43 -05:00
  2. Deepak Patil
    Deepak Patil Administrator Staff Member Richmond
    There is a function bool EVShieldBank::motorStartBothInSync( ) 
    you can set parameters as you need and then start the motors at the same time.
    If you want same parameters for both motors, you can call a higher level function such as:
    In this function parameters, supply which_motors as 'SH_Motor_Both' and both motors will be applied with the same values.

    hope this helps.
    Deepak Patil, 2016-02-15 11:52:07 -05:00
  3. (You must log in or sign up to post here)

Log in | Sign up
Tems & Conditions!