© 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_4

4. The Joystick and the Stepper Motor

Hubert Henry Ward1  
(1)
Leigh, UK
 

In this chapter, we will look at a simple joystick module and a small stepper motor. The joystick program will use two analog inputs to the PIC and output the results to the LCD showing the position of the joystick in the x and y axes. This means we will investigate the use of the ADC and how to control an LCD display.

The second part of this chapter will investigate the control of a stepper motor. It will also combine the output of the joystick in controlling the position of a ...

Get Programming Arduino Projects with the PIC Microcontroller: A Line-by-Line Code Analysis and Complete Reference Guide for Embedded Programming in C now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.