C# for Arduino? Mech Major Questions EE/CS

  • Thread starter Thread starter pyroknife
  • Start date Start date
  • Tags Tags
    Arduino
Join the discussion
Registration is free. Ask a follow-up in this thread, or start your own.
5 replies · 4K views
pyroknife
Messages
611
Reaction score
4
Although I'm a mech major, I feel asking this in the EE section is more approparite or a CS section if there was one.

I haven't had much experiencing with arduino circuit boards and C, C#, or C++ programming. Next semester, I will take a mechatronics class. This will involve considerably programming. There will be a project and I'm thinking of using an arduino.

Do you guys know if C# can be used to program an arduino or is it limited to C and C++?
 
Engineering news on Phys.org
I've recently purchased an Arduino and have been going through a set of online tutorials. The language looks and feels like a small subset of Java. Here are the Arduino tutorials that I'm looking at if you're interested. The first six don't require much more than the Arduino, a breadboard, and very basic parts.
 
Borg said:
I've recently purchased an Arduino and have been going through a set of online tutorials. The language looks and feels like a small subset of Java. Here are the Arduino tutorials that I'm looking at if you're interested. The first six don't require much more than the Arduino, a breadboard, and very basic parts.

Thanks. I've talked to a few other people and they said you can use C to program an arduino. Any verification on that?
 
pyroknife said:
Thanks. I've talked to a few other people and they said you can use C to program an arduino. Any verification on that?
According to the Arduino wiki page:
Arduino hardware is programmed using a Wiring-based language (syntax and libraries), similar to C++ with some slight simplifications and modifications, and a Processing-based integrated development environment.
However, in the software section:
The Arduino IDE is a cross-platform application written in Java
From what I've read this morning, it looks like the code is written in a Java language but is compiled under the hood using C++. Sorry that I couldn't be of more help. Perhaps the Arduino forum could answer your question better.
 
Last edited:
Arduino is a platform using Processing language (simplified C) and a customised bootloader.

What you're referring to more specifically is that the chip in it, the ATMEGA328 or variant of Atmel's series can be programmed via C.

However the arduino has its own bootloader that allows you to program with serial and hence through the usb device on the arduino. If you want to program with C, you'll have to do it through the ICSP header with a special programmer.

But anyway, in the arduino software, you can put in fragments of C code in there, however I'm not entirely sure of the extent that you can do with it.