Quantcast
Channel: ASP.NET Core
Viewing all articles
Browse latest Browse all 9386

Controlling Raspberry Pi 3 GPIO from .NET Core 2.0 app

$
0
0

Hi, I'm working on a school project and I just got confused with all the technology out there.

The project consists (at least that's what I imagine at the moment) of:

  1.  Hardware part - Raspberry Pi 3 currently running Widows 10 IoT + connceted hardware (temperature sensors, relays..)
  2. Software part:
    • ASP.NET MVC application used for controlling the device and viewing sensor measurements and so on
    • .NET Core 2.0 app running on Raspberry Pi 3 - WebApi

My idea is that Rpi3 will expose WebApi that will be used to obtain current device status, switch on/off the relays connected to Rpi3 via GPIO. I have created my project as ASP.NET Core Web , .NET Core, ASP.NET Core 2.0, WebApi application. I have followed this tutorial

I chose the .NET Core because I though It would be kind of cool to have some cross platform base avalible. Aaand here comes the problem, I wanted to use Microsoft's tools to control the GPIO of Rpi3 wich seems to be a problem (UWP..). The other option is to use Jeremy Lindsay's project Bitfrost.  The description says "Bifröst is a project for developers who want to write .NET Core 2 applications that use IoT devices, and want to target Ubuntu and Windows with the same code." and I'm not sure I want/need that. The Rpi3 will probably only be running Windows 10 IoT.

As you have probably noticed I am not sure about my ".NET Core choice". Could you please help me choose the technology stack to suit my needs? I liked how ASP.NET project took care of controller api and stuff. I spent couple of days just trying to find the perfect combination but ended up just getting confused even more.

I hope I chose the correct forum for my post. It's probably not perfect - if there is any important info I forgot to mention, please ask. I will probably refresh this page every couple minutes and try to add information needed as soon as possible. Thank you 

 

                                       


Viewing all articles
Browse latest Browse all 9386

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>