You can find the full workshop in the .NET Conf Student Zone 2022 repository.
In this workshop, we will discuss IoT with .NET.
Goal | Create an app to track your water consumption using IoT in .NET |
---|---|
What will you learn | IoT, .NET, C# |
What you'll need | .NET SDK, Visual Studio |
Duration | 1 hour |
Microsoft Cloud Topics taught | Azure |
Just want to try the app or see the solution? | Solution |
Slides | Powerpoint |
I2C devices require two lines (or cables or connections):
- SDA - data line, it may be sometimes called SDI
- SCL - clock line, it may be sometimes called SCK
on top of that each device needs power source:
- GND - ground - sometimes marked with minus sign
- VCC - voltage collector - it has higher voltage with respect to ground, typically it's 3.3 or 5V, it may be also marked as VIN (input voltage)
Have you ever wanted to track the amount of water you drink each day? Let’s build prototype of smart bottle - we need to tell how much water was consumed Where do we start? We need a sensor and something to connect it to. For this workshop we will use .NET IoT!
add a screenshot of the completed project
- Milestone 1: Setup and connect your I2C IoT devices
- Milestone 2: Connect your IoT devices to your PC
- Milestone 3: Design the "smart water bottle"
- Milestone 4: Write the code to detect your water consumption!
- Read from the accelerometer and weight sensors
- Set up auto-detection to store the timestamp, weight, and acceleration anytime we drink, refill, or move our bottle
Use the data collected in this workshop to build a Machine Learning project to make water consumption predications in the ML.NET Water Consumption Predictions Workshop.
Be sure to give feedback about this workshop!