How do analog signals get converted into digital data? In part 6 of .NET IoT for Beginners, Microsoft Sr. Content Developer Cam Soper explores Analog-to-Digital converters (ADCs) with single-board computers and the .NET IoT libraries. Cam then shows how he uses a Raspberry Pi and an MCP3008 ADC for one of his favorite activities: BBQ with .NET!
Series:
Part 1 - https://youtu.be/SV08PVtAHrc - Intro to .NET IoT with Single Board Computers and Raspberry Pi
Part 2 - https://youtu.be/bJSSU5YuHKg - Deploy .NET apps to single board computers and debug remotely
Part 3 - https://youtu.be/VbuBpRrvYeY - General Purpose Input/Output GPIO output control devices with .NET
Part 4 - https://youtu.be/e_2DCBpwgWw - General Purpose Input/Output: Read input with GPIO and .NET
Part 5 - https://youtu.be/Zqttrk3FiCg - IoT sensors and displays with I²C and .NET
Part 6 - https://youtu.be/ZoiMCrLGw6M - Convert analog signals to digital data with .NET
Code:
- Read values from an analog-to-digital converter (source) - https://github.com/MicrosoftDocs/dotnet-iot-assets/tree/main/tutorials/SensorTutorial
- Ads1115 example - https://github.com/MicrosoftDocs/dotnet-iot-for-beginners/tree/main/6-adc-spi/code/Adc
- RTD probe example - https://github.com/MicrosoftDocs/dotnet-iot-for-beginners/tree/main/6-adc-spi/code/temperature
Links:
- Read values from an analog-to-digital converter (tutorial) - https://learn.microsoft.com/dotnet/iot/tutorials/adc
- Iot.Device.Adc.Mcp3008 Class - https://learn.microsoft.com/dotnet/api/iot.device.adc.mcp3008?view=iot-dotnet-latest
- Iot.Device.Ads1115.Ads1115 Class - https://learn.microsoft.com/dotnet/api/iot.device.ads1115.ads1115?view=iot-dotnet-latest
- Iot.Device.Max31865.Max31865 Class - https://learn.microsoft.com/dotnet/api/iot.device.max31865.max31865?view=iot-dotnet-latest
- Cam Soper's Inferno smoker project - https://github.com/CamSoper/Inferno
- Home Assistant - https://www.home-assistant.io
- MQTTnet - https://github.com/dotnet/MQTTnet
- .NET Docs GitHub repo - https://github.com/dotnet/docs
- .NET IoT Libraries documentation - https://learn.microsoft.com/dotnet/iot/
- More .NET Beginner Series Videos: https://dot.net/videos
- .NET YouTube - https://youtube.com/dotnet
- .NET on Twitter - https://twitter.com/dotnet
Follow Cam:
- Cam on GitHub: https://github.com/CamSoper
- Cam on Twitter: https://twitter.com/CamSoper
#dotnet #iot #csharp #raspberry-pi
Blog: https://aka.ms/dotnet/blog
Twitter: https://aka.ms/dotnet/twitter
TikTok: https://aka.ms/dotnet/tiktok
Mastodon: https://aka.ms/dotnet/mastodon
LinkedIn: https://aka.ms/dotnet/linkedin
Facebook: https://aka.ms/dotnet/facebook
Docs: https://learn.microsoft.com/dotnet
Forums: https://aka.ms/dotnet/forums
🙋♀️Q&A: https://aka.ms/dotnet-qa
👨🎓Microsoft Learn: https://aka.ms/learndotnet
0:00 - Greeting and introduction
0:33 - MCP3008
0:50 - Potentiometers
1:14 - Connecting a MCP3008
2:23 - Creating and running the Adc app
4:44 - Connecting an ADS1115
5:22 - Modifying the app for ADS1115
7:15 - Inferno, the .NET-powered BBQ smoker
9:28 - Using an RTD to detect temperature
13:38 - Series conclusion (at least for now)