Difference between revisions of "Arduino"
m (→Links) |
m (Reverted edits by JasonAnderson (talk) to last revision by PhilippeTeuwen) |
||
(78 intermediate revisions by 2 users not shown) | |||
Line 2: | Line 2: | ||
==Links== |
==Links== |
||
+ | [http://en.wikipedia.org/wiki/Arduino Arduino on Wikipedia] |
||
===boards & clones=== |
===boards & clones=== |
||
− | ====Duemilanove==== |
+ | ====[http://arduino.cc/en/Main/ArduinoBoardDuemilanove Duemilanove] (SmartProjects)==== |
+ | The Duemilanove automatically selects the appropriate power supply (USB or external power), eliminating the need for the power selection jumper found on previous boards. It also adds an easiest to cut trace for disabling the auto-reset, along with a solder jumper for re-enabling it. |
||
− | based on the ATmega168 |
||
+ | |||
− | ====Decimilia==== |
||
− | based on the |
+ | based on the ATmega168, latest versions are based on ATmega328p |
+ | |||
− | * [http://arduino.cc/en/Main/ArduinoBoardDiecimila Arduino Decimilia board] |
||
+ | Clones: |
||
+ | * Roboduino |
||
+ | * [http://spiffie.org/kits/freeduino2009/ Freeduino 2009], an (almost) all through hole remake |
||
+ | * [http://www.ge-th.com/product.asp?id=118 Chinduino Duemilanove168-20PU] or [http://www.ge-th.com/product.asp?id=119 Duemilanove328-20PU] |
||
+ | |||
+ | "Make it better" clones: |
||
+ | * [http://www.freetronics.com/products/twentyten TwentyTen] by Freetronics. Nice small enhancements, but more expensive than the other clones... |
||
+ | |||
+ | ====[http://arduino.cc/en/Main/ArduinoBoardDecimilia Decimilia] (SmartProjects)==== |
||
+ | Version before Duemilanove, with a jumper to select the power supply (USB or external power) |
||
+ | |||
+ | based on the Atmega168, can be upgraded with a ATmega328 |
||
+ | |||
+ | Clones: |
||
* [http://www.nuelectronics.com/estore/index.php?main_page=product_info&cPath=1&products_id=1 Freeduino V1.16 Board] |
* [http://www.nuelectronics.com/estore/index.php?main_page=product_info&cPath=1&products_id=1 Freeduino V1.16 Board] |
||
+ | * Freeduino MaxSerial |
||
* HACEduino "2009" |
* HACEduino "2009" |
||
+ | * Fino168 USB Board |
||
− | ====Nano==== |
||
+ | ** with a DIP switch to disable auto-reset and D13 LED |
||
− | The Arduino Nano is a small, complete, and breadboard-friendly board based on the ATmega328 (Arduino Nano 3.0) or ATmega168 (Arduino Nano 2.x). It has more or less the same functionality of the Arduino Duemilanove, but in a different package. It lacks only a DC power jack, and works with a Mini-B USB cable instead of a standard one |
||
+ | * Duino168 Serial Board |
||
− | * Arduino Nano |
||
+ | ** with a DIP switch to disable auto-reset and D13 LED |
||
+ | * Duino328 Serial Board |
||
+ | ** with a DIP switch to disable auto-reset and D13 LED |
||
+ | * [http://www.makershed.com/ProductDetails.asp?ProductCode=MKSEEED2&Click=19209 Seeeduino] |
||
+ | |||
+ | ====[http://arduino.cc/en/Main/ArduinoBoardLilypad Lilypad] (SparkFun)==== |
||
+ | based on the ATmega168V on v03 (the low-power version of the ATmega168) or the ATmega328V on v04 |
||
+ | |||
+ | ====[http://arduino.cc/en/Main/ArduinoBoardPro Pro] (SparkFun)==== |
||
+ | based on the ATmega168 or ATmega328. The Pro comes in both 3.3V / 8 MHz and 5V / 16 MHz versions. It has 14 digital input/output pins (of which 6 can be used as PWM outputs), 6 analog inputs, a battery power jack, a power switch, a reset button, and holes for mounting a power jack, an ICSP header, and pin headers. A six pin header can be connected to an FTDI cable or Sparkfun breakout board to provide USB power and communication to the board. |
||
+ | |||
+ | The Arduino Pro is intended for semi-permanent installation in objects or exhibitions. The board comes without pre-mounted headers, allowing the use of various types of connectors or direct soldering of wires. The pin layout is compatible with Arduino shields. The 3.3V versions of the Pro can be powered with a battery. |
||
+ | |||
+ | Take care that the embedded power regulator is smaller and outputs max 150mA |
||
+ | |||
+ | ====[http://arduino.cc/en/Main/ArduinoBoardProMini Pro Mini] (SparkFun)==== |
||
+ | based on the ATmega168. It has 14 digital input/output pins (of which 6 can be used as PWM outputs), 6 analog inputs, an on-board resonator, a reset button, and holes for mounting pin headers. A six pin header can be connected to an FTDI cable or Sparkfun breakout board to provide USB power and communication to the board. |
||
+ | |||
+ | The Arduino Pro Mini is intended for semi-permanent installation in objects or exhibitions. The board comes without pre-mounted headers, allowing the use of various types of connectors or direct soldering of wires. The pin layout is compatible with the Arduino Mini. |
||
+ | |||
+ | There are two version of the Pro Mini. One runs at 3.3V and 8 MHz, the other at 5V and 16 MHz. |
||
+ | |||
+ | ====[http://www.arduino.cc/en/Main/ArduinoBoardNano Nano] (Gravitech)==== |
||
+ | small, complete, and breadboard-friendly board based on the ATmega328 (Arduino Nano 3.0) or ATmega168 (Arduino Nano 2.x). It has more or less the same functionality of the Arduino Duemilanove, but in a different package. It lacks only a DC power jack, and works with a Mini-B USB cable instead of a standard one |
||
+ | |||
+ | Clones: |
||
* DFRoduino Nano |
* DFRoduino Nano |
||
* [http://littlegreenmartian.net/index.php?page=shop.product_details&category_id=1&flypage=flypage.tpl&product_id=5&option=com_virtuemart&Itemid=55&vmcchk=1&Itemid=55 HACEduino 2009 Nano] |
* [http://littlegreenmartian.net/index.php?page=shop.product_details&category_id=1&flypage=flypage.tpl&product_id=5&option=com_virtuemart&Itemid=55&vmcchk=1&Itemid=55 HACEduino 2009 Nano] |
||
+ | |||
− | ====Mega==== |
||
+ | ====[http://www.arduino.cc/en/Main/ArduinoBoardMini Mini] (SmartProjects)==== |
||
+ | based on the ATmega168 |
||
+ | |||
+ | the smallest of the serie. It has 14 digital input/output pins (of which 6 can be used as PWM outputs), 8 analog inputs, and a 16 MHz crystal oscillator. It can be programmed with the Mini USB adapter or other USB or RS232 to TTL serial adapter. |
||
+ | |||
+ | ====[http://arduino.cc/en/Main/ArduinoBoardMega Mega] (SmartProjects)==== |
||
based on the ATmega1280 |
based on the ATmega1280 |
||
54 Digital I/O Pins (of which 14 provide PWM) / 16 Analog Input Pins |
54 Digital I/O Pins (of which 14 provide PWM) / 16 Analog Input Pins |
||
+ | |||
− | * Arduino Mega AVR ATmega1280 USB board |
||
+ | ====Other clones or derivatives==== |
||
+ | * [http://spiffie.org/kits/iduino/ iDuino], a breadboardable version |
||
+ | * [http://www.adafruit.com/index.php?main_page=index&cPath=19 Boarduino], another breadboardable version, see also [http://www.ladyada.net/make/boarduino/ here] |
||
+ | * [http://spiffie.org/kits/stickduino/ Stickduino], USB Stick Sized Arduino Clone |
||
+ | * [http://spiffie.org/kits/duinostamp/ DuinoStamp] |
||
+ | * [http://moderndevice.com/RBBB_revB.shtml Really Bare Bones Board], minimalist, smallest one? |
||
+ | * [http://leaflabs.com/devices/maple/], compatible with Arduino but powered by a 72MHz ARM core! |
||
+ | * [http://timewitharduino.blogspot.com/2009/07/introducing-wiseduino.html Wiseduino], an Arduino-compatible microcontroller board, which includes a DS1307 real time clock (RTC) with backup battery, a 24LC256 EEPROM chip and a connector for XBee adapter for wireless communication. |
||
+ | * [http://lab.guilhermemartins.net/2009/05/06/paperduino-prints/ Paperduino] |
||
+ | * [http://www.liquidware.com/shop/show/ILL/Illuminato Illuminato], 42 I/O pins and 64K code space, powered with a ATmega645, see also [http://antipastohw.blogspot.com/2009/01/introducing-illuminato-100-gnu-gpld.html here] |
||
+ | * [http://www.pjrc.com/teensy/index.html Teensy], based on ATMEGA32U4 or AT90USB646 for Teensy++, small & cheap |
||
+ | * [http://www.hackinglab.org/pinguino/index_pinguino.html Pinguino], similar concept, based on a PIC |
||
+ | * [http://www.myamicus.co.uk/content.php?115-Amicus18-Board Amicus18] uses a Microchip PIC® micro microcontroller instead of an Atmel AVR type |
||
+ | * [http://www.varesano.net/projects/hardware/Femtoduino Femtoduino], the smallest one, for sure! |
||
===Officials=== |
===Officials=== |
||
Line 26: | Line 88: | ||
* [http://www.lulu.com/content/1108699 Arduino notebook v6] |
* [http://www.lulu.com/content/1108699 Arduino notebook v6] |
||
* [http://www.ladyada.net/learn/arduino/index.html Tutorial], [http://ahmedriaz.com/mind/esketching4designers/ video tutorials] and [http://www.arduino.cc/en/Tutorial/HomePage other examples] |
* [http://www.ladyada.net/learn/arduino/index.html Tutorial], [http://ahmedriaz.com/mind/esketching4designers/ video tutorials] and [http://www.arduino.cc/en/Tutorial/HomePage other examples] |
||
+ | * [http://arduino.cc/en/Reference/Extended Extended Language Reference] |
||
+ | * [http://www.arduino.cc/en/Hacking/Programmer Burning sketches to the Arduino board with an external programmer] |
||
+ | * [http://www.amazon.com/gp/search/ref=sr_adv_b/?search-alias=stripbooks&field-title=arduino Several books] on Amazon... |
||
+ | * [http://shieldlist.org/ Arduino shield List] & pinouts... |
||
+ | * [http://makezine.com/arduino/] Arduino by Make |
||
+ | |||
+ | ===Programmers=== |
||
+ | * [http://code.google.com/p/mega-isp/ In System Programmers based on the AVR Mega8 chip, including Arduino(tm)] |
||
+ | * [http://www.mightyohm.com/blog/2008/09/arduino-based-avr-high-voltage-programmer/ Arduino-based AVR High Voltage Programmer] |
||
+ | |||
===Hardware=== |
===Hardware=== |
||
====Shopping==== |
====Shopping==== |
||
+ | * [http://www.sparkfun.com/commerce/categories.php?c=103 SparkFun] |
||
* [http://www.adafruit.com/ Adafruit] |
* [http://www.adafruit.com/ Adafruit] |
||
* [http://www.nuelectronics.com/estore/ nuelectronics] |
* [http://www.nuelectronics.com/estore/ nuelectronics] |
||
+ | * [https://www.watterott.com/Arduino-project Watterott] |
||
+ | * [http://store.fundamentallogic.com/ecom/ FundamentalLogic] & [http://spiffie.org/electronics/ Spiff's Electronics] |
||
+ | * [http://www.nkcelectronics.com/arduino.html NKC Electronics] |
||
+ | * [http://www.ge-th.com GE-TH], General Electronics Tech, located in ShenZhen, China |
||
+ | * [http://be01.rs-online.com/web/search/searchBrowseAction.html?method=searchProducts&searchTerm=arduino RS] |
||
+ | * [http://www.cooking-hacks.com/index.php/shop/arduino.html Cooking-hacks] by libelium, nice shields... |
||
+ | |||
====Ethernet==== |
====Ethernet==== |
||
[http://www.adafruit.com/index.php?main_page=product_info&cPath=17&products_id=83 Ethernet shield] |
[http://www.adafruit.com/index.php?main_page=product_info&cPath=17&products_id=83 Ethernet shield] |
||
Line 41: | Line 121: | ||
====Misc links to explore==== |
====Misc links to explore==== |
||
* http://www.freeduino.org/ |
* http://www.freeduino.org/ |
||
+ | * http://enerduino.blogspot.com/2009/12/enerduino-english.html |
||
+ | * SDcard http://www.arduino.cc/cgi-bin/yabb2/YaBB.pl?num=1206874649/8 |
||
+ | |||
+ | ===Software=== |
||
+ | * [http://fritzing.org/ Fritzing] is an open-source initiative to support designers, artists, researchers and hobbyists to work creatively with interactive electronics. |
||
+ | * [http://nootropicdesign.com/toolduino/ Toolduino] lets you easily interact with your Arduino hardware so you can test the circuits you create. Toolduino is written in the Processing languange and is available for Windows, Mac OS X, and Linux. |
||
+ | ** The Arduino must be running the [http://firmata.org/wiki/Main_Page Firmata firmware] that comes with the Arduino IDE |
||
+ | * [http://www.modk.it/ ModKit] is a HTML5 visual programming environment for Arduino |
||
+ | * [http://seaside.citilab.eu/scratch/arduino Scratch for Arduino]. Scratch is a learning environment developed by the Lifelong Kindergarten Group at MIT Media Lab |
||
==Arduino and Linux== |
==Arduino and Linux== |
||
Line 65: | Line 154: | ||
tar xzf arduino-0017.tgz |
tar xzf arduino-0017.tgz |
||
Arduino tools are coming only for 32bit but it contains only a few executables so let's install the 64bit version of those executables |
Arduino tools are coming only for 32bit but it contains only a few executables so let's install the 64bit version of those executables |
||
+ | <br>Initially I did the following: |
||
aptitude install librxtx-java |
aptitude install librxtx-java |
||
rm arduino-0017/lib/librxtxSerial.so |
rm arduino-0017/lib/librxtxSerial.so |
||
+ | But at time of writing, Debian was only proposing v2.1.7 and if uploading sketches to the Arduino worked, launching the serial monitor provoked a big crash of Java. So better to follow [http://feelslikeburning.com/2009/08/21/how-to-get-arduino-0017-working-on-64-bit-linux-including-ubuntu-9-04/ this post]: |
||
+ | <br>''Download [http://rxtx.qbang.org/wiki/index.php/Download rxtx-2.2pre2-bins] from the RXTX folks. Extract the files, and copy RXTXcomm.jar and x86_64-unknown-linux-gnu/librxtxSerial.so to the Arduino lib/ directory, basically replacing the two files that came shipped with Arduino 0017.'' |
||
+ | |||
+ | |||
There is also the avrdude binary in arduino-0017 which is compiled as 32bit executable. |
There is also the avrdude binary in arduino-0017 which is compiled as 32bit executable. |
||
<br>You can recompile it from the source or if you have the ia32-libs package, the 32bit binary provided will work out-of-the-box. |
<br>You can recompile it from the source or if you have the ia32-libs package, the 32bit binary provided will work out-of-the-box. |
||
Line 102: | Line 196: | ||
Version 5.8 |
Version 5.8 |
||
So apparently we need absolutely to use the special arduino version. |
So apparently we need absolutely to use the special arduino version. |
||
+ | ===Using USBtinyISP=== |
||
+ | USBtinyISP is not driven by a USB-to-serial converter or a driver but by libusb. |
||
+ | <br>Therefore you must have the right to use libusb. |
||
+ | <br>As running the IDE as root is not a very wise solution, here is another one using udev: |
||
+ | * Create /etc/udev/rules.d/usbtiny.rules |
||
+ | # udev rules file for USBtinyISP (for udev 0.98 version) |
||
+ | |||
+ | SUBSYSTEM!="usb|usb_device", GOTO="usbtiny_rules_end" |
||
+ | ACTION!="add", GOTO="usbtiny_rules_end" |
||
+ | ATTRS{idVendor}=="1781", ATTRS{idProduct}=="0c9f", ATTRS{product}=="USBtiny", MODE="0664", GROUP="plugdev" |
||
+ | LABEL="usbtiny_rules_end" |
||
+ | * Restart udev |
||
+ | /etc/init.d/udev restart |
||
+ | * Add yourself to the plugdev group if not yet done |
||
+ | adduser toto plugdev |
||
+ | * Unplug and plug back your USBtiny board |
||
+ | ===Monitoring avrdude calls=== |
||
+ | One annoyance of the GUI is that I don't know what the GUI is doing with avrdude so I wanted to intercept & log the calls to avrdude: |
||
+ | <br>In arduino-0017/hardware/tools move avrdude to avrdude.orig |
||
+ | <br>Then create a script called avrdude (make it executable!) with: |
||
+ | script -q -a $(dirname $0)/avrdude.log -c "echo \"$0 $*\" && $0.orig $*" |
||
+ | It will creates a logfile called avrdude.log in the same directory and as bonus you'll see also directly the calls to avrdude with all the arguments in the GUI console. |
||
+ | |||
+ | ==Projects== |
||
+ | ===[[Arduino Brucon|Brucon Blink blink]]=== |
||
+ | ===[[Arduino VFD brightness|VFD brightness control]]=== |
||
+ | ===[[Arduino EMF|Yet another EMF detector]]=== |
||
+ | ===[[Arduino Photoduino|Photoduino]]=== |
||
+ | Personal notes about a wonderful spanish project |
||
+ | ===[[Arduino PDU]]=== |
||
+ | |||
+ | ==TODO & ideas== |
||
+ | * Temperature alarm for tea preparation |
||
+ | * LED cube? |
||
+ | * POV sth? sphere? |
||
+ | |||
+ | ==My stuff== |
||
+ | * [http://www.nuelectronics.com/estore/index.php?main_page=product_info&cPath=1&products_id=1 Freeduino V1.16 Board] |
||
+ | * [http://www.arduino.cc/en/Main/ArduinoEthernetShield EthShield SD] |
||
+ | * [http://arduino.cc/en/Main/ArduinoBoardPro Arduino Pro] 5V 16MHz w/ ATmega328 |
||
+ | ** [http://www.sparkfun.com/commerce/product_info.php?products_id=9115 FTDI Basic Breakout 5V] |
||
+ | * [http://www.ladyada.net/make/boarduino/ USB Boarduino] w/ ATmega328 |
||
+ | * [http://www.ladyada.net/make/usbtinyisp/ USBtinyISP] |
||
+ | * [http://leaflabs.com/devices/maple/ Maple w/ ARM 72MHz] |
||
+ | * [http://www.ladyada.net/make/tvbgone/ TV-B-Gone Kit] |
||
+ | |||
+ | ==TV-B-Gone== |
||
+ | * [http://www.tvbgone.com/cfe_tvbg_main.php As a product] |
||
+ | ** [http://www.tvbgone-fr.com/blog/index.php?Accueil French site] |
||
+ | * [http://www.ladyada.net/make/tvbgone/index.html As a kit] |
||
+ | ** [http://forums.adafruit.com/viewforum.php?f=23 Forum] |
||
+ | ** Issue to use ISP? See [http://forums.adafruit.com/viewtopic.php?t=4438 here], in short it's easier to use a breadboard or [http://tinkerlog.com/howto/tiny25-header/ Tiny25 header]... |
||
+ | * [https://code.google.com/p/tv-b-gone/ Yet another clone] |
Latest revision as of 16:02, 2 March 2016
So after the Arduino workshop at BruCON 2009 (pics here), I was seduced by this little development board.
Links
boards & clones
Duemilanove (SmartProjects)
The Duemilanove automatically selects the appropriate power supply (USB or external power), eliminating the need for the power selection jumper found on previous boards. It also adds an easiest to cut trace for disabling the auto-reset, along with a solder jumper for re-enabling it.
based on the ATmega168, latest versions are based on ATmega328p
Clones:
- Roboduino
- Freeduino 2009, an (almost) all through hole remake
- Chinduino Duemilanove168-20PU or Duemilanove328-20PU
"Make it better" clones:
- TwentyTen by Freetronics. Nice small enhancements, but more expensive than the other clones...
Decimilia (SmartProjects)
Version before Duemilanove, with a jumper to select the power supply (USB or external power)
based on the Atmega168, can be upgraded with a ATmega328
Clones:
- Freeduino V1.16 Board
- Freeduino MaxSerial
- HACEduino "2009"
- Fino168 USB Board
- with a DIP switch to disable auto-reset and D13 LED
- Duino168 Serial Board
- with a DIP switch to disable auto-reset and D13 LED
- Duino328 Serial Board
- with a DIP switch to disable auto-reset and D13 LED
- Seeeduino
Lilypad (SparkFun)
based on the ATmega168V on v03 (the low-power version of the ATmega168) or the ATmega328V on v04
Pro (SparkFun)
based on the ATmega168 or ATmega328. The Pro comes in both 3.3V / 8 MHz and 5V / 16 MHz versions. It has 14 digital input/output pins (of which 6 can be used as PWM outputs), 6 analog inputs, a battery power jack, a power switch, a reset button, and holes for mounting a power jack, an ICSP header, and pin headers. A six pin header can be connected to an FTDI cable or Sparkfun breakout board to provide USB power and communication to the board.
The Arduino Pro is intended for semi-permanent installation in objects or exhibitions. The board comes without pre-mounted headers, allowing the use of various types of connectors or direct soldering of wires. The pin layout is compatible with Arduino shields. The 3.3V versions of the Pro can be powered with a battery.
Take care that the embedded power regulator is smaller and outputs max 150mA
Pro Mini (SparkFun)
based on the ATmega168. It has 14 digital input/output pins (of which 6 can be used as PWM outputs), 6 analog inputs, an on-board resonator, a reset button, and holes for mounting pin headers. A six pin header can be connected to an FTDI cable or Sparkfun breakout board to provide USB power and communication to the board.
The Arduino Pro Mini is intended for semi-permanent installation in objects or exhibitions. The board comes without pre-mounted headers, allowing the use of various types of connectors or direct soldering of wires. The pin layout is compatible with the Arduino Mini.
There are two version of the Pro Mini. One runs at 3.3V and 8 MHz, the other at 5V and 16 MHz.
Nano (Gravitech)
small, complete, and breadboard-friendly board based on the ATmega328 (Arduino Nano 3.0) or ATmega168 (Arduino Nano 2.x). It has more or less the same functionality of the Arduino Duemilanove, but in a different package. It lacks only a DC power jack, and works with a Mini-B USB cable instead of a standard one
Clones:
- DFRoduino Nano
- HACEduino 2009 Nano
Mini (SmartProjects)
based on the ATmega168
the smallest of the serie. It has 14 digital input/output pins (of which 6 can be used as PWM outputs), 8 analog inputs, and a 16 MHz crystal oscillator. It can be programmed with the Mini USB adapter or other USB or RS232 to TTL serial adapter.
Mega (SmartProjects)
based on the ATmega1280
54 Digital I/O Pins (of which 14 provide PWM) / 16 Analog Input Pins
Other clones or derivatives
- iDuino, a breadboardable version
- Boarduino, another breadboardable version, see also here
- Stickduino, USB Stick Sized Arduino Clone
- DuinoStamp
- Really Bare Bones Board, minimalist, smallest one?
- [1], compatible with Arduino but powered by a 72MHz ARM core!
- Wiseduino, an Arduino-compatible microcontroller board, which includes a DS1307 real time clock (RTC) with backup battery, a 24LC256 EEPROM chip and a connector for XBee adapter for wireless communication.
- Paperduino
- Illuminato, 42 I/O pins and 64K code space, powered with a ATmega645, see also here
- Teensy, based on ATMEGA32U4 or AT90USB646 for Teensy++, small & cheap
- Pinguino, similar concept, based on a PIC
- Amicus18 uses a Microchip PIC® micro microcontroller instead of an Atmel AVR type
- Femtoduino, the smallest one, for sure!
Officials
- Arduino official website
Documentation
- Arduino notebook v6
- Tutorial, video tutorials and other examples
- Extended Language Reference
- Burning sketches to the Arduino board with an external programmer
- Several books on Amazon...
- Arduino shield List & pinouts...
- [2] Arduino by Make
Programmers
- In System Programmers based on the AVR Mega8 chip, including Arduino(tm)
- Arduino-based AVR High Voltage Programmer
Hardware
Shopping
- SparkFun
- Adafruit
- nuelectronics
- Watterott
- FundamentalLogic & Spiff's Electronics
- NKC Electronics
- GE-TH, General Electronics Tech, located in ShenZhen, China
- RS
- Cooking-hacks by libelium, nice shields...
Ethernet
LCD
- Tutorial with LiquidCrystal library, for Hitachi HD44780 compatible LCDs
Misc links to explore
- http://www.freeduino.org/
- http://enerduino.blogspot.com/2009/12/enerduino-english.html
- SDcard http://www.arduino.cc/cgi-bin/yabb2/YaBB.pl?num=1206874649/8
Software
- Fritzing is an open-source initiative to support designers, artists, researchers and hobbyists to work creatively with interactive electronics.
- Toolduino lets you easily interact with your Arduino hardware so you can test the circuits you create. Toolduino is written in the Processing languange and is available for Windows, Mac OS X, and Linux.
- The Arduino must be running the Firmata firmware that comes with the Arduino IDE
- ModKit is a HTML5 visual programming environment for Arduino
- Scratch for Arduino. Scratch is a learning environment developed by the Lifelong Kindergarten Group at MIT Media Lab
Arduino and Linux
Installation
Main instructions are here
As I'm using a Debian AMD 64bit, here is what I did:
Installing java from Sun and making sure it will be called by the tools. It might be that other java suites are working but at least java-gcj is missing a GtkLookAndFeel component that Arduino GUI is using
So if you don't have it yet:
aptitude install sun-java6-jre
Then if it's not the one by default, change it: (maybe "java" is enough but let's be consistent)
update-alternatives --config java update-alternatives --config jar update-alternatives --config keytool update-alternatives --config orbd update-alternatives --config rmid update-alternatives --config rmiregistry update-alternatives --config serialver
Other dependencies:
aptitude install avr-libc gcc-avr
Arduino tools, here v0017:
wget http://arduino.googlecode.com/files/arduino-0017.tgz tar xzf arduino-0017.tgz
Arduino tools are coming only for 32bit but it contains only a few executables so let's install the 64bit version of those executables
Initially I did the following:
aptitude install librxtx-java rm arduino-0017/lib/librxtxSerial.so
But at time of writing, Debian was only proposing v2.1.7 and if uploading sketches to the Arduino worked, launching the serial monitor provoked a big crash of Java. So better to follow this post:
Download rxtx-2.2pre2-bins from the RXTX folks. Extract the files, and copy RXTXcomm.jar and x86_64-unknown-linux-gnu/librxtxSerial.so to the Arduino lib/ directory, basically replacing the two files that came shipped with Arduino 0017.
There is also the avrdude binary in arduino-0017 which is compiled as 32bit executable.
You can recompile it from the source or if you have the ia32-libs package, the 32bit binary provided will work out-of-the-box.
But in any ways, DON'T USE AVRDUDE FROM YOUR DISTRO! because the one provided with the Arduino tools is a patched version.
Now let's try to launch the script arduino-0017/arduino
Tools/SerialPort/"/dev/ttyUSB0" Tools/Board/"Arduino Diecimila, Duemilanove or Nanoe, w/ Atmega168"
Now trying the very first code:
See this tuto
Problem with the original avrdude
As I told in the previous section, don't use the avrdude coming with your distro. Initially this is what I did and here are the problems I faced:
aptitude install avrdude avrdude-doc cd arduino-0017/hardware/tools mv avrdude avrdude.disabled mv avrdude.conf avrdude.conf.disabled ln -s /usr/bin/avrdude ln -s /etc/avrdude.conf
DON'T USE AVRDUDE FROM YOUR DISTRO! Then when trying to upload the bin to the board (menu -> Upload to I/O board), I got the following message:
Binary sketch size: 896 bytes (of a 14336 byte maximum) avrdude: Yikes! Invalid device signature. Double check connections and try again, or use -F to override this check.
Then I tried to inject the -F option to avrdude, it flashed the chip, gave me still errors:
Wrong microcontroller found. Did you select the right board in the Tools > Board menu? avrdude: Yikes! Invalid device signature. avrdude: Expected signature for ATMEGA168 is 1E 94 06
But the code was apparently correctly uploaded to the board as I got my blinking LED...
Avrdude which is part of the arduino-0017 release is a patched version as it says:
Version 5.4-arduino
While the version in Debian Squeeze is:
Version 5.8
So apparently we need absolutely to use the special arduino version.
Using USBtinyISP
USBtinyISP is not driven by a USB-to-serial converter or a driver but by libusb.
Therefore you must have the right to use libusb.
As running the IDE as root is not a very wise solution, here is another one using udev:
- Create /etc/udev/rules.d/usbtiny.rules
# udev rules file for USBtinyISP (for udev 0.98 version) SUBSYSTEM!="usb|usb_device", GOTO="usbtiny_rules_end" ACTION!="add", GOTO="usbtiny_rules_end" ATTRS{idVendor}=="1781", ATTRS{idProduct}=="0c9f", ATTRS{product}=="USBtiny", MODE="0664", GROUP="plugdev" LABEL="usbtiny_rules_end"
- Restart udev
/etc/init.d/udev restart
- Add yourself to the plugdev group if not yet done
adduser toto plugdev
- Unplug and plug back your USBtiny board
Monitoring avrdude calls
One annoyance of the GUI is that I don't know what the GUI is doing with avrdude so I wanted to intercept & log the calls to avrdude:
In arduino-0017/hardware/tools move avrdude to avrdude.orig
Then create a script called avrdude (make it executable!) with:
script -q -a $(dirname $0)/avrdude.log -c "echo \"$0 $*\" && $0.orig $*"
It will creates a logfile called avrdude.log in the same directory and as bonus you'll see also directly the calls to avrdude with all the arguments in the GUI console.
Projects
Brucon Blink blink
VFD brightness control
Yet another EMF detector
Photoduino
Personal notes about a wonderful spanish project
Arduino PDU
TODO & ideas
- Temperature alarm for tea preparation
- LED cube?
- POV sth? sphere?
My stuff
- Freeduino V1.16 Board
- EthShield SD
- Arduino Pro 5V 16MHz w/ ATmega328
- USB Boarduino w/ ATmega328
- USBtinyISP
- Maple w/ ARM 72MHz
- TV-B-Gone Kit
TV-B-Gone
- As a product
- As a kit
- Forum
- Issue to use ISP? See here, in short it's easier to use a breadboard or Tiny25 header...
- Yet another clone