View unanswered posts | View active topics It is currently Sun Apr 05, 2020 1:13 pm

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

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,

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
Site Admin
Site Admin

Joined: Thu May 24, 2012 12:15 pm
Posts: 722
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 updated help documentation and the ROBOTC Forums.

Wed Mar 13, 2013 11:27 am
Display posts from previous:  Sort by  
Reply to topic   [ 2 posts ] 

Who is online

Users browsing this forum: No registered users and 1 guest

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.