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 ...