Hello guys,
Welcome to Learning Microcontrollers youtube Channel,
Guys I have also compiled course on Udemy as well. Where you will learn under my direct supervision in a more supervised way.
Here is the links to the courses I have on Udemy, By taking any of these courses you will be supporting my channel aswell.
This will help me to make more videos with better hardware in the future. I hope you look forward to it.
Courses Links:
1- [ Ссылка ]
2- [ Ссылка ]
3- [ Ссылка ]
4- [ Ссылка ]
5- [ Ссылка ] ///////////////////////////////////////////////////// Hello guys,
Speed control of DC motor especially in the field of robotics and other mobile applications is very crucial. For that purpose this tutorial will be of great help. It teaches you how you can control the speed of a DC motor using potentiometer, which in turn drives the PWM of PIC.
Link to previous video of same playlist:
[ Ссылка ]
Link to how to setup your PIC microcontroller for programming :
[ Ссылка ]
MikroC code of current video:
float pot;
float per;
void main() {
ADC_Init();
Delay_ms(10);
PWM1_Init(5000); /// 5000 = 5khz
Delay_ms(10);
while(1)
{
pot = ADC_Read(0); //// 10 bit ADC so 2^ 10 = 1024 max value
per = pot /4.1; ///
PWM1_Start();
Delay_ms(200);
PWM1_Set_Duty(per); //// max duty = 255
}
}
Ещё видео!