Hi all. I am fairly new with NI-DAQ and Labview, doing a project to control the position of a DC motor by using a Labview software, NI USB-2611 and Throttle Position Sensor. The motor is controlled by analog I/O. Not by PWM.
My software and hardware set-up are as follows:
- A 24 Volt DC Planet Geared Motor without encoder (I could not find the exact type of motor but it looks similar like this : https://www.alibaba.com/product-detail/OEM-manufacturer-45mm-12V-24V-small_60712860874.html )
- A motor driver : SmartDriveDuo-10 (https://www.cytron.io/p-mdds10)
- NI USB-2611
- Throttle Position Sensor - Model 981 HE (https://www.mouser.com/new/vishay/vishay981sensor/)
- Labview Software 2014.
I am planning to design a PID controller by making this: https://www.youtube.com/watch?v=fkbt85mBzuM as the reference. I had followed step-by-step, checked all the connections, tested both motor and sensor; They were all working, meaning my connections were correct.
However, when I ran the vi block diagram, the motor kept rotating and the sensor produced saw-tooth type signal. What I wanted was the motor would have rotated in the range of 0 - 360 degree only. I believe the sensor works different way as compared to the sensor in the YouTube video.Meaning I cannot simply follow the connection of PID as shown in the video. I tried to find out how that sensor works on YouTube, google, or here but unfortunately it is rarely used, I guess.
Therefore, I seek for help if anyone knows how this TPS works and I have attached my vi for reference. Thank you in advance.
Best regards,
Rahman.