Why Arduino and Raspberry Pi are being compared to each other?
This is done because it can control all electronic components and probably of same size with these and the main reason is to been used by the all-electronic communities.
By using Arduino all electronic components are been controlled by adding different type of sensors, modules and even using motors. The micro controllers are the heart of Arduino. These micro controllers are basically store, run and execute your programmers also store programs within the chip. This also requires a very low power 9-volt battery is often used.
The Arduino IDE supports the languages C and C++ using special rules of code structuring. Your sketch undergoes minor changes (e.g. automatic generation of function prototypes) and then is passed directly to a compiler (aver-g++).
The Arduino IDE supplies a software library from the Wiring project, which provides many common input and output procedures.
The Arduino is Expensive but Affordable. Size of a board doesn’t mean its value. A board consist of input and output pins with a restart button and USB ports. The cost of a simple Arduino board (Arduino UNO) is around 500 INR.
There are few many different types in Arduino family, the coding is basically the same way for every Arduino, which you are going to use Arduino IDE and Dump your program with your computer and Run it. The different with boards is through built in functionality.
· Arduino Uno,
· Arduino Mega,
· Arduino Leonardo,
· Red Board,
· Lily Pad Arduino.
More than Arduino there are Pre made peripherals attached to the Top of Arduino called shields. There is multiple size of Arduino board in real time. This board can be connected with a cable and with the computer to dump your programs and make the board stand alone.
Raspberry Pi can also control all electronic components as like as Arduino. Where heart of the raspberry is Micro Processor. This needs extra Chips for store, run, execute code. It is Similar to the motherboard of a CPU or Shrined motherboard. Raspberry Pi had an inbuilt USB (universal Serial Bus) Port, Graphics, Bluetooth, wireless audio and video runs with Linux OS (operating system). It requires more power to run.
The full-fledged computer which has a Linux operating system to be specific, Raspberry PI OS designed specifically for the RASPBERRY PI. This is an open source platform. Raspberry Pi OS (Raspbian) is an official supported operating system.
They are basically 3 Generations of RASPBERRY PI is Pi 1, Pi 2, Pi 3. These are Generally been model A; Model B. Model A is Cheaper than B
Pre made peripherals are hats in raspberry are paced in the top of board connected to GPIO (General Purpose Input Output Pins). It is generally they are programmed by python and done with other programs also. Using General purpose input and output pins, we can control light motors sensors and for controlling other electronic devices.
All Pi models have the same Video Core, an HDMI port, include a 40-pin GPIO header, and feature both a camera interface (CSI) and display interface (DSI). The Pi Zero is missing the DSI connector and its HDMI port is mini-HDMI.
Controlling electronic devices is possibly easy and done by two different boards, thinking what you want for your project is the main key difference of these two (Arduino, Raspberry).
· If your project is low level robotics use Arduino if not use Raspberry
· Low level consists of Bluetooth, wireless network, sensors and motors.
· High level robotics of Web cam with live streaming facility, web server, USB storage.
if you are beginner to the electronics then use Arduino because it is very easy and simple to construct. When you skilled in Arduino then come to Raspberry pi.