Back to Browse

PIC16F877A interface Potentiometer using Formula method Tutorial. Uses MikroC code and Proteus Simu

3.0K views
Dec 11, 2022
25:49

Guys, My lectures are free for everyone. If you want to support my channel, then become a Youtube member by following link below: https://www.youtube.com/channel/UCpdIWTTY36Dhyb20V4EnMiA/join Seek knowledge from the cradle to the grave /// /////////////////////////////////////////////////////**********************************///////////////////////////////// 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- https://www.udemy.com/course/pic16f877a-interface-lm35-temp-sensor-mikroc-collection 2- https://www.udemy.com/course/mikroc-for-pic-libraries-with-examples-using-pic16f877a-mcu 3- https://www.udemy.com/course/mikroc-for-pic-libraries-with-examples-using-pic16f877a-mcu 4- https://www.udemy.com/course/pic-microcontroller-using-mikroc-for-pic-from-scratch 5- https://www.udemy.com/course/learn-arduino-uno-coding-using-arduino-ide ///////////////////////////////////////////////////// Hello guys, In this video you will learn how to control different systems using potentio meters like in speed control of motors or in generation of PWM etc you need this. One of my previous video do the same using polling method. Link of that video is as under. https://www.youtube.com/watch?v=UjSRWKai1Jw&t=18s Become a Patreon and support my channel using link below: https://patreon.com/user?u=81261678 MikroC for PIC programming of this video is as under: // Lcd pinout settings sbit LCD_RS at RC0_bit; sbit LCD_EN at RC1_bit; sbit LCD_D7 at RD1_bit; sbit LCD_D6 at RD0_bit; sbit LCD_D5 at RC3_bit; sbit LCD_D4 at RC2_bit; // Pin direction sbit LCD_RS_Direction at TRISC0_bit; sbit LCD_EN_Direction at TRISC1_bit; sbit LCD_D7_Direction at TRISD1_bit; sbit LCD_D6_Direction at TRISD0_bit; sbit LCD_D5_Direction at TRISC3_bit; sbit LCD_D4_Direction at TRISC2_bit; float read1; float read2; char read11[5]; void main() { LCD_Init(); Delay_ms(100); ADC_Init(); Delay_ms(100); Lcd_Cmd(_LCD_CURSOR_OFF); Delay_ms(100); Lcd_Cmd(_LCD_CLEAR); Delay_ms(100); while(1) { read1 = ADC_Read(0); Delay_ms(100); read2 = (read1/1024)*100; // (obtained marks / total marks) * 100 = Percentage of your obtained marks Delay_ms(10); floattostr(read2,read11); Delay_ms(10); LCD_Out(1,1,read11); LCD_Out(1,6,"% "); Delay_ms(10); Delay_ms(200); } }

Download

1 formats

Video Formats

360pmp446.2 MB

Right-click 'Download' and select 'Save Link As' if the file opens in a new tab.

PIC16F877A interface Potentiometer using Formula method Tutorial. Uses MikroC code and Proteus Simu | NatokHD