Brushless motor encoder combination doesn't work

Hello,

i am using a three-phased brushless motor and a rotary encoder. When i plug the motor and the encoder together in the arduino, the motor kind of glitches and does'nt follow the given signal, although without plugging the encoder the same code works fine. What can i do to fix this ?

Thanks in advance

Welcome to the forum

Your topic was MOVED to its current forum category which is more appropriate than the original as it has nothing to do with Installation and Troubleshooting of the IDE

Please post your full sketch and a schematic of your project. A photo of a hand drawn schematic is good enough

Tell us a lot more, and include links, your power supply, schematic and any salient details.

I am using simulink arduino support package . this is my template . i am giving the following signal to the motor using the continious servo block. the motor must rotate for 2.5 seconds in one direction and then 2.5 seconds in the other direction. It rotates correctly when the encoder is not plugged in . once i connect the rotary encoder to pins 2 and 3 of the arduino, the motor begins to glitch.

i used USB power supply and a 9V Batterie. it didn't work with either of them

I also use a seperated 15V power supply for the motor

I have no idea what that diagram is showing and you have not posted your code

Image that we know nothing about the "simulink arduino support package" which in my case is true. Post a proper schematic and your full code

How is the motor move related to the encoder counts?

I bet that it's not the encoder itself that causes trouble. Instead it will be your code that blocks the controller for a too long time.

This topic was automatically closed 180 days after the last reply. New replies are no longer allowed.