Arduino and Raspberry Pi

Compare the two most popular platforms

I recently had an Arduino.

When I had the idea of trying to use electronic products without touching a single resistor for more than 15 years, I remembered that I spent some time searching for which device is best for what I want to do.

Two of the most popular platforms for such a thing are Arduino and Raspberry Pi. There are many, many others, but those are the two most popular and in this article I want to explain the difference between those 2.

This is the Arduino Uno, and we will use this board as an example, although Arduino provides many different boards. By the way, this is the board of directors I chose:

This is Raspberry Pi B+ model

At first glance, they look similar. Chips, connectors, screw holes.

It turns out that they are very, very different.

Start from the core. Arduino comes with an 8-bitMicrocontroller. Raspberry Pi comes with 64-bitmicroprocessor.

The Arduino has 2 KB of RAM. Raspberry Pi has 1GB of RAM. (More than 500,000 times)

In terms of I/O, the Arduino has a USB-B port, which the computer can use to transfer new programs to run, power input, and a set of I/O pins.

Raspberry Pi is much more complicated in this respect. It has a video output, HDMI port, SD card port, audio jack, CSI camera port, DSI display port, 4 USB 2.0 ports, which can be used to connect USB devices, one Gigabit Ethernet Net jack, wireless LAN, Bluetooth 4.2 and I/O pins (GPIO). a lot of things.

Arduino does not have an operating system. It can only run programs compiled for the Arduino platform, which mainly refers to programs written in C++.

Raspberry Pi runs an operating system, usually Linux. This is a microcomputer, and the Arduino is simpler.

Which one should you use?

Considering these differences, you might think that Raspberry Pi is much more powerful than Arduino, so you should use it. correct? Incorrect.

Arduino consumes much less power (~50 mAIdle) than Raspberry Pi (700+ mA)

Arduino has 20 I/O pins. There are 8 Raspberry Pis. Single I/O pin in Arduino can be driven40mAAnd the Raspberry Pi GPIO pin can drive the largest16mA.

I have studied these numbers, but I haven't measured them myself.

You can program the Raspberry Pi in almost any programming language you want, as if you are running Linux, and it provides you with a wide range of options.

What about programming?

Arduino is best to use C++ and its "Arduino language" (C++ only) for programming, and has some convenient functions, so that beginners can easily get started.

However, you are not limited to this. If you can live with the limitation of connecting the Arduino to the computer USB port, you can useJohnny VProject, this is very cool.

Similar tools are available in other languages, such asSepsiswithrobot.

I think Arduino is best used to compile programs, connect batteries or power connectors and place them where they can run, and can play with sensors and other fun things that are connected to the real world.

You don't need to worry about anything, because your program only runs on the Arduino. It doesn't even have a network out of the box (I'm talking about Uno).

Raspberry Pi is more like a small computer without a screen, you can use more traditional tools for programming.

I can use Arduino to power my self-watering plants, or track outdoor temperature, or power some home automation equipment, but I will use Raspberry Pi as a retro gaming platform or web server.


More electronic tutorials: