Skip to Content
Programming Arduino Projects with the PIC Microcontroller: A Line-by-Line Code Analysis and Complete Reference Guide for Embedded Programming in C
book

Programming Arduino Projects with the PIC Microcontroller: A Line-by-Line Code Analysis and Complete Reference Guide for Embedded Programming in C

by Hubert Henry Ward
September 2021
Intermediate to advanced
733 pages
12h 17m
English
Apress
Content preview from Programming Arduino Projects with the PIC Microcontroller: A Line-by-Line Code Analysis and Complete Reference Guide for Embedded Programming in C
© The Author(s), under exclusive license to APress Media, LLC, part of Springer Nature 2022
H. H. WardProgramming Arduino Projects with the PIC Microcontrollerhttps://doi.org/10.1007/978-1-4842-7230-5_5

5. DC Motors

Hubert Henry Ward1  
(1)
Leigh, UK
 

In this chapter, we will look at how the PIC can be used to vary the speed of a DC (direct current) motor. This will involve creating a square wave output and varying the mark, or on, time of the waveform. This is termed PWM (pulse width modulation). We will learn how we can use the output of a variable resistor to vary the speed of the DC motor.

We will then move on to the servo motor. We will learn how it works and how we can use the PIC to vary the position of the servo. This will initially use the ...

Become an O’Reilly member and get unlimited access to this title plus top books and audiobooks from O’Reilly and nearly 200 top publishers, thousands of courses curated by job role, 150+ live events each month,
and much more.
Start your free trial

You might also like

C Programming for the PIC Microcontroller: Demystify Coding with Embedded Programming

C Programming for the PIC Microcontroller: Demystify Coding with Embedded Programming

Hubert Henry Ward

Publisher Resources

ISBN: 9781484272305Purchase LinkPublisher Website