[chbot] Lego NXT question

Synco Reynders synco at clear.net.nz
Fri Jan 2 21:05:06 GMT 2009


Hi Richard,
	Gnasher looks good.
I have no NXT experience, however I suspect I know the problem... and that is; 
everytime the motor speed is set, the PWM timer is reset. So if you call the 
set motor speed often enough, the PWM doesn't get a chance to switch off.
Obvious solution is to set the motor speed only if there is a change in value.
How is my guess?? Am I right?
/s



On Saturday 03 January 2009 01:12:12 Richard Jones wrote:
> Robo Sumo is on 18th Feb 2009, and here is a picture of my second Lego Sumo
> robot, this one is called Gnasher after the Beano character. Here is a pic
> of gnasher in the sumo ring. The ring was pristine a couple of days ago and
> is showing battle scars already!
>
> http://homepages.ihug.co.nz/~rjtp/LegoSumo/gnasher.JPG
>
> Now I have a little problem that an NXT expert may be able to advise on.
> When I program the dual motor control to turn fully at 50% power unlimited
> time, the motors turn at half rate for a few seconds and then run up to
> about full speed. The robot still turns on the spot so I suspect that the
> speed is still accurately controlled, just at the wrong rate. Anyone have
> any ideas? I've simplified the program to a single motor control block and
> changed my NiMh cells for alkaline cells. My nxt kit is less than 2 months
> old so I'm not keen to void the warranty yet by taking it apart. When I
> load the same program into a different NXT with different motors, the
> motors turn indefinitely at the slow rate as expected. Any suggestions much
> appreciated.
>
> Happy New Year to everyone.
>
> Richard
>
>
>
> _______________________________________________
> Chchrobotics mailing list, web site: http://kiwibots.org
> Chchrobotics at lists.linuxnut.co.nz
> http://lists.ourshack.com/mailman/listinfo/chchrobotics

-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.ourshack.com/pipermail/chchrobotics/attachments/20090103/db2aa1b3/attachment.htm 


More information about the Chchrobotics mailing list