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 ?
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
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.