Jump to content

Motor fader servos


Synapsys

Recommended Posts

I have read here on the forum that the motor fader servo tracks cannot be multiplexed like pots are. Can someone explain to me why this is?
They could be multiplexed, but there are several reasons not to, the best one is that there is a tradeoff in performance to keep the motors response fast.

Multiplexed inputs are read one at a time. If fader 1 has a fast move in progress and MIOS is off reading another pot when it's stop time for fader 1, the fader will not hit its target accurately.

Keep in mind that most moving fader designs use one processor per fader to keep up, TK's design is pure genius. :)

Because servo tracks are controlled by an electronic (pulsewidth) For controlling servos you must permanently send every 20ms a signal PWM.
Yes but that is for driving RC model servos, not reading the "servo" track on the faders.

The term servo is used to describe a lot of different types of designs, but usually just means a motor with some type of positional feedback to its controller.

Have fun!  ;)

SmashTV

Link to comment
Share on other sites

I have read here on the forum that the motor fader servo tracks cannot be multiplexed like pots are. Can someone explain to me why this is?
They could be multiplexed, but there are several reasons not to, the best one is that there is a tradeoff in performance to keep the motors response fast.

Multiplexed inputs are read one at a time. If fader 1 has a fast move in progress and MIOS is off reading another pot when it's stop time for fader 1, the fader will not hit its target accurately.

Keep in mind that most moving fader designs use one processor per fader to keep up, TK's design is pure genius. :)

Because servo tracks are controlled by an electronic (pulsewidth) For controlling servos you must permanently send every 20ms a signal PWM.
Yes but that is for driving RC model servos, not reading the "servo" track on the faders.

The term servo is used to describe a lot of different types of designs, but usually just means a motor with some type of positional feedback to its controller.

Have fun!  ;)

SmashTV

Link to comment
Share on other sites

Hi SmashTV,

Thanks for your response but I do not agree with the one at a time theory here. The PIC 18f (like all MCUs) can perform an A/D conversion on only one of the 8 analog input pins at a time anyway (i.e. the ADCON0 register bits CHS2:CHS0 select which of the 8 inputs the conversion is done on). I do realize that using multiplexed analog adds some overhead in terms of switching channels. However I do not know if the switching time vs. changing the ADCON0 channel select is significant here.

There is no doubt that TK's design is quite elegant and certainly works well but since Microchip chose to assign the SPI slave select bit (*SS on pin 7) to one of the analog input pins it is not possible to use the SPI  bus and process 8 fader servos on a slave core.

This question was in no way intended to challenge TK's design. It was intended purely as a means to understand fully how MIOS and MBHP work together.

Regards, Synapsys

Link to comment
Share on other sites

Hi SmashTV,

Thanks for your response but I do not agree with the one at a time theory here. The PIC 18f (like all MCUs) can perform an A/D conversion on only one of the 8 analog input pins at a time anyway (i.e. the ADCON0 register bits CHS2:CHS0 select which of the 8 inputs the conversion is done on). I do realize that using multiplexed analog adds some overhead in terms of switching channels. However I do not know if the switching time vs. changing the ADCON0 channel select is significant here.

There is no doubt that TK's design is quite elegant and certainly works well but since Microchip chose to assign the SPI slave select bit (*SS on pin 7) to one of the analog input pins it is not possible to use the SPI  bus and process 8 fader servos on a slave core.

This question was in no way intended to challenge TK's design. It was intended purely as a means to understand fully how MIOS and MBHP work together.

Regards, Synapsys

Link to comment
Share on other sites

Hi SmashTV,

Thanks for your response but I do not agree with the one at a time theory here. The PIC 18f (like all MCUs) can perform an A/D conversion on only one of the 8 analog input pins at a time anyway (i.e. the ADCON0 register bits CHS2:CHS0 select which of the 8 inputs the conversion is done on). I do realize that using multiplexed analog adds some overhead in terms of switching channels. However I do not know if the switching time vs. changing the ADCON0 channel select is significant here.

You are right about the A/D conversion on only one pin at a time thing.  You have to remember here that it is only reading one -pin- at a time, doing that you don't have to wait for settle time (or other waits) that add enough to the time overhead of multiplexing to make it unusable for this.  

If the reading from the pot is not as real-time as possible, the fader will overshoot enough to cause the motors to overwork, so you would have to bring the move speed way down, stealing more time away from other processes (still working on a move that should be done) etc.

Have fun! ;)

SmashTV

Link to comment
Share on other sites

Hi SmashTV,

Thanks for your response but I do not agree with the one at a time theory here. The PIC 18f (like all MCUs) can perform an A/D conversion on only one of the 8 analog input pins at a time anyway (i.e. the ADCON0 register bits CHS2:CHS0 select which of the 8 inputs the conversion is done on). I do realize that using multiplexed analog adds some overhead in terms of switching channels. However I do not know if the switching time vs. changing the ADCON0 channel select is significant here.

You are right about the A/D conversion on only one pin at a time thing.  You have to remember here that it is only reading one -pin- at a time, doing that you don't have to wait for settle time (or other waits) that add enough to the time overhead of multiplexing to make it unusable for this.  

If the reading from the pot is not as real-time as possible, the fader will overshoot enough to cause the motors to overwork, so you would have to bring the move speed way down, stealing more time away from other processes (still working on a move that should be done) etc.

Have fun! ;)

SmashTV

Link to comment
Share on other sites

Hi SmashTV,

Thanks for the info. This makes more sense to me. I have looked at the specs for the 4051 (Fairchild) and the propagation delay from channel change to output is on the order of 1.2us with a signal in to signal out delay max at 55 ns. This means that for eight faders a delay of  about 10 usec might be expected. I don't know if a 10 us delay is so long as to cause slider overshoot. However, I have not done any experimenting with this yet so I am not sure. If the 1.2 usec per channel switch is too long than an alternative may be to use two 4051 chips connected to two AIN pins and alternate which one is begin converted and switching the other during the conversion time. This would effectively eliminate all the delays. I am currently tied up with another project but when I get more free time I will investigate this to further quantize these delays in terms of MISO scan resolution for the servos.

Regards, Synapsys :)

Link to comment
Share on other sites

Hi SmashTV,

Thanks for the info. This makes more sense to me. I have looked at the specs for the 4051 (Fairchild) and the propagation delay from channel change to output is on the order of 1.2us with a signal in to signal out delay max at 55 ns. This means that for eight faders a delay of  about 10 usec might be expected. I don't know if a 10 us delay is so long as to cause slider overshoot. However, I have not done any experimenting with this yet so I am not sure. If the 1.2 usec per channel switch is too long than an alternative may be to use two 4051 chips connected to two AIN pins and alternate which one is begin converted and switching the other during the conversion time. This would effectively eliminate all the delays. I am currently tied up with another project but when I get more free time I will investigate this to further quantize these delays in terms of MISO scan resolution for the servos.

Regards, Synapsys :)

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Loading...
×
×
  • Create New...