C# for Arduino

Hi, I want to realize the great Sound Listener project with LEDs with Arduino. But I need C# code for this project. Unfortunately, I don't have C# program. What can I do? Do I must install software for C#? If yes, which? If Visual Studio, is there anything else?

C# is generally used to run .NET code. The Arduino does not run .NET.

So it is pretty unlikely your code is going to run on the Arduino. If you need C# on the PC side, that's not really an Arduino related question then.

No, I need C# code for making bridge with Arduino code. Another way: can you give me code example for Speech Recognition of Arduino?

ziyaddin:
No, I need C# code for making bridge with Arduino code. Another way: can you give me code example for Speech Recognition of Arduino?

Again what do you mean? Speech Recognition would be done on the PC.

You'd probably use C#'s serial functions to communicate with your Arduino, although, I'm really not sure how an Arduino fits.

Yes, I mean serial function of C#. Is it necessary, or there is another way to do it only with Arduino code?

ziyaddin:
Yes, I mean serial function of C#. Is it necessary, or there is another way to do it only with Arduino code?

Do "what"?

The Arduino's only interface to a computer, unless you build another, is a virtual Serial port. You could use a Leonardo or reprogram the Uno's ATmega8u2 to be another type of USB device, but that is a pretty intensive project.

So what are you trying to do? Use the Arduino's A/D to capture audio and process it on your PC? The A/D on the Arduino really isn't fast enough for high-quality audio.

Of course if you're trying to run code written for a PC (C#) and do lots of processing, the Raspberry PI or Netduino are probably better platforms for your project than an 8-bit Microcontroller with a few K of RAM.

? just want to make my Arduino recognize my voice and turn on the LED, if I say, for example, "turn on". For example, like this.

ziyaddin:
? just want to make my Arduino recognize my voice and turn on the LED, if I say, for example, "turn on". For example, like this.

The Arduino alone won't be able to do that. Voice recognition in 2K of RAM is extremely difficult (if not impossible). The best you could do is capture the Arduino with your Arduino, transfer to a PC, process it, and send a command back to the Arduino.

For that you'll need to learn how to transfer Serial data (there are C# and Arduino examples), capture Audio (there are Arduino examples on the web), and control LEDs (plenty of examples to do that).

Unless you're using a Due or Galileo (and the Due is questionable), the Arduino is not a good platform for speech recognition.

ziyaddin:
? just want to make my Arduino recognize my voice and turn on the LED, if I say, for example, "turn on". For example, like this.

You could do it on an Arduino using a VR shield, or do it on the PC (in which case all the Arduino would be doing is turning the LED on when the PC tells it to).

ziyaddin:
No, I need C# code for making bridge with Arduino code. Another way: can you give me code example for Speech Recognition of Arduino?

you may take a look on this voice recognition lib
http://forum.arduino.cc/index.php?topic=118616.0

NetDuino (similar to Arduino, but runs .NET code): http://netduino.com/

easyVR Shield for voice/speech recognition on Arduino: EasyVR 3 Plus Shield for Arduino - COM-15453 - SparkFun Electronics

So, I need an element for Voice Recognition. Without this I can't make this project, right? And BillHO thanks for GitHub project.
What, if I buy a voice sensor for Arduino from eBay, for example, this:

http://www.ebay.com/itm/1pcs-Analog-Sound-Sensor-Microphone-MIC-Controller-/400361264273?pt=LH_DefaultDomain_0&hash=item5d37641491

Is it able to recognize voice? Thanks!

Yes, will do. let us the out come.