I'm working on a project which will use 8051 microcontroller to control a dc motor for this I'll be using PWM. I have code for the same, which i found on internet. Running the code on software was easy but how do i implement the same on hardware (i can't use ready-made kit to run it as per the instructions given by the college). Code is attached below. We can change the duty cycle by changing the value of msec but how to change duty cycle using potentiometer just like what we do in other circuits.
I have the schematic of the 8051 dev board...
How to upload the code on the board and control the speed of motor?
I have the schematic of the 8051 dev board...
How to upload the code on the board and control the speed of motor?
Attachments
-
15.5 KB Views: 7
-
514.2 KB Views: 9