Hello,
I am currently working on a project involving a DC motor and a microcontroller. My goal is to connect the tachometer output of the motor to the digital input of the microcontroller, but I don't know how. I've tried a few different things such as using optocouplers and resistors, but with no success.
The microcontroller in use is the Siemens CPU1214C DC/DC/DC, and its digital inputs are configured as sinking inputs. Given the high frequency of the tachometer signal, HSC digital inputs are used. The power supply is 24VDC and 0VDC.
What exactly am I doing wrong? Could it be due to the inputs being configured as sinking inputs instead of sourcing?
Do I need additional resistors to increase the current? Or perhaps a pull-up or pull-down resistor? And, what about an optocoupler? Originally, I used it because the signal voltage is too low to switch the microcontroller's input. Also, the experiment didn't work out because the maximum switching frequency of the optocoupler was too low.


Link: https://docplayer.net/26224780-Pmd24-48-oem-bldc-motor-drive.html
Any assistance is deeply appreciated. Thank you for your time and patience.
-Kaladin
I am currently working on a project involving a DC motor and a microcontroller. My goal is to connect the tachometer output of the motor to the digital input of the microcontroller, but I don't know how. I've tried a few different things such as using optocouplers and resistors, but with no success.
The microcontroller in use is the Siemens CPU1214C DC/DC/DC, and its digital inputs are configured as sinking inputs. Given the high frequency of the tachometer signal, HSC digital inputs are used. The power supply is 24VDC and 0VDC.
What exactly am I doing wrong? Could it be due to the inputs being configured as sinking inputs instead of sourcing?
Do I need additional resistors to increase the current? Or perhaps a pull-up or pull-down resistor? And, what about an optocoupler? Originally, I used it because the signal voltage is too low to switch the microcontroller's input. Also, the experiment didn't work out because the maximum switching frequency of the optocoupler was too low.


Link: https://docplayer.net/26224780-Pmd24-48-oem-bldc-motor-drive.html
Any assistance is deeply appreciated. Thank you for your time and patience.
-Kaladin