View unanswered posts | View active topics It is currently Mon Sep 22, 2014 6:14 am






Reply to topic  [ 4 posts ] 
Lego motor problem 
Author Message
Rookie

Joined: Mon Apr 28, 2014 12:37 am
Posts: 3
Post Lego motor problem
:crying: Please help

I am using Lego mindstorm base set 9797 for my project.My program switches motor power (mostly 100 to -100) in 10ms as per the calculations. But when this motorpower is given to my lego it runs for sometime (3 or 4 sec) and then it stops for(nearly 1 sec) then it starts again then stops this continues. I checked the value given to motorpower its still showing value but motor is not responding. I want a continuous motor resonse for my project.Please help..


Mon Apr 28, 2014 12:47 am
Profile
Moderator
Moderator
User avatar

Joined: Wed Mar 05, 2008 8:14 am
Posts: 3223
Location: Rotterdam, The Netherlands
Post Re: Lego motor problem
Without actual code, it's very hard for us to help you debug this problem. Please post your code, make sure you enclose it in the [ code][ /code] tags (minus the spaces)

= 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]


Mon Apr 28, 2014 2:47 am
Profile WWW
Rookie

Joined: Mon Apr 28, 2014 12:37 am
Posts: 3
Post Re: Lego motor problem
Code:
#pragma config(Motor,  motorA,           ,             tmotorNXT, openLoop, encoder)
//*!!Code automatically generated by 'ROBOTC' configuration wizard               !!*//
task main()
{
while(true)
{
  motor[motorC]=100 ;
  motor[motorB]=100 ;
  wait1Msec(50);
  motor[motorC]=-100;
  motor[motorB]=-100 ;
  wait1Msec(50);
}
}


Mon Apr 28, 2014 3:50 am
Profile
Rookie

Joined: Mon Apr 28, 2014 12:37 am
Posts: 3
Post Re: Lego motor problem
When running this program motor stops intermittendly till time is made till 500ms


Mon Apr 28, 2014 3:52 am
Profile
Display posts from previous:  Sort by  
Reply to topic   [ 4 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.