RC India
Welcome Guest, please login or register.
 
Pages: [1]   Go Down
0 Members and 1 Guest are viewing this topic. Topic Tools Topic Tools 
Read
« on: April 05, 2018, 12:57:21 PM »
RAHUL QUADY
Plane Lover
Senior Member
***

Reputation Power: 4 
RAHUL QUADY has no influence.
Offline Offline

City: Vijayawada
State: Andhra Pradesh
RC Skills: Beginner
Posts: 168
Join Date: Sep, 2015




Hello guys,I want to know the difference between arduino and pi.Please dont start off by telling pi is a processor and uno is a microcontroller.I am a computer science student,and I have been studying about operating systems for a while now, and I came to know about few things like multitasking,multithreading(my fav by the way),scheduling algorithms for processes,System calls and pi needs an OS to function.So I made few assumptions based on what I studied in class about operating systems and I tried to understand the difference between these two.Pi treates every program as a process,and can execute multiple programs,by context switching,or by scheduling with priority.Where as arduino can execute  a single program.
Pi has mutithreading,means if there is problem with one block of code,the next block is executed,if and only if both the blocks are independent of each other.In arduino there is no mulithreading,I guess?.Resources can be utilized in pi through system calls, and there are no system calls for  arduino.All of the functionalities could be only achieved if we hava a good OS,and pi uses linux.
So if my assumptions are misconceptions,I want you to correct me please !.
Logged
 

Read
« Reply #1 on: April 07, 2018, 11:13:18 PM »
girishsarwal
Plane Lover
Forum Hero

*****

Reputation Power: 17 
girishsarwal has no influence.
Offline Offline

City: Gurgaon
State: Haryana
RC Skills: Beginner
Posts: 1420
Join Date: May, 2012

DIYer



First off, this is an RC forum. your question could be better answered if you post it in a computing forum!

Now, to your questions, whoever told you that Arduino is a micro-controller, has been partial with the facts. Arduino is an ecosystem built around AVR ATMEGA microcontrollers. It consists of the development board (with the micro controller and a USB to USART bridge), a cross platform IDE written in Java, a compilation toolchain (based on AVR GCC), a bootstrap firmware, multiple flashing toolchains and a programming interface based on AvrDude.

The RASPI on the other hand is the name of the development board, which is based on the RISC architecture.

So if I had to put things in perspective this is how it'd be:

Raspi : Arduino =

Molecule : Atom
Mountain : Molehill
Computer: Calculator
BCM2807 : AVR Atmega
ARM : AVR
32 bit : 8 bit
~2Ghz clock : ~16 Mhz Clock (Varies)
OS + Peripherals : Bootstrap + peripherals
higher order peripherals such as USB, Main board controller, Audio Controllers etc : Atomic peripherals such as Timers, USART, WDT, etc
Linux : Bootstrap
GCC/Python/etc etc : AVRGCC/ASM
Eclipse/Codeblocks/notepad : Arduino IDE
Main Process (OS runs your program as a fork) : Main Process (Bootstrap code runs your program)
Multithreading : ISRs
Shared Application : Dedicated Application
System Calls (IOCTL) : GPIO/Registers/Clock Edges/ISR

Btw there is an OS that fits on the Atmega 32 and provides services to various peripherals

Hope that helps.
gs
Logged

gs
 

Read
« Reply #2 on: April 07, 2018, 11:30:30 PM »
AL HAM SHARI
Plane Lover
Forum Hero

*****

Reputation Power: 7 
AL HAM SHARI has no influence.
Offline Offline

State: Kerala
RC Skills: Not into RC
Posts: 541
Join Date: Nov, 2012

RC



^ that is a terrific reply.
Logged

A Dozen Scratch Built Models , 
VT-Speedster Pro
55' UAV Wing
Model  Rocketry
 

Read
« Reply #3 on: April 09, 2018, 06:36:36 PM »
RAHUL QUADY
Plane Lover
Senior Member
***

Reputation Power: 4 
RAHUL QUADY has no influence.
Offline Offline

City: Vijayawada
State: Andhra Pradesh
RC Skills: Beginner
Posts: 168
Join Date: Sep, 2015



Wow,that is something,and to be honest I really dont know half of the terms,you used,and I  will google it.Sorry for asking this question on this forum,I know this is not the right forum to ask.I asked the same question on arduino forum,but told me to ask on pi forum, and they didnt take it well.Anyways thanks again,it would be nice if you could suggest me some books  on embedded systems or some pi books.
Logged
 

Read
« Reply #4 on: April 09, 2018, 09:27:46 PM »
girishsarwal
Plane Lover
Forum Hero

*****

Reputation Power: 17 
girishsarwal has no influence.
Offline Offline

City: Gurgaon
State: Haryana
RC Skills: Beginner
Posts: 1420
Join Date: May, 2012

DIYer



You might want to checkout the following resources

Embedded using avr
Www.maxembedded.com
Www.avr-tutorials.com
Www.extremeelectronics.com

Arduino - easier than avr
Plenty over the internet, do a google search

Pi - almost like programming on pc
Take a course in your favorite programming language that has bindings in Linux such as c/c++, python, Java etc
Logged

gs
 

Pages: [1]   Go Up
Jump to:  

Related Topics
Subject Started by Replies Views Last post
arduino applications
Chatter Zone
arvind_aero 2 4359 Last post January 26, 2012, 08:54:50 AM
by arvind_aero
What arduino's co-founder says about it (TED)
Chatter Zone
hyd_quads 1 2497 Last post July 02, 2012, 09:07:51 PM
by anwar
30 Arduino Projects Evil Genius:- Great book to start Arduino Projects
Multirotors
rcpilotacro 5 8998 Last post July 05, 2012, 10:23:44 AM
by xxkrishxx
Multirotor with arduino Uno
Multirotors
mavquad 9 3880 Last post April 24, 2014, 02:24:58 PM
by Swapnil
Need help for arduino
Wanted
Shaiju 6 1413 Last post January 24, 2018, 12:36:56 PM
by Aravind298