Click here to Skip to main content
15,885,985 members
Articles / Internet of Things / Raspberry-Pi / RaspberryPi4

Interface with Raspberry Pi I2C Sensors, Using .NET/Blazor

Rate me:
Please Sign up or sign in to vote.
5.00/5 (11 votes)
5 Jan 2021CPOL12 min read 13.4K   183   18  
Using a Blazor Server, running on a Raspberry Pi, to display output from an MCP9808 I2C sensor
The Raspberry Pi can host a Blazor server to interface with sensors using the Runtime.InteropServices, accessing the Linux C libraries. First from a Console application, then with Blazor Server. I will also demonstrate adding a simple HTML meter to provide a little GUI. There are many third party gauge controls available, many are free, if you don't want to roll your own.

Views

Daily Counts

Downloads

Weekly Counts

License

This article, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)


Written By
Software Developer
United States United States
Been around forever. Wrote my first "program" in 1964. Spent many years supporting process control systems. Would have retired but never got around to putting comments in my code.

Comments and Discussions