View unanswered posts | View active topics It is currently Mon Dec 16, 2019 10:00 am






Reply to topic  [ 3 posts ] 
Issues with using a Technic Motor & EV3 
Author Message
Novice
User avatar

Joined: Tue Aug 11, 2009 11:49 pm
Posts: 62
Location: Tasmania, the Land Down Under, the Land Downunder!
Post Issues with using a Technic Motor & EV3
Hi,

I am trying to use an old style Technic Motor with an EV3 project, but am having issues with motor only running in one direction reliably.

Code:
int direction = 100;

void operateClamp()
{
  direction = direction * -1;
  if (direction == 100) {displayCenteredTextLine(5, "Closing Container Clamp");} else {displayCenteredTextLine(5, "Opening Container Clamp");}
  motor[motorD] = direction;
  sleep(3000);
  motor[motorD] = 0;
}



task main()
{
  while (true)
  {
    operateClamp();
    sleep(1000);
  }
}



The code runs flawlessly when I use either an NXT or EV3 motor, but when I use a PowerFunctions or Technics Motor, the Motor will only run for a few milliseconds in the positive direction (direction = 100). The negative or Reverse direction (direction = -100) it works fine. Is this a RobotC 4.30 issue, or am I doing something wrong?

I trust someone can please help me get to the bottom of this?

_________________
regards

Ray (Sparra) Mc


Image


My Blog: www.LegoMindstormsRobots.com
Lot's of Robotic Projects with FREE Code and Instructions....


Sat May 23, 2015 10:08 am
Profile WWW
Site Admin
Site Admin
User avatar

Joined: Wed Mar 05, 2008 8:14 am
Posts: 3654
Location: Rotterdam, The Netherlands
Post Re: Issues with using a Technic Motor & EV3
I am pretty sure the EV3 does not officially support anything other than the NXT or EV3 motors, so it's not something we ever tested. It most likely has to do with the fact that it's not getting any kind of feedback from the non-existing encoders. It's not something we ever tested.

= Xander

_________________
| Professional Conduit of Reasonableness
| (Title bestowed upon on the 8th day of November, 2013)
| My Blog: I'd Rather Be Building Robots
| ROBOTC 3rd Party Driver Suite: [Project Page]


Sun May 24, 2015 9:39 am
Profile WWW
Novice
User avatar

Joined: Tue Aug 11, 2009 11:49 pm
Posts: 62
Location: Tasmania, the Land Down Under, the Land Downunder!
Post Re: Issues with using a Technic Motor & EV3
Thanks Xander.

I assumed that was the issue, but it is very inconvenient when you don't need encoder feedback and weight is a major design constraint. Also cost comes into the equation as well, as even the new Medium EV3 Motors are very expensive to buy.

Using a Mindsensors GlideWheel for PF and RCX Motor is a way out, but they cost as much/more as a Medium EV3 Motor.

How difficult is including a non-Ecoder Motor type to RobotC, as I'm sure I won't be the last to want to use non-EV3/NXT motors in a project?

_________________
regards

Ray (Sparra) Mc


Image


My Blog: www.LegoMindstormsRobots.com
Lot's of Robotic Projects with FREE Code and Instructions....


Sun May 24, 2015 9:44 pm
Profile WWW
Display posts from previous:  Sort by  
Reply to topic   [ 3 posts ] 

Who is online

Users browsing this forum: No registered users and 2 guests


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Search for:
Jump to:  



Powered by phpBB © 2000, 2002, 2005, 2007 phpBB Group.
Designed by ST Software for PTF.