Can I use a Raspberry Pi as Arduino? What language will it use?
Can you explain how I could use a RasPi as part of an Arduino setup?
If I recall correctly, both the Pi and Arduino use Atmel microcontrollers. So if you're handy with those and can hook up some digital ins and outs on your Pi, then sure, you can use it like you might use an Arduino controller.
Raspberry Pi to Arduino shields connection bridge
arduPi library allows to use Raspberry with the same code used in Arduino.
Simplified Setup for Arduino on Raspberry Pi
Well, yes, but the shiield in effect requires you to have an Arduino AS WELL as a Raspberry Pi! As I understand it, Shaurya wants to use the Pi INSTEAD of an Arduino!
Wow, had no idea you could use the exact same code! I wonder if the regular Arduino IDE works too, like with an Arduino-compatible?
RaspberryPi the Arduino Development Tool
Although the Raspberry Pi and the Arduino are similar in concept (small, low power kits for hobbyists) they are not the same thing. The Arduino is designed primarily as a controller (for robotics, home automation etc) and the Pi as a general purpose/multimedia computer. They have different processors and different capabilities.
That said, if you want to use the Pi for controlling hardware, you can get expansion kits (e.g. http://uk.farnell.com/jsp/search/productListing.jsp?SKUS=2218566) that will allow you to connecct it to external devices. The Pi can run a number of OSs, including variants of Linux, Android and Risc OS, and there is a wide variety of programming languages for it. Have a look at the MUO Raspberry Pi guide (//www.makeuseof.com/tag/great-things-small-package-your-unofficial-raspberry-pi-manual/) to get a better idea of how things fit together.
I'm not familiar with Arduino, maybe some of these links will help?