Skip to content

PRO TIP Block youtube.com at the DNS level β€” Pi-hole, NextDNS or your hosts file β€” but allow youtube-nocookie.com and i.ytimg.com. These tutorials keep playing; the rabbit hole does not.

Learning without distractions

Controlling A Servo with PWM & Timer 2 πŸ”΄ PIC Microcontroller Programming Tutorial #14 MPLAB in C

6.8K views on YouTube

In this PIC programming tutorial I will demonstrates how to control a servo via the uart using the PWM peripheral. Using the XC8 compiler with MPLAB X and a PIC18F4520 PIC microcontroller.

Git Repository
https://github.com/Devilbinder/PIC_18F_SERVO_CONTROL

βž₯βž₯βž₯ SUBSCRIBE FOR MORE VIDEOS βž₯βž₯βž₯
https://www.youtube.com/bindertronics?sub_confirmation=1

Facebook β–Ά https://www.facebook.com/BinderTronics
Twitter β–Ά https://twitter.com/BinderTronic

Part List β–Ά https://bindertronics.com/shop

β˜•Coffee Fundsβ˜•
Shekels
https://www.paypal.me/bindertronics9/5
Patreon
https://www.patreon.com/BinderTronics
Bitcoin
19nohZzWXxVuZ9tZvw8Pvhajt5khG5mspW
Ethereum
0x5fe29789CDaE8c73C9791bEe36c7ad5db8511D39

00:00 Intro
00:10 PIC Microcontroller Schematic
00:24 How A Servo Works
01:07 PIC Microcontroller Schematic
01:26 PIC Microcontroller Datasheet
03:57 Code Overview
05:43 PWM Servo Code
08:26 PWM Servo Demo
08:40 Outro

#picprogramming #picmicrocontroller #MPLAB