Question

So I've decided to try my hand with coding and Arduino's. My project is a autonomous robot that will navigate itself using a HC-SR04 sonar module which will be using an Arduino Mega 2560 as the controller. I found a forum where a guy was working on the same idea that I had. I was able to get all of his code from him though it is in c#. And I know anything at all about c#.

Ive done some research and it seems that you can upload code in this case c# to the arduino via visual studio 2013, though I cant seem to figure it out. How can I take the code that I have which is complied in c# and upload it to the arduino mega 2560?

Now this c# code was written for a netduino 2 but I would like to be able to make it work on a arduino mega because that is my current hardware setup.

I have attached some pictures below of the folder structure where the c# code resides, could someone also tell me which files I should be using to upload to the arduino, is there a project file that house everything or do I have to compile this somehow first then upload it to the arduino?

Any help would be greatly appreciated, thank you

Project Home with Source Files

Level 1 of the Source folder

Level 2 of the Source folder

Was it helpful?

Solution

As far as I know Arduino is programmed in C. What you can do is to install an add-on in Visual studio that allows you to use VS as IDE for Arduino making the life easier if you are writing your program in c# to interface with Arduino. Moreover the add-on allows you to test with the debug features of VS. The add-on is called visualmicro.

Licensed under: CC-BY-SA with attribution
Not affiliated with StackOverflow
scroll top