In this post, we 'll learn the DC motor control using PWM signal. We learned how to generate PWM signal using PIC 16F84 Microcontroller.
Hardware :
The PWM signal drives a 2N2222 transistor which acts as an electronic switch. The transistor switches the motor driving current on and off at high rate.
In the following figure, there are two circuits. The control circuit ( the microcontroller ) and the driving circuit ( the motor and the transistor ).
The DC motor draws relatively high current than the current in the microcontroller circuit. The transistor isolates the two circuits.
By changing the duty-cycle of the PWM signal, we get different average DC voltage
for each duty-cycle value . The result is the change of the motor speed corresponding to that duty-cycle.
Software:
We use the PWM routine with two defined duty cycle values. The duty cycle value duty1 is the larger value which drives the motor faster than duty2 value. When the Boost button is pressed, the first duty cycle value is selected. When the button is released, the second value is selected.
The software routine is very simple. As usual, you can download the Proteus 7 model from here.
If you need any help or have any feedback, just let me know.
If you like this blog you can support us by many ways:
1. Leave comments stating your point of view about this article.
2. Buy our book on Amazon Learn By Making.
3. Click on links of our sponsors without adding any extra cost on you if you make purchase from them. Actually, many of these offers are totally free.
This means that you can enjoy something for free and still support our blog to keep posting useful stuff.
Amazon.com - Read eBooks using the FREE Kindle Reading App on Most Devices
This is the well-know Amazon Kindle platform. If you sign up for the free reader from Amazon to read any book, we get commission.
There are many useful book for free on Amazon Kindle. Even you can find best sellers offered for free on Kindle format.
The best part is you can have the application on any platform. You can even read any book without installing any application by using Amazon Cloud-Reader on your browser.
Join Amazon Kindle Unlimited 30-Day Free Trial
You can join Amazon Kindle for 30 days free to have access to many paid book for free. You can cancel you subscription anytime.
Try Amazon Prime 30-Day Free Trial
The Amazon Prime is a special paid service from Amazon that offers good promotions and one-day free shipment for Amazon Shoppers. You can try this service for 30 days. You can cancel you subscription anytime.
Shop Amazon - Give the Gift of Amazon Prime
Try Audible and Get Two Free Audiobooks
Audible is the audio books website from Amazon. Many Kindle books are sold on Audible. You can try this service for free and get 2 free book. You can cancel you subscription anytime.
Shop Amazon - Create an Amazon Baby Registry
If you have a new baby borne or expecting one, you can create your free baby registry to easily save products and get offers and promotions on baby requirements.
Thank you for visiting our blog.