This repository contains test projects I used to learn how to setup and control the PWM controller in the Raspberry PI 2/3
- Lightning Driver Setup Guide
- How to Fade an LED with PWM in Windows IoT
- A servo library in C# for Raspberry Pi 3 - Part #1, implementing PWM
- Wikipedia entry for PWM
- Raspberry PI 2/3 with the latest Windows 10 IoT Core Insider Preview
- Raspberry PI 2/3 setup with the Direct Memory Mapper Dirver
- Visual Studio 2015 Comunitiy Edition or better
- Windows 10 SDK 10.0.10586.0
- Microsoft.Iot.Lighting (From Nuget)
The PwmTest project has the code to setup two GPIOs (13,18) for PWM output. When the application runs, it displays 2 sliders to control the GPIO output.
Here is a table with the GPIO pins that can be used for PWM:
GPIO | PWM channel | Harware supported |
---|---|---|
12 | 0 | A+/B+/Pi2/Pi3/Zero and compute module only |
13 | 1 | A+/B+/Pi2/Pi3/Zero and compute module only |
18 | 0 | All models |
19 | 1 | A+/B+/Pi2/Pi3/Zero and compute module only |
40 | 0 | Compute module only |
41 | 1 | Compute module only |
45 | 1 | Compute module only |
52 | 0 | Compute module only |
53 | 1 | Compute module only |
The TestL298NMotorController project has a screen with sliders and buttons to test each of the motors attached to a L298N Motor Drive Controller. This test includes using PWM outputs to control the motor speed. This project was helpful when building the Windows 10 Iot Rover