Go Down

Topic: How to run Arduino on Visual Studio C#? (Read 2370 times) previous topic - next topic

stop_on_top

I already have visualmicro working on Visual Studio and Arduino software.

Do I add the .ino in my C# project on VS or upload it from Arduino software? VS gives an error "No Source Available" if I don't add.

Do I debug my C# on VS after I upload .ino? Or how?

I really don't know where to debug and upload .ino and the C# project and the processes. But I've got some sample codes.

ookid

Why not simply use the Arduino IDE? It has built in debugging that works pretty well already, why make something harder than it needs to be.

stop_on_top

Im working on Kinect WPF to control Arduino.

robtillaart

How do you want the kinect and the Arduino to communicate?
- serial
- ethernet
- wifi
- intermediate PC (my guess)

In the past there was a VS integration for Arduino discussed here.
If you search - in the upper right corner - you should be able to find relevant threads.


Rob Tillaart

Nederlandse sectie - http://arduino.cc/forum/index.php/board,77.0.html -
(Please do not PM for private consultancy)

astrofrostbyte

Quote
ookid:  Why not simply use the Arduino IDE? It has built in debugging that works pretty well already,


@ookid , What sort of build in debugging are you using in the Arduino IDE ?.  I'm always interested in better ways of debugging with arduino.
Gear: Arduino- Uno,Due,Ethernet,  OLS, Buspirate, J-Link, TDS1002, Rigol DG1022

JT007

I have just installed it again after they upgraded the Debugger plugin.

sounds like you need to go into the visual studio options and set the INO and PDE extensions so that it knows to use them.
it is explained on the visual micro website.

http://www.visualmicro.com/post/2011/10/09/How-to-fix-Arduino-code-color-coding-fails-in-Visual-Studio-when-a-file-first-opens.aspx
http://www.visualmicro.com/post/2011/10/04/How-to-test-a-new-installation-of-Arduino-for-Visual-Studio.aspx

I know why you dont want to use the arduino IDE
even if the others dont get it + because we can

stop_on_top

#6
Mar 02, 2013, 10:47 pm Last Edit: Mar 02, 2013, 10:54 pm by Benita Reason: 1
AS I SAID ABOVE I'M WORKING ON KINECT SDK TO CONTROL AN ARDUINO. Where do I put the .ino project? in VS solution with .csproj or where? I have a .csproj contains Kinect code to control the input to the arduino. I also have .ino for the arduino. But how do I relate the .csproj and .ino?
Not to set up and the communication (cable/ethernet) is not a problem.

stop_on_top

#7
Mar 02, 2013, 10:58 pm Last Edit: Mar 02, 2013, 11:02 pm by Benita Reason: 1

In the past there was a VS integration for Arduino discussed here.
If you search - in the upper right corner - you should be able to find relevant threads.




Thank you. I found the forum for visual micro and registered. How do I mark your message as the answer?

Lakes

There are some youtube tutorials on the main Visual Micro page, here is a beginners tutorial.

http://www.youtube.com/watch?v=lUaQt6rMk1k

Go Up