View unanswered posts | View active topics It is currently Wed Jul 30, 2014 10:40 am






Reply to topic  [ 2 posts ] 
Arduino+NXShield mismatch with NXT lego brick 
Author Message
Rookie

Joined: Fri Mar 08, 2013 9:29 pm
Posts: 1
Post Arduino+NXShield mismatch with NXT lego brick
Hi I am trying to match up the way a motor works under NXT mindstorm brick to NXShield on Arduino using the exact same configuration. But the motor behaves quite differently for the following setup.

angle = 8 degrees
power = 100
use power control = true/checked
Action = Constant
Next action = Brake

When I translate these settings over to NXSheild I use the following

nxshield.bank_a.motorRunDegrees( motor, direction,
100,
8,
SH_Completion_Wait_For,
SH_Next_Action_Brake);

But they behave very differently even with an external 9v power supply on NXShield.

When I run with lego brick, the motor would move very sharply and oscillate to rest (that'st he behavior I actually want). But in NXShield, the motor moves a little bit but not as sharply as the brick and doesn't oscillate. Then I tried to run the motor by putting 0xBD into the registerA of motor 1 but still no to avail.

Does anyone know how to get NXShield to work exactly like the brick under the above settings. Thanks


Fri Mar 08, 2013 9:39 pm
Profile
Site Admin
Site Admin

Joined: Thu May 24, 2012 12:15 pm
Posts: 557
Post Re: Arduino+NXShield mismatch with NXT lego brick
Would you be able to post your full code using the [code] tags? Also, is this code being written in ROBOTC or Processing? I ask because the sample programs on the NXShield's site are using Processing.

_________________
Check out our Blog! And our Facebook page!
Need help? Take a look at our Wiki and our Forums.

I just met you,
And this is crazy,
But here's my code now,
So fix it, maybe?
~ Carly Rae Jepsen parody


Wed Mar 13, 2013 11:27 am
Profile
Display posts from previous:  Sort by  
Reply to topic   [ 2 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.