8 Channel Servo Controller for NXT help!

Questions/Discussions relating to software and programming of sensors, controllers and actuators for NXT.

8 Channel Servo Controller for NXT help!

Postby Robotix » Tue Apr 17, 2012 1:32 am

Hi, i've been wondering exactly how to continuously rotate servos, the library has a SetSpeed method but unfortuntely it does not give an example. Is it possible to continuously rotate servos using the controller?

I've also being wondering as to why my servos start rotating when they are plugged into the NXT and batteries, even though no programs have been uploaded yet. Is it a power overload problem?

Thank-you very much!
Robotix
 
Posts: 6
Joined: Tue Apr 17, 2012 1:25 am

Re: 8 Channel Servo Controller for NXT help!

Postby support » Tue Apr 17, 2012 6:31 am

The neutral position of continuous rotation servo changes based on the voltage applied.
You need to find the neutral position of your servo for your setup (load, battery, etc).
Refer to following document to learn about how to do this -
http://www.mindsensors.com/index.php?mo ... ent_id=114
support
 
Posts: 89
Joined: Fri Sep 25, 2009 12:54 pm

Re: 8 Channel Servo Controller for NXT help!

Postby Robotix » Wed Apr 18, 2012 2:19 am

Thanks! But can you post an example of how I would use the setSpeed method? I tried using it but even with my newly neutral servos it does not work.
Thanks in advance!
Robotix
 
Posts: 6
Joined: Tue Apr 17, 2012 1:25 am

Re: 8 Channel Servo Controller for NXT help!

Postby Robotix » Wed Apr 18, 2012 5:24 am

Sorry, last question:
In RobotC, StopAllTasks() does not stop the servos from moving, they keep moving even when the program has ended, is there a reason for this, how can I stop it?
Thanks!
Robotix
 
Posts: 6
Joined: Tue Apr 17, 2012 1:25 am

Re: 8 Channel Servo Controller for NXT help!

Postby support » Wed Apr 18, 2012 9:40 am

Robotix wrote:Thanks! But can you post an example of how I would use the setSpeed method? I tried using it but even with my newly neutral servos it does not work.
Thanks in advance!


Refer to program find-neutral.nxc, that program is changing the speed (by setting Position) and in doing so, it goes through a zero speed value (which is your neutral position).
support
 
Posts: 89
Joined: Fri Sep 25, 2009 12:54 pm

Re: 8 Channel Servo Controller for NXT help!

Postby support » Wed Apr 18, 2012 9:42 am

Robotix wrote:Sorry, last question:
In RobotC, StopAllTasks() does not stop the servos from moving, they keep moving even when the program has ended, is there a reason for this, how can I stop it?
Thanks!

StopAllTasks only stops the tasks running on NXT brick.
To stop the servos from moving, you should set the position to neutral value before StopAllTasks function.
support
 
Posts: 89
Joined: Fri Sep 25, 2009 12:54 pm

Re: 8 Channel Servo Controller for NXT help!

Postby Robotix » Thu Apr 19, 2012 12:41 am

support wrote:
Robotix wrote:Thanks! But can you post an example of how I would use the setSpeed method? I tried using it but even with my newly neutral servos it does not work.
Thanks in advance!


Refer to program find-neutral.nxc, that program is changing the speed (by setting Position) and in doing so, it goes through a zero speed value (which is your neutral position).


However, if I want to change my speed so that it is not based off my battery power. Sorry I must have missed something? Also, if I remove the batteries and insert new ones I have to recenter the servos again, can this be avoided?
Thanks!
Robotix
 
Posts: 6
Joined: Tue Apr 17, 2012 1:25 am

Re: 8 Channel Servo Controller for NXT help!

Postby support » Thu Apr 19, 2012 12:21 pm

The neutral position of continuous rotation servo does vary based on the power supplied, so if new battery changes the power level, you will have to recenter the servos.
The NXTServo can store the neutral position for each servo, so as an alternative to entering each time, you can store the neutral position of your servo at different servo number.
e.g. say you are using battery A, the neutral position of your servo for that battery is stored in servo #1, whereas for battery B, store it in #2, and when you change the battery, also swap the servo pins from #1 to #2.
support
 
Posts: 89
Joined: Fri Sep 25, 2009 12:54 pm

Re: 8 Channel Servo Controller for NXT help!

Postby Robotix » Tue Apr 24, 2012 1:22 am

Just 2 more questions:

1. Is there any way to have a speed not based on power level? (i.e. if battery power is high the 1600 setting is faster than if battery power is low)

2. Is it possible to upload init-neutral through RobotC?

Thanks!
Robotix
 
Posts: 6
Joined: Tue Apr 17, 2012 1:25 am

Re: 8 Channel Servo Controller for NXT help!

Postby Robotix » Wed Apr 25, 2012 9:55 am

My main problems are:

1. When the battery goes down so does the servo power making precision impossible - therefore i'd like to be able to set a perma speed? Is it possible?

2. Servos cannot go very fast for some reason(I know they can go fast on PICAXE) - Is it possible to use the Set_Speed method to increase speed? (it doesn't seem to do anything)
Robotix
 
Posts: 6
Joined: Tue Apr 17, 2012 1:25 am

Next

Return to Software and Programming

Who is online

Users browsing this forum: No registered users and 0 guests

cron