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 ///////////////////////////////////////////////////// #electronics #arduino #arduinoproject #project #microcontroller #circuitdiagram #circuitdiagram #simulator #simulation #proteus #proteus8 #pic16f877a #arduinotutorial #electronictutorial #embedding #embeddedprojects #embedded_system #embeddedprojectcenters #embedded_system #diy #diycrafts #diyideas #diyproject #diyarbakır #toggle #toggleswitch #switch #bluetooth #hc05 #wireless
Arduino Code :
/// Ardunino UNO has 10 bit ADC
///// 2^10 = 1024 means 0 - 1023
int pot;
void setup() {
pinMode(3,OUTPUT);
}
void loop() {
pot=analogRead(A0);
//// PWM supports 8 bit i.e 2^8 = 256
/// means 0 - 255
//// so we divide ADC by 4
pot = pot/4;
analogWrite(3,pot);
}