I was wondering if anyone could figure out the wiring for the "24mm Brushless DC gear motor - 24V 960RPM”?
For some reason, it is behaving oddly.
I hooked it up to a function generator, and when the VCC and the CW/CCW wires are given 20V the PWM wire will only cause the motor to rotate when it is given less than 2.5V. If a higher voltage is given to the PWM the motor will stop rotating.
Furthermore, changing the voltage supply on the PWM does not change the speed of rotation, but changing the voltage supply to the VCC will.
I left the FG (frequency generator) wire unattached and connected the black GND wire to the ground.
As you can see on the datasheet the motor has 5 wires
The red is the DC voltage, and the black the DC ground
The green one is the FG (Frequency Generator) which is a feedback signal from the encoder sensor and the yellow one allows you to change the direction of the rotation.
The blue one is the PWM (Pulse Width Modulation). The PWM signal, allows you to change the speed by varying the duty cycle. If you are not familiar with this I suggest checking this blog: