Arduino IDE をUbuntu10.04に導入
最近気になっていたArduinoを衝動買いしてしまいました。(雑誌のMakeに出ていた、つぶやく冷蔵庫を作ってみたかったもので)そこで、Arduino導入のメモです。
- 購入先:スイッチサイエンス http://www.switch-science.com/
- 購入品:Arduino Duemilanove 328 (最も標準的なArduino) http://www.switch-science.com/products/detail.php?product_id=281
- インストール手順のサイト:Install Arduino on Ubuntu Linux http://www.arduino.cc/playground/Linux/Ubuntu でarduinoツールの説明。
sudo apt-get update
sudo apt-get install arduino
でもその前にPPA(Private Package Archive)で Arduino-0018 package をgetする必要があるようで、素のままでは、「arduinoパッケージがありません」と言われてしまいます。ので、下記のサイトを参考にPPAをインストールしておきます。
- How do I use software from a PPA : https://launchpad.net/+help/soyuz/ppa-sources-list.html
Adding the PPA to Ubuntu 9.10 (Karmic) and later
If you're using the most recent version of Ubuntu (or any version from Ubuntu 9.10 onwards), you can add a PPA to your system with a single line in your terminal.
Step 1: On the PPA's overview page, look for the heading that reads Adding this PPA to your system. Make a note of the PPA's location, which looks like:
ppa:gwibber-daily/ppa
Step 2: Open a terminal and enter:
sudo add-apt-repository ppa:user/ppa-name
Replace ppa:user/ppa-name with the PPA's location that you noted above.
ここでPPA's locationはarduino-ubuntu-team つまり、sudo add-apt-repository ppa:arduino-ubuntu-team/ppa です。
Step 3: Now, as a one-off, you should tell your system to pull down the latest list of software from each archive it knows about, including the PPA you just added:
sudo apt-get update
Now you're ready to start installing software from the PPA!
ここで、ようやくapt-get でインストールできます。
sudo apt-get update
sudo apt-get install arduino
arduinoを起動したところ
次は、USB-serial の設定ですな。