Arduino vs Raspberry Pi

Posted on
Sat Mar 05, 2016 1:00 pm
kw123 offline
User avatar
Posts: 8333
Joined: May 12, 2013
Location: Dallas, TX

Arduino vs Raspberry Pi

Here my take:

Arduino
PLUS
  • "real time" op sys (almost)
  • a LOT of sensors and example code
  • Analog inputs
MINUS
  • limited memory for programs
  • not cheap if you add e.g. wifi
  • no python
  • either web server or web client = either arduino sends (after trigger) or it gets pulled ( bad for triggers, good for simple sensor)

ESP Arduino equiv
PLUS
  • cheapest solution of all, comes with build in wifi ($10)
  • most of the arduino code works
  • 1 analog input
MINUS
  • no easy bluetooth solution
  • not easy to load new software, i.e. dynamic load of programs
  • not realtime, need to put in waits in normal arduino loop, otherwise it hangs
  • either web server or web client = either arduino sends (after trigger) or it gets pulled ( bad for triggers, good for simple sensor)

raspberry Pi
PLUS
  • price $5-$40 depending on version (wifi/bluetooth)
  • full unix op-sys
  • ethernet+wifi+bluetooth
  • a lot of code for many solutions
  • can connect MANY sensors and outputs in parallel
  • multitasking
  • easy to load new software, remote control
  • supports triggers, i.e. can send message when things happen, don't need to continuously pull for state
  • you can run things like FING on it.
MINUS
  • no analog input, can be done with external module +$5 but need skills
  • not realtime, but have not found any significant delays, any reaction is < 0.1 seconds in my experience
  • need skills to set it up


All of them support SPI and i2C interfaces. The arduino is using the SPI interface for wifi

None of these solutions can run on batteries

As the rPi cost has come down significantly and I need wifi/ ethernet to connect and would like to dynamically switch things on/off I am trending towards the rPi.
Only when a physical small solution is required with limited scope (put an ESP into an existing remote control) I am going with the ESP solution, not the pure arduino.

Karl

Page 1 of 1

Who is online

Users browsing this forum: No registered users and 1 guest