More then 8 Servos??

For Flowcode users to discuss projects, flowcharts, and any other issues related to Flowcode 6.

Moderator: Benj

Dirk Bubley
Posts: 89
Joined: Fri Feb 02, 2007 3:54 pm
Location: Germany
Has thanked: 9 times
Been thanked: 8 times
Contact:

More then 8 Servos??

Postby Dirk Bubley » Fri Feb 02, 2018 11:20 pm

Dear Matrix Team,

i have a short question. Is it possible to have more then 8 Servos for example under ds30F6011A control.

In simulation I can activate two servo controler running a setup with more then 8 servos (for example 12 Servos). This works.....
You can select/define controller 1 and 2. :D

Trying to compile you will get a error mesage and you don`t get the hex file. :(


I belive this has to do with the timer and timer interups in the servo controller component!!!! Right??
Is there a chance to modify the servo controller component??

Attached a FC file with the call for two servo controller.

BR
Dirk
Attachments
PIC30F6011a Compiler Error with 2 Servo Cotroller.fcfx
(10.49 KiB) Downloaded 51 times

User avatar
Benj
Matrix Staff
Posts: 14674
Joined: Mon Oct 16, 2006 10:48 am
Location: Matrix TS Ltd
Has thanked: 4659 times
Been thanked: 4283 times
Contact:

Re: More then 8 Servos??

Postby Benj » Mon Feb 05, 2018 12:02 pm

Hi Dirk,

Yes we use two capture compare peripherals to keep track of the on/off time for a single servo channel. We then repeat this eight times to allow the 8 servo channels. A max of 8 channels allows the 50Hz repeat rate that the motors need.

Currently there is no way to select an alternate peripheral but maybe this is possible as the device your using has 8 CCP peripherals. I'll have a quick look for you to see how easy it would be to add this.

...

Looks like this would be quite a big challenge to do but I'll get it on the list for v8 as it would certainly be nice to have.

Dirk Bubley
Posts: 89
Joined: Fri Feb 02, 2007 3:54 pm
Location: Germany
Has thanked: 9 times
Been thanked: 8 times
Contact:

Re: More then 8 Servos??

Postby Dirk Bubley » Mon Feb 05, 2018 6:44 pm

Thx Ben,

I give you a commitment to buy a FC8 Prof. Version if this goes in as a feature.
In this context please considder a 16Bit resulution for the servo signal too.

BR

Dirk
These users thanked the author Dirk Bubley for the post:
Benj (Thu Feb 08, 2018 1:05 pm)
Rating: 5%
 

User avatar
Benj
Matrix Staff
Posts: 14674
Joined: Mon Oct 16, 2006 10:48 am
Location: Matrix TS Ltd
Has thanked: 4659 times
Been thanked: 4283 times
Contact:

Re: More then 8 Servos??

Postby Benj » Thu Feb 08, 2018 1:02 pm

Hi Dirk,

16-bit resolution for the servos is something on my mind also :D Ok I've added this and the increased channel count to my job list for v8.