GPIO generally only supports discrete outputs.
But for some types of hardware, like LEDs and some motors, the system has some inertia, and if you switch on and off fast enough, you get a result similar to having an intermediate voltage.
So with pulse width modulation we can fake analog output from digital output in a good enough manner.
Notably used to connect:
- pin headers
- breadboard holes
You can buy large sets of them in combitation of male/male, male/female, female/female. Male/male is perhaps the most important
These often come pre-soldered on devboards, e.g. and allow for easy access to GPIO pins. E.g. they're present on the Raspberry Pi 2.
Why would someone ever sell a devboard without them pre-soldered!
Allows you to connect two adjacent pins of a pin header. Sometimes used as a hardware configuration interface!
Articles by others on the same topic
There are currently no matching articles.