Working with Analog Input and PWM
In the previous chapter, we learned how to work with the files stored on Micro:bit using MicroPython.
This chapter will explore how to use analog components and interface them to analog pins on the Micro:bit. We will also explore using various analog devices, such as a potentiometer, a joystick, a Pulse-Width Modulation (PWM) signal, a servo, a photoresistor, and various functions supported by Micro:bit for analog applications.
In this chapter, we will cover the following topics:
- Micro:bit analog pins
- Potentiometers
- Photoresistors
- PWM signals
- Servo motors using PWM
- Handling multiple analog devices
- PWM using RGB LED
- Joysticks
Let’s explore the analog input and PWM with Micro:bit and MicroPython.