Episode
General Purpose Input/Output: Use GPIO output to control devices with .NET (Part 3 of 6) | .NET IoT for Beginners
with Cam Soper
Note
This video was produced using .NET 7. The code samples featured in this video have been updated on GitHub to use .NET 8. Ensure you are using the .NET 8 SDK when compiling the samples. For more information, refer to the .NET IoT docs.
In part 3 of the series, Microsoft Sr. Content Developer Cam Soper shows you how to use the pins on an single-board computer (like Raspberry Pi) to control external devices. Starting with the basics of the General Purpose Input/Output (GPIO) header, Cam demonstrates how to use a breadboard and a GPIO breakout board to create a simple LED circuit. Then, using the .NET IoT Libraries, he shows how to blink the LED. After that, he takes it up a notch by demonstrating how to use a relay to control a larger device like a light bulb or a fan. Join Cam as he walks you through this IoT equivalent of "Hello, World!"
Chapters
- 00:00 - Greeting and introduction
- 00:25 - The GPIO header
- 00:49 - Breadboards
- 02:10 - LED circuit
- 03:14 - Creating the Blink app
- 05:50 - Testing the app
- 06:15 - Relays
- 08:55 - What's next
Code
Recommended resources
- Blink an LED (tutorial)
- System.Device.Gpio.GpioController Class
- .NET IoT Libraries GitHub
- .NET IoT Libraries Documentation
- More .NET Beginner Series Videos
- .NET YouTube
- .NET on Twitter
Connect
Note
This video was produced using .NET 7. The code samples featured in this video have been updated on GitHub to use .NET 8. Ensure you are using the .NET 8 SDK when compiling the samples. For more information, refer to the .NET IoT docs.
In part 3 of the series, Microsoft Sr. Content Developer Cam Soper shows you how to use the pins on an single-board computer (like Raspberry Pi) to control external devices. Starting with the basics of the General Purpose Input/Output (GPIO) header, Cam demonstrates how to use a breadboard and a GPIO breakout board to create a simple LED circuit. Then, using the .NET IoT Libraries, he shows how to blink the LED. After that, he takes it up a notch by demonstrating how to use a relay to control a larger device like a light bulb or a fan. Join Cam as he walks you through this IoT equivalent of "Hello, World!"
Chapters
- 00:00 - Greeting and introduction
- 00:25 - The GPIO header
- 00:49 - Breadboards
- 02:10 - LED circuit
- 03:14 - Creating the Blink app
- 05:50 - Testing the app
- 06:15 - Relays
- 08:55 - What's next
Code
Recommended resources
- Blink an LED (tutorial)
- System.Device.Gpio.GpioController Class
- .NET IoT Libraries GitHub
- .NET IoT Libraries Documentation
- More .NET Beginner Series Videos
- .NET YouTube
- .NET on Twitter