Can I use Raspberry Pi as an Arduino?

shaurya gupta February 24, 2013
Pinterest Stumbleupon Whatsapp

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
    http://www.cooking-hacks.com/index.php/documentation/tutorials/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
    http://baldwisdom.com/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. 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 (http://www.makeuseof.com/pages/great-things-small-package-your-unofficial-raspberry-pi-manual) to get a better idea of how things fit together.

Ads by Google