mirror of
https://github.com/LCTT/TranslateProject.git
synced 2025-01-25 23:11:02 +08:00
20140519-4 选题
This commit is contained in:
parent
474536b40e
commit
1bd05b8bff
@ -0,0 +1,243 @@
|
||||
Arduino Vs. Raspberry Pi: Which Is The Right DIY Platform For You?
|
||||
================================================================================
|
||||
![](http://readwrite.com/files/styles/1400_0/public/fields/arduinopi.jpg)
|
||||
|
||||
If you’re at all familiar with do-it-yourself (DIY) electronics, you’ve probably heard about the comparable merits of [Arduino][1] and [Raspberry Pi][2]. You may have even, [like I did][3], assumed they were competing hardware platforms solving similar problems.
|
||||
|
||||
Actually, Arduino and Raspberry Pi are quite different. For starters, Raspberry Pi is a fully functional computer, while Arduino is a microcontroller, which is just a single component of a computer.
|
||||
|
||||
Here’s a primer to differentiating Arduino and Raspberry Pi, and to determining which of the two DIY hacking devices best fits your needs as a maker.
|
||||
|
||||
### 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.
|
||||
|
||||
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][4].
|
||||
|
||||
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.
|
||||
|
||||
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:
|
||||
|
||||
<table cellspacing="0" cellpadding="0">
|
||||
<tbody>
|
||||
<tr>
|
||||
<td>
|
||||
<p> </p>
|
||||
</td>
|
||||
<td>
|
||||
<p><strong>Arduino Uno</strong></p>
|
||||
</td>
|
||||
<td>
|
||||
<p><strong>Raspberry Pi Model B</strong></p>
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td>
|
||||
<p><strong>Price</strong></p>
|
||||
</td>
|
||||
<td>
|
||||
<p>$30</p>
|
||||
</td>
|
||||
<td>
|
||||
<p>$35</p>
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td>
|
||||
<p><strong>Size</strong></p>
|
||||
</td>
|
||||
<td>
|
||||
<p>7.6 x 1.9 x 6.4 cm</p>
|
||||
</td>
|
||||
<td>
|
||||
<p>8.6cm x 5.4cm x 1.7cm</p>
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td>
|
||||
<p><strong>Memory </strong></p>
|
||||
</td>
|
||||
<td>
|
||||
<p>0.002MB</p>
|
||||
</td>
|
||||
<td>
|
||||
<p>512MB</p>
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td>
|
||||
<p><strong>Clock Speed</strong></p>
|
||||
</td>
|
||||
<td>
|
||||
<p>16 MHz</p>
|
||||
</td>
|
||||
<td>
|
||||
<p>700 MHz</p>
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td>
|
||||
<p><strong>On Board Network</strong></p>
|
||||
</td>
|
||||
<td>
|
||||
<p>None</p>
|
||||
</td>
|
||||
<td>
|
||||
<p>10/100 wired Ethernet RJ45</p>
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td>
|
||||
<p><strong>Multitasking</strong></p>
|
||||
</td>
|
||||
<td>
|
||||
<p>No</p>
|
||||
</td>
|
||||
<td>
|
||||
<p>Yes</p>
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td>
|
||||
<p><strong>Input voltage</strong></p>
|
||||
</td>
|
||||
<td>
|
||||
<p>7 to 12 V</p>
|
||||
</td>
|
||||
<td>
|
||||
<p>5 V</p>
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td>
|
||||
<p><strong>Flash</strong></p>
|
||||
</td>
|
||||
<td>
|
||||
<p>32KB</p>
|
||||
</td>
|
||||
<td>
|
||||
<p>SD Card (2 to 16G) </p>
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td>
|
||||
<p><strong>USB </strong></p>
|
||||
</td>
|
||||
<td>
|
||||
<p>One, input only</p>
|
||||
</td>
|
||||
<td>
|
||||
<p>Two, peripherals OK</p>
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td>
|
||||
<p><strong>Operating System</strong></p>
|
||||
</td>
|
||||
<td>
|
||||
<p>None</p>
|
||||
</td>
|
||||
<td>
|
||||
<p>Linux distributions</p>
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td>
|
||||
<p><strong>Integrated Development Environment</strong></p>
|
||||
</td>
|
||||
<td>
|
||||
<p>Arduino</p>
|
||||
</td>
|
||||
<td>
|
||||
<p>Scratch, IDLE, anything with Linux support</p>
|
||||
</td>
|
||||
</tr>
|
||||
</tbody>
|
||||
</table>
|
||||
|
||||
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][5], 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.”
|
||||
|
||||
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.
|
||||
|
||||
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][6] at the same time.
|
||||
|
||||
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:
|
||||
|
||||
“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.”
|
||||
|
||||
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][7] in just a few lines of code. It makes use of a Python library, [PySerial][8], that the Arduino foundation recommends as the easiest way to get computers to talk to Arduino.
|
||||
|
||||
Once you’ve got that down, the possibilities are infinite. You could [homebrew beer][9], with the Arduino controlling the sensors and the Pi managing the brains of the operation. You could also create a [platform for making robots][10] 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:
|
||||
|
||||
- [The Raspberry Pi Foundation — FAQs][10]
|
||||
- [The Raspberry Pi Foundation — Project Forums][11]
|
||||
- [Learn Raspberry Pi with Adafruit][12]
|
||||
- [Element 14 (Pi’s manufacturer) Raspberry Pi Community][13]
|
||||
- [The Raspberry Pi Wiki][14]
|
||||
|
||||
Here are some of the places you can visit to get the same for Arduino:
|
||||
|
||||
- [Arduino’s Official Getting Started Guide][15]
|
||||
- [Arduino Playground][16]
|
||||
- [Arduino Official Forums][17]
|
||||
- [Learn Arduino with Adafruit][18]
|
||||
- [r/arduino on Reddit][19]
|
||||
|
||||
Photo by [Simon Monk][20]
|
||||
|
||||
--------------------------------------------------------------------------------
|
||||
|
||||
via: http://readwrite.com/2014/05/07/arduino-vs-raspberry-pi-projects-diy-platform#feed=/hack&awesm=~oEFMq68riarQK2
|
||||
|
||||
译者:[译者ID](https://github.com/译者ID) 校对:[校对者ID](https://github.com/校对者ID)
|
||||
|
||||
本文由 [LCTT](https://github.com/LCTT/TranslateProject) 原创翻译,[Linux中国](http://linux.cn/) 荣誉推出
|
||||
|
||||
[1]:http://readwrite.com/2014/04/21/easy-arduino-projects-basics-tutorials-diy-hardware
|
||||
[2]:http://readwrite.com/2014/01/20/raspberry-pi-everything-you-need-to-know
|
||||
[3]:http://readwrite.com/2014/04/16/arduino-raspberry-pi-connected-home-tutorials-projects
|
||||
[4]:http://www.raspberrypi.org/archives/1081
|
||||
[5]:http://www.adafruit.com/
|
||||
[6]:http://readwrite.com/2014/04/10/raspberry-pi-vpn-tutorial-server-secure-web-browsing
|
||||
[7]:http://www.doctormonk.com/2012/04/raspberry-pi-and-arduino.html
|
||||
[8]:http://playground.arduino.cc/Interfacing/Python
|
||||
[9]:http://www.brewpi.com/
|
||||
[10]:http://www.raspberrypi.org/help/faqs/
|
||||
[11]:http://www.raspberrypi.org/forums/viewforum.php?f=15
|
||||
[12]:https://learn.adafruit.com/category/learn-raspberry-pi
|
||||
[13]:http://www.element14.com/community/community/raspberry-pi
|
||||
[14]:http://elinux.org/RPi_Hub
|
||||
[15]:http://arduino.cc/en/Guide/HomePage
|
||||
[16]:http://playground.arduino.cc/Projects/ArduinoUsers
|
||||
[17]:http://forum.arduino.cc/
|
||||
[18]:https://learn.adafruit.com/category/learn-arduino
|
||||
[19]:http://www.reddit.com/r/Arduino
|
||||
[20]:http://www.doctormonk.com/2012/04/raspberry-pi-and-arduino.html
|
@ -0,0 +1,69 @@
|
||||
How To Install ‘California’ Calendar App in Ubuntu 14.04
|
||||
================================================================================
|
||||
![](http://www.omgubuntu.co.uk/wp-content/uploads/2014/05/california-calendar.jpg)
|
||||
|
||||
**When non-profit software outfit Yorba revealed that it had [begun work on a new desktop calendar app][1] called ‘California’ last month plenty of us were duly excited — “About time!“, we declared in our own headline. **
|
||||
|
||||
And for good reason as Yorba are the hands behind the user-friendly e-mail client ‘Geary‘ and slick photo management software ‘Shotwell‘. Expectations for their foray into Linux productivity software are, naturally, rather high.
|
||||
|
||||
Although **California is not yet stable** enough to warrant a formal release it is now available to install on Ubuntu through the company’s daily development PPA.
|
||||
|
||||
### Progress So Far ###
|
||||
|
||||
“*Neeeeeyaaaaaaaawwnnn!*” — that’s the sound of the caveats plane coming in to land at San Francisco International Airport.
|
||||
|
||||
Yes, California is in active development; it’s not finished nor is it stable enough for everyday use by everyday folk who might want to use it. But, if you’re clever enough to deal with a few bugs you can install the app on Ubuntu 14.04.
|
||||
|
||||
Whether you should will depend on your needs.
|
||||
|
||||
Current builds (i.e., at the time of writing) offers local management and basic support for Google Calendar and web cal (.ics). Events even show up in the GNOME Date/Time applet.
|
||||
|
||||
#### Natural Language Input ####
|
||||
|
||||
When first launching California you are presented with an overview of the current month. There is not yet — at least that I could find — a way to view by week, by year or by agenda. You can cycle though months using the navigation buttons, however.
|
||||
|
||||
New calendars (*e.g., ‘work‘, ‘pet schedule‘*) can be created and toggled on/off by clicking the Calendar icon in the toolbar. Each calendar can be assigned a different colour to help visually differentiate between items when all are shown in the main overview.
|
||||
|
||||
To create a new event click the ‘+’ icon and, using **natural language input** in the input box that appears, enter a description of the event you want to file. For example, enter the text “*Bake Sansa Stark A Lemon Cake on Wednesday 2.45 PM*” will lodge a new entry for the following Wednesday at the relevant time (14:45).
|
||||
|
||||
![](http://www.omgubuntu.co.uk/wp-content/uploads/2014/05/Screen-Shot-2014-05-15-at-21.26.20.png)
|
||||
|
||||
I can’t wait for this feature to become a bit more refined. Right now, while it accurately pinpoints dates (give or take) it doesn’t support creation of recurring events (e.g., via “*Skype chat with Sam every Tuesday at 7 AM*“) nor does it fill in locations or people (e.g., “*Coffee with Penelope on Monday 12 PM at Boston Tea Party*“).
|
||||
|
||||
For greater control you can also refine and edit entries created by double-clicking on them in the grid view. This will open up a window with additional fields, time pickers, date forms and so on.
|
||||
|
||||
#### Lacking In Radiance ####
|
||||
|
||||
If there is a drawback to be found (bugs and missing options should be overlooked at this stage) it is appearance. While it looks fantastic under Adwaita, under Ubuntu’s default theme it looks atrocious.
|
||||
|
||||
This is not the fault of Yorba (or GNOME) but Ubuntu’s design team who has yet to add theming support for GNOME’s new GTK Header Bars and its modal dialogs to its ‘light themes’.
|
||||
|
||||
California is fully useable on Ubuntu it just happens to resemble software run in the aftermath of a failed distribution upgrade. This issue won’t affect those running Ubuntu GNOME or rocking modern third-party GTK3 themes.
|
||||
|
||||
### Install California in Ubuntu 14.04 ###
|
||||
|
||||
If you glossed over the warning earlier, I’ll repeat: California is unstable and in active development.
|
||||
|
||||
The [Yorba Daily PPA][2] also contains newer (unstable) versions of Shotwell and Geary. Adding this PPA to your system will also see these upgraded.
|
||||
|
||||
sudo add-apt-repository ppa:yorba/daily-builds
|
||||
sudo apt-get update && sudo apt-get install california
|
||||
|
||||
A safer way to try the app out is to [download the .deb installers from the PPA directly][3]:
|
||||
|
||||
- [Download California for Ubuntu 14.04 (64bit)][4]
|
||||
- [Download California for Ubuntu 14.04 (32bit)][5]
|
||||
|
||||
--------------------------------------------------------------------------------
|
||||
|
||||
via: http://www.omgubuntu.co.uk/2014/05/california-calendar-app-hits-yorba-daily-ppa
|
||||
|
||||
译者:[译者ID](https://github.com/译者ID) 校对:[校对者ID](https://github.com/校对者ID)
|
||||
|
||||
本文由 [LCTT](https://github.com/LCTT/TranslateProject) 原创翻译,[Linux中国](http://linux.cn/) 荣誉推出
|
||||
|
||||
[1]:http://www.omgubuntu.co.uk/2014/04/yorba-california-calendar-app-linux
|
||||
[2]:https://launchpad.net/~yorba/+archive/daily-builds/
|
||||
[3]:https://launchpad.net/~yorba/+archive/daily-builds/+packages
|
||||
[4]:https://launchpad.net/~yorba/+archive/daily-builds/+files/california_0.1.0-0%7E188%7Eubuntu14.04.1_amd64.deb
|
||||
[5]:https://launchpad.net/~yorba/+archive/daily-builds/+files/california_0.1.0-0%7E188%7Eubuntu14.04.1_i386.deb
|
40
sources/tech/Install SoundCloud In Ubuntu 14.04.md
Normal file
40
sources/tech/Install SoundCloud In Ubuntu 14.04.md
Normal file
@ -0,0 +1,40 @@
|
||||
Install SoundCloud In Ubuntu 14.04
|
||||
================================================================================
|
||||
[SoundCloud][1] is a great platform to discover alternate or indi music. If you are a fan of SoundCloud, you may want to try it as a ‘desktop app’ for Ubuntu 14.04, earlier versions and other Linux distributions such as Linux Mint, Elementary OS etc.
|
||||
|
||||
To **install SoundCloud in Ubuntu 14.04**, we shall use the same trick which we used to [install Google Keep in Ubuntu][2]. We used Google Chrome to install Google Keep and this time we’ll use Firefox to install SoundCloud.
|
||||
|
||||
### Install SoundCloud in Ubuntu 14.04 and Linux Mint: ###
|
||||
|
||||
Since Ubuntu (and most other Linux distributions) come pre-installed with Ubuntu, just open Firefox and go to the following address: [https://marketplace.firefox.com/][3]
|
||||
|
||||
Firefox Marketplace is Firefox alternative of Chrome store and provides several apps meant for Firefox smartphone OS, as well as Firefox web browser. Search for SoundCloud in Firefox Marketplace. Click on install to install it and add is as a web app in Ubuntu.
|
||||
|
||||
![](http://itsfoss.com/wp-content/uploads/2014/05/Firefox_SoundClud.jpeg)
|
||||
|
||||
Once it’s done, you can start the SoundCloud desktop app by searching for it in Unity Dash. Here is how the app looks like in Ubuntu 14.04 Unity:
|
||||
|
||||
![](http://itsfoss.com/wp-content/uploads/2014/05/SoundCloud_Ubuntu.jpeg)
|
||||
|
||||
### Uninstall SoundCloud app installed from Firefox Marketplace ###
|
||||
|
||||
Don’t be over excited. This desktop doesn’t have sound menu integration and I cannot say the same about desktop notification but it is still better than the web one, at least I think so. But if you are disappointed with it and uninstall it, it’s very easy to do so in Ubuntu.
|
||||
|
||||
Run SoundCloud, **right click** on its icon in Unity Launcher and click **unintsall app**.
|
||||
|
||||
![](http://itsfoss.com/wp-content/uploads/2014/05/Uninstall_SoundCloud_Ubuntu.jpeg)
|
||||
|
||||
I am not much of a SoundCloud fan. I prefer [installing Spotify in Ubuntu][4] over any other streaming music app. What about you?
|
||||
|
||||
--------------------------------------------------------------------------------
|
||||
|
||||
via: http://itsfoss.com/install-soundcloud-ubuntu-1404/
|
||||
|
||||
译者:[译者ID](https://github.com/译者ID) 校对:[校对者ID](https://github.com/校对者ID)
|
||||
|
||||
本文由 [LCTT](https://github.com/LCTT/TranslateProject) 原创翻译,[Linux中国](http://linux.cn/) 荣誉推出
|
||||
|
||||
[1]:https://soundcloud.com/
|
||||
[2]:http://itsfoss.com/install-google-keep-ubuntu-1310/
|
||||
[3]:https://marketplace.firefox.com/
|
||||
[4]:http://itsfoss.com/install-spotify-ubuntu-1404/
|
Loading…
Reference in New Issue
Block a user