Can I use Raspberry Pi as an Arduino?

shaurya gupta February 24, 2013

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?

  1. Guy McDowell
    February 25, 2013 at 5:34 pm

    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.

  2. ha14
    February 25, 2013 at 8:11 am

    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

    • Oron Joffe
      February 25, 2013 at 10:28 am

      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!

    • James Bruce
      February 25, 2013 at 11:52 am

      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?

    • ha14
      February 25, 2013 at 3:57 pm
  3. Oron Joffe
    February 25, 2013 at 12:46 am

    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. 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 (// to get a better idea of how things fit together.

Ads by Google