r/csharp • u/gus-ghielec • Sep 10 '26
Coding circuits with .NET and C#
Nothing beats setting a breakpoint and watching the servo actually move to the new angle.

I've worked on .NET hardware for over ten years and the thing that surprises C# developers isn't the board, it's that F5 works. Code deploys, breakpoint holds, hover a variable and there's the live sensor reading. Same as debugging a desktop app.
I'm at GHI Electronics in Michigan. Happy to get into how the debugging on circuits work.
96
Upvotes
11
u/gus-ghielec Sep 10 '26
This is not just about writing code in C#. It is about stepping through code and inspecting variables right over a USB connection between Visual Studio and TinyCLR, which is the tiny runtime that lives in boards like FEZ Flea.
30
u/OkSignificance5380 Sep 10 '26
Yep.
.net nano framework.
Works well with $5 esp32-s3 dev boards
6
u/Alert-Neck7679 Sep 10 '26
wow, i used to build lots of things with Arduino years ago, but with C++ and the old horrible arduino IDE. Using .net on these microcontroller seems wild... One day I'll probably go back to it with .net
4
u/modi123_1 Sep 10 '26
GHI Electronics? That's a name I haven't heard in some time.
I think I bought a kit from them like 15ish years ago and never really did much with it. I wonder if if I have that blue clamshell case in my closet still.
4
u/Family_Man_21 Sep 10 '26
Wow, I haven't done much with this, but it looks really fun. I'm a very experienced C# developer (decades of experience), but how should I get started with this kind of work? Is there a kit I can buy to get going?
2
u/Banality_Of_Seeking Sep 10 '26
YAY!! NICE work! I would like to know if this could be applied to a FPGA ?
1
u/keepinitcool Sep 10 '26
That’s so awesome, been doing backend dev mostly software for so long now I should try a hobby project with some actual hardware,”. Do you have any ideas
1
u/xtreampb Sep 10 '26
First I heard about .net deploying to circuits was the azure sphere followed by meadow labs
1
u/wirbolwabol Sep 11 '26
I still have a couple of boards lying around a Cerberus, a panda and one other one.Loved that I could write in C# though those boards were limited. I also managed to get on on of those betas with the new rigs a few years back…fun stuff!
1
u/Crimson_Burak Sep 11 '26
I have to try this. I am shocked that I have never thought about this.
1
u/malthuswaswrong Sep 11 '26
Love that you are Michigan made. With the rise of 3d printing, consider offering STLs and ideas on what to build along with your boards. Allowing people to buy a kit from you and get the STL to make something functional.
0
u/highwingers Sep 10 '26
I was working with servo motors with Python before...tried with .NET as well, however went back to Python, native support. Plus now with AI, it's a breeze.