|
Page 1 of 1
|
[ 2 posts ] |
|
Arduino+NXShield mismatch with NXT lego brick
Author |
Message |
zhossain
Rookie
Joined: Fri Mar 08, 2013 9:29 pm Posts: 1
|
 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 |
|
 |
JohnWatson
Site Admin
Joined: Thu May 24, 2012 12:15 pm Posts: 722
|
 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 |
|
|
|
Page 1 of 1
|
[ 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
|
|