Hi guys. I'm currently studying in electrical engineering program; however, my knowledge about circuits is kinda limited and I know this question is asked over and over again but, please, understand that I have found a lot of similar topics, none of them satisfied me completely. So, I'm working on an analog PID controller for DC motor speed control (why analog you may ask, I have done a digital one. Atm, I kinda want to try analog and compare them). My DC motor is attached with a optical encoder so it's quite tricky, the idea is to connect this encoder with my arduino board (interrupt pin) and have the arduino putting out PWM signal (this is convenient for me because I also want to send actual speed data to PC). The first thing I found is adafruit MCP4725 but it's not available in my place; hence, I looked for other solutions. I am now considering using an active low-pass filter at the PWM output but not quite sure how to calculate parameters (my motor speed is roughly 100 rounds per secs, my optical has 44 ppr so it is approx. 4kHz). I want the DC output to be in 0-5VDC, however, in some places, they said that if i put a 5 Vpp into opamp, I will only get 3.6V maximum at the output.
Can you guys confirm my idea is valid and help me calculate parameters?
If my idea is not okay, I can use some common packaged DAC, can you guys provide me some example with these DAC?
Thanks
Can you guys confirm my idea is valid and help me calculate parameters?
If my idea is not okay, I can use some common packaged DAC, can you guys provide me some example with these DAC?
Thanks