Dear TS-Russell,
I am sorry. I do not ask about the motor-driver in my last post. I ask about the motor encoder wiring, please see photo in my last post. Could you please specify each wire of the encoder? Thank you.
Dear TS-Russell,
I am sorry. I do not ask about the motor-driver in my last post. I ask about the motor encoder wiring, please see photo in my last post. Could you please specify each wire of the encoder? Thank you.
Thank you, PaulZC. Three wires are soldered to the encoder board, please see the attached photo in my previous post. How to solder all the other pins? All the other pins are two small and non-standard. Thank you.
Hi Boris (@B ),
Please ask yourself “do I need SPI?”. The PWM output gives you the encoder angle. By measuring the time from the rising edge of the PWM signal, to the falling edge, you can read the angle without needing SPI. Your microcontroller will be able to measure the “high” time using a timer or interrupts.
I hope this helps,
Paul
Hello, PaulZC. Thank you. However, I am slightly confused. How can the encoder AS5048A “see” the rising or falling edge of the PWM signal? The encoder is based on internal Hall Effect sensors which react to the rotating magnetic field of the diametrical magnet. Thank you.
The AS5048A encoder produces the PWM signal. The PWM signal is an output from the AS5048A.
The encoder OUTPUTS the PWM signal…which is generated how you described (hall effect sensors undergo a voltage change when a moving magnetic field induces such)
Thank you, PaulZC and TS-Russell. PWM is also used to send signals to the 3-Phase BLDC motors. Those signals make the motor’s rotor rotate. That’s why it is confusing.