Without web programming, we can control DC motor car via web.
Project tutorial by IoT_lover
Control DC motor using PID controller via web.
View Arduino Serial Monitor and Serial Plotter on a smartphone over WiFi without installing any mobile application.
This video tutorial shows you how to program line by line.
Project tutorial by phpoc_man
Remotely control door via web with pattern password protected. Your door is securely controlled from anywhere through Internet.
If door is opened, Arduino sends a message to your Facebook Messenger.
Hi Dan Murphy,
Unlike step motor, DC motor itself does not have mechanism to control its position.
If we supply power to motor, motor just rotates until we stop supplying power. The more power, the faster it rotates. Therefore, position of DC motors is decided by the power we put on it. So, to control position of DC motor, we needs to control its power supply.
There is no information that how many watt we should supply to make DC motor move to a specific position.
What we can do is:
- supply a amount of power in short time.
- observe the how fast the motor rotates and current position
- increase or decrease power based on the the observation
Repeat this process until DC motor reaches the desired position and then stop supply power.
That is how PID controller works.
You can imagine:
"DC controller controlled DC motor do a desired position" like "Driver drive car to a desired position"
For more information, you can refer to https://forum.phpoc.com/blogs/iot-lover/1289-arduino-pid-controller-auto-tuning-library-and-example-for-dc-motor
I am sorry for late reply. I did NOT get notification from your comment.
Of course it can. you can replace the warning lights & electric horns with led and buzzer only.
By that way, you do NOT need to use relay.
I am sorry for late reply. I have no knowledge with NodeMCU
Or connect with your social account:
New here? Create an account