Table of Contents
Raspberry Pi Vs Arduino, Overview:
Raspberry Pi Vs Arduino- Raspberry Pi and Arduino are everyone’s favorite. I have been using Arduino and Raspberry Pi in different intermediate and advanced level projects. I usually hear the same question again and again from boys and girls “should I use the Arduino or Raspberry Pi?” or “What’s the difference between the Arduino and Raspberry Pi?” and there are so many other questions regarding the Arduino and Raspberry Pi. Today, I will try to answer all these questions. Without any further delay, let’s get started!!!
Other Tools and Components:
*Please Note: These are affiliate links. I may make a commission if you buy the components through these links. I would appreciate your support in this way!
A lot has changed in the Raspberry Pi 4 compared to the older models like the Raspberry Pi 3 or the 3 B+, performance is also significantly increased over previous models of the Raspberry Pi, we now have a better CPU and faster RAM and a newer Graphics Processing Unit GPU unit inside.
The overall size of the Raspberry Pi 4 has stayed the same, but they’ve changed the layout so this means we cannot use older cases for the Raspberry Pi 3 or the 3 B+. If we take a look on the left-hand side, we have a Raspberry Pi 3 B+, on the right is the Raspberry PI 4. The Ethernet port has been totally relocated. Micro USB have been replaced with USB type-c and a single full-size HDMI has been replaced with 2 micro HDMI outputs. So now, it is just a matter of waiting for the case manufacturers to get a hold of their samples so they can go ahead and create new cases for this. This article is not about comparing the Raspberry Pi 3 with Raspberry Pi 4, but I am giving you an overview of how it improved with time. So, at this time if you want, you can start with the Raspberry pi 3 or Raspberry Pi 4, or even the most latest one.
For the best comparison between the Arduino and Raspberry Pi. Let’s first discuss each one in detail. We will be starting with the Raspberry Pi 4.
Raspberry Pi 4 Specifications:
So let’s take a look at the specifications and then we’ll get into some testing on the Raspberry Pi 4. For the CPU we have the new Broadcom BCM2711 this is a quad-core cortex a722 @ 1.5Ghz. The Raspberry Pi 3 B+ used a cortex a53 @1.4 and this might not sound like a big game just going 100 megahertz up but these A72 cores offer much higher performance than the A53, so clock for a clock this is a better CPU. I’ve had a lot of people get upset with me when I call the videoCore GPU but that’s what we have. This is our graphics processing unit or video processing unit, it’s using the new videoCore VI @ 400Mhz and by the way, I have successfully over clocked the GPU to 620 megahertz and the CPU 21.7.
For RAM there are three variants of the PI 4, 1 gigabyte, 2 gigabytes, or 4 gigabytes. They all use LPDDR4 2400 SDRAM and this is a huge upgrade over the old Raspberry Pi 4 and personally, this was the biggest surprise, not the amount of RAM. I figured they would at least go to 2 or 4 awesome. However, going from ddr2 to ddr4 and a little single-board computer like this is a big upgrade, and this is going to help us out dramatically in everything we do on the Raspberry PI. They have added true Gigabit(1000mbps) Ethernet dual-band 802 .11a/b/g/n and 802.11ac. So, it can pick up that 5 gigahertz Network. Bluetooth 5.0 , 2x USB 3.0 ports, and 2 USB 2.0 ports.
Raspberry Pi standard 40 pin GPIO header, USB type-c for the power; they’ve done away with the micro USB but this does require more power to run 5 volts 3 amps and finally 2 micro HDMI ports. They claim 4k 30fps, if you’re using dual monitors or 4k 60fps, if you’re using a single Monitor with Raspberry Pi 4.
Broadcom BCM2711, quad-core Cortex-A72 (ARM v8) 64-bit SoC @ 1.5GHz
1GB, 2GB or 4GB LPDDR4(depending on model)
2.4 GHz and 5.0 GHz IEEE 802.11b/g/n/ac wireless
LAN, Bluetooth 5.0, BLE
2 × USB 3.0 ports
2 × USB 2.0 ports
Standard 40-pin GPIO header(fully backward-compatible with previous boards)
Video & Sound:
2 × micro HDMI ports (up to 4Kp60 supported)
2-lane MIPI DSI display port
2-lane MIPI CSI camera port
4-pole stereo audio and composite video port
H.265 (4Kp60 decode)
H.264 (1080p60 decode, 1080p30 encode)
OpenGL ES, 3.0 graphics
SD card support:
Micro SD card slot for loading operating system and data storage
5V DC via USB-C connector (minimum 3A)
5V DC via GPIO header (minimum 3A)
Power over Ethernet (PoE)–enabled(requires separate PoE HAT)
Operating temperature 0–50ºC
Arduino Specs and Pinout:
At first it seems quite unfair to compare Arduino and Raspberry Pi. Why? Because, Arduino is a microcontroller based board, while Raspberry Pi itself is a computer. So, seriously it’s a shame to compare the two, but anyways, boys and girls are asking for this comparison, so I will do it only for you guys. An atmega328 microcontroller which is the main processing unit on the Arduino Board and which is manufactured by ATMEL Company. To power up the Arduino Uno or Arduino Nano or Arduino Mega you can use a 7v to 12v power supply. The recommend 12v power supply Amazon link is already shared above. The operating voltage of the microcontroller is 5 volt, but it has the regulator which steps down the voltage to 5 volts, so this is the reason we can connect 7v to 12volts, and we don’t worry about the damage, because the Regulator takes care of the voltage. So, we get regulated 5volts and there is also another 3.3v regulator. It has a CPU speed of 16 megahertz. There are analog inputs or output pins which are 6 in number.
There are the 14 digital input/output pins out of which 6 can be used for pulse width modulation. The major feature of this pulse width modulation is, it can be used to vary the intensity or the speed. It has an EEPROM of 1 kb, SRAM of 2 kb, flash memory of 32kb which can be used to store the program or load the program. UART universal a synchronous receiving transmission of 1, USB type is regular, it has a reset pin which when pressed the program is going to start from the first line. The pin numbers A4 and A5 which are analog pins has SDA and SCL input which can be used to receive a real-time clock configuration when used with ds1307, the A5 and A5 pins are used with the I2C supported devices. So, using only these two pins multiple I2C devices can be connected with the Arduino. The digital pins 0 and 1 are used for serial communication 0 for receiving and 1 for transmission. Pin number 2 and 3 which are digital pins can also be used for interrupts purpose.
Atmega 328P description:
Atmega328 is low power CMOS 8 bit microcontroller based on enhanced AVR architecture. It has total number of 28 pins out of which 14 are digital output/ input pins from D0 to D13. It also has 6 ADC channels from A0 to A5 these form the analog to digital converter of the atmega328. It also has 6 pwm channels, and two pins for XTAL1 and XTAL2.
Two pins for ground. Pin number 7 and pin number 20 for VCC. Pin number 21 for analog reference. One pin for reset its low enabled input. So when this enabled go low the microcontroller reset and the program of the microcontroller also reset. One pin for RXD and one pin for TXD. The RXD and TXD form serial communication input of the microcontroller. The atmega328 also has some special pins like SCK which stands for serial clock, MISO stands for master input slave output, MOSI stands for master output slave input, SS stands for slave select. Together these four pins form serial peripheral interface of the atmega328. After that we have SCL and SDA which is the serial clock and serial data which form the I2C port of the atmega328. The operating voltage of this microcontroller ranges from 1.8V to 5.5V but typically we use 5V for this purposes. It can be combined with 16 Mhz Crystal oscillator along with 22pF capacitors to form the crystal oscillator circuit. 32 KB of flash memory, 2KB of SRAM, and 1KB EEROM.
Arduino Vs Raspberry pi:
Arduino is a microcontroller on which you can run only one program at a time while raspberry pi is a mini-computer, which is more powerful than any of the Arduino Boards read my article on “Arduino Uno Vs Arduino Nano Vs Arduino Mega”. On raspberry pi, you may run many codes at a time. Raspberry Pi is a mini Computer, You can watch movies, you can listen to music, and meanwhile, you can send an email, or you can do the programming, you can create complex image processing applications, you can make a server, etc. The things you can do with the Raspberry Pi, you just can’t even imagine these with the Arduino.
For uploading the code in Arduino, you must have a computer while raspberry pi is a mini computer so no need of a computer to upload the code.
You cannot connect the keyboard and mouse with Arduino because there is only one USB port that is used for powering up or uploading the code. While in raspberry pi there, are four USB ports and easily connect the keyboard and mouse. You can also wirelessly connect your keyword and mouse. You can connect small and big display units using HDMI.
Seriously, in the end I must say, Raspberry Pi Vs Arduino, this was really an unfair comparison. Now you know which one is the best?
Should I use Arduino or Raspberry Pi?
This is a kind of question that I usually hear from my followers on YouTube Channel and Website. My replay is always “ It depends on your project”. The first thing that you should keep in mind it that, Raspberry Pi much expensive than the Arduino boards. You are not supposed to spend hundreds of dollars on just controlling a bulb using IR Remote. This can be done using Arduino. Or let’s say you want to make an IoT water Level monitoring system, projects like these can be easily done with Arduino and there is no need to purchase the Raspberry Pi. Raspberry Pi should be used only, when you need to process multiple tasks at the same time, or you are working complex image processing projects, etc. There are so many other Controller boards that I believe you should study about. Then you can make a nice decision. Read my other articles on