2014년 5월 12일 월요일

Arduino Vs. Raspberry Pi: Which Is The Right DIY Platform For You?

http://readwrite.com/2014/05/07/arduino-vs-raspberry-pi-projects-diy-platform#awesm=~oE6h9AF7F30qpf


Overview

Raspberry Pi and Arduino were both originally designed to be teaching tools, which is why they’ve become so popular—both devices are very easy to learn to use. 
Arduino, on the other hand, was born in Italy. It was named after the bar where inventor Massimo Banzi and his cofounders first forged the idea. Banzi, a teacher at the Interaction Design Institute Ivrea, wanted a simple hardware prototyping tool for his design students.Raspberry Pi hails from the United Kingdom. Inventor Eben Upton and his colleagues at the University of Cambridge’s Computer Laboratory were frustrated by the dwindling number of students, and the poor skill levels of those students, entering the program. Raspberry Pi was designed to be a cheap, hackable computer for improving tinkering skills. While Upton worked on prototypes from 2006 onward, the first shipment of Pis became available in April 2012.
As teaching tools, both Arduino and Raspberry Pi suitable for beginners. It’s only when examining their hardware and software that it becomes apparent they’re used for very different types of projects. 

Hardware And Software

Here’s an overview of some of the specs that show the biggest differences between the two:

Arduino Uno
Raspberry Pi Model B
Price
$30
$35
Size
7.6 x 1.9 x 6.4 cm
8.6cm x 5.4cm x 1.7cm
Memory 
0.002MB
512MB
Clock Speed
16 MHz
700 MHz
On Board Network
None
10/100 wired Ethernet RJ45
Multitasking
No
Yes
Input voltage
7 to 12 V
5 V
Flash
32KB
SD Card (2 to 16G) 
USB 
One, input only
Two, peripherals OK
Operating System
None
Linux distributions
Integrated Development Environment
Arduino
Scratch, IDLE, anything with Linux support
The price and size of the two devices are comparable; we already knew Raspberry Pi and Arduino were tiny and cheap. It’s the stuff inside that sets them apart.
The Raspberry Pi is 40 times faster than an Arduino when it comes to clock speed. Even more seemingly damning for Arduino, Pi has 128,000 times more RAM. The Raspberry Pi is an independent computer that can run an actual operating system in Linux. It can multitask, support two USB ports, and connect wirelessly to the Internet. In short, it’s powerful enough to function as a personal computer (though not powerful enough to compete with your Mac or PC). 
It might sound like Raspberry Pi is superior to Arduino, but that's only when it comes to software applications. Arduino’s simplicity makes it a much better bet for pure hardware projects. 
I asked Limor Fried, the founder of Adafruit, a DIY electronics store that offers parts and kits for both Arduino and Pi projects, about her expert opinion on their differences. An MIT educated engineer whose mission in life is to teach electronics to people of all skill levels, Fried knows both platforms better than most. 
“Arduino does have a 'real-time' and 'analog' capability that the Pi does not: This flexibility allows it to work with just about any kind of sensor or chips,” Fried said. “The Pi is not as flexible; for example, reading analog sensors requires extra hardware assistance. There are also thousands of tutorials on hooking an Arduino into just about every kind of part. On the other hand, the Pi benefits from decades of Linux software, so they're both great choices.”
Raspberry Pi can multitask processes—it can run multiple programs in the background while activated. For example, I have a Raspberry Pi that is serving as both a print server and a VPN server at the same time. The Arduino IDE is significantly easier to use than Linux. For example, if you wanted to write a program to blink an LED with Raspberry Pi, you’d need to install an operating system and some code libraries—and that’s just to start. On Arduino, you can get an LED light to blink in just eight lines of code. Since Arduino isn’t designed to run an OS or a lot of software, you can just plug it in and get started. 
On the other hand, you can leave an Arduino plugged in as it conducts a single process for a long time, and just unplug it when you’re not using it. This is why Fried would recommend the Arduino for beginners before she would the Pi:  
“The Arduino is simpler, harder to 'break' or 'damage' and has much more learning resources at this time for beginners,” Fried said. “With the Pi you have to learn some Linux as well as programming—such as Python. The Arduino works with any computer and can run off of a battery. You can also turn it on and off safely at any time. The Pi setup can be damaged by unplugging it without a proper shutdown.” 
While the Raspberry Pi shines in software application, the Arduino makes hardware projects very simple. It’s simply a matter of figuring out what you want to do. 

Working Together

The ultimate answer when deciding between the Pi and Arduino is, “Why choose?” If you’re looking to learn about electronics, each one will teach you something different.  
According to Fried, Raspberry Pi and Arduino are complementary. She suggested a scenario where the Arduino is the sensory workhouse, while the Pi doles out directions:
Author Simon Monk, who has written dozens of books on both Pi and Arduino, blogged a tutorial for getting Raspberry Pi to talk to Arduino in just a few lines of code. It makes use of a Python library, PySerial, that the Arduino foundation recommends as the easiest way to get computers to talk to Arduino. “They work great together,” Fried said. “The Arduino is best for motor driving, sensor reading, LED driving, etc while you can have an Internet-connected Pi drive it, a mini computer that can play videos, music or send emails with ease.”
Once you’ve got that down, the possibilities are infinite. You could homebrew beer, with the Arduino controlling the sensors and the Pi managing the brains of the operation. You could also create a platform for making robots that are much more capable than plain Arduino or Raspberry Pi bots.

Community

Both Raspberry Pi and Arduino have large, active communities surrounding them. Not only are they used in schools and universities, but also in hackerspaces worldwide. 
Here are some of the places you can visit to get Raspberry Pi support and project ideas:
Here are some of the places you can visit to get the same for Arduino:

댓글 없음:

댓글 쓰기