Professional Documents
Culture Documents
DC Motor Speed Control PID
DC Motor Speed Control PID
by AnnaMai
To make this project, you will need following 3. Arduino UNO https://amzn.to/2P58O7s
hardware:
4. Motor base http://bit.ly/2DZJOZV
1. Motor with encoder https://amzn.to/2RHsCRj
The motor with encoder, you can choose any DC
2. H-bridge L298 https://amzn.to/2QS2FeI motor but you need to know how many pulse of
encoder per revolution. In case you don't know, you Arduino UNO, and Visual Studio to make HMI on
can make simple program with Arduino, then rotate computer In my case, I use Visual Studio 2008, you
motor shaft to know how many pulse of encoder per can use newest version if you can
revolution. In my case, it is 200 pulses per revolution.
Make circuit like this diagram, it's easy for Arduino fan: encoder from motor will connect to pin 2 and 3; H-bridge is
used to control motor speed, then pin 4, 5 and 6 will connect to H-bridge. And, output of H-bridge is connected to
motor
Note that, communication between Arduino and Visual Studio by COM communication