0-E000017 Arduino LilyPad USB - ATmega32U4 <p><font color="#262626" size="2" face="Arial, Helvetica, sans-serif">The LilyPad Arduino USB is a microcontroller board based on the ATmega32u4. It has 9 digital input/output pins (of which 4 can be used as PWM outputs and 4 as analog inputs), an 8 MHz resonator, a micro USB connection, a JST connector for a 3.7V LiPo battery, and a reset button. It contains everything needed to support the microcontroller; simply connect it to a computer with a USB cable or power it with a battery to get started.
</font></p>
<p><font color="#262626" size="2" face="Arial, Helvetica, sans-serif">The LilyPad Arduino USB differs from previous LilyPad boards in that the ATmega32u4 has built-in USB communication, eliminating the need for a separate USB-to-serial adapter. This allows the LilyPad Arduino USB to appear to a connected computer as a mouse and keyboard, in addition to a virtual (CDC) serial / COM port. It also has other implications for the behavior of the board.</font></p>
<p><font color="#cccccc" size="2" face="Arial, Helvetica, sans-serif">Power</font><font color="#262626" size="2" face="Arial, Helvetica, sans-serif"><br />
The LilyPad Arduino USB can be powered via the micro USB connection or with a 3.7V LiPo battery (connected to the JST connector on the board). Either power source is regulated down to the operating voltage (3.3V) by the on-board MIC5219.
The board can be turned on and off with the on-board switch. With the switch in the ON position, the microcontroller receives power and the board runs. With the switch in the "CHG" position, the microcontroller doesn't receive power. (This is true whether the board is powered via USB or a battery.)
</font></p>
<p><font color="#262626" size="2" face="Arial, Helvetica, sans-serif">The board contains a MCP73831 LiPo battery charging chip. If the board is connected to both USB and a battery, the USB power will charge the battery. This is true regardless of the position of the switch. The LED above the word "CHG" lights up while the battery is being charged. The charging will stop automatically when the battery is fully charged.
</font></p>
<p><font color="#262626" size="2" face="Arial, Helvetica, sans-serif">The power pins are as follows:<br />
- + The regulated 3.3V power supply used to power the microcontroller and other components on the board. This can come either from the USB connection or a battery, both via the on-board regulator. This pin is only powered when the on-board switch is in the ON position.<br />
- - Ground pin.</font></p>
<p><font color="#cccccc" size="2" face="Arial, Helvetica, sans-serif">Memory</font><font color="#262626" size="2" face="Arial, Helvetica, sans-serif"><br />
The ATmega32u4 has 32 KB (with 4 KB used for the bootloader). It also has 2.5 KB of SRAM and 1 KB of EEPROM (which can be read and written with the EEPROM library).</font></p>
<p><font color="#cccccc" size="2" face="Arial, Helvetica, sans-serif">Input and Output</font><font color="#262626" size="2" face="Arial, Helvetica, sans-serif"><br />
Each of the 9 digital i/o pins on the LilyPad Arduino USB can be used as an input or output, using pinMode(), digitalWrite(), and digitalRead() functions. They operate at 3.3V volts. Each pin can provide or receive a maximum of 40 mA and has an internal pull-up resistor (disconnected by default) of 20-50 kOhms. In addition, some pins have specialized functions:<br />
-TWI: 2 (SDA) and 3 (SCL). Support TWI communication using the Wire library.<br />
-External Interrupts: 2 and 3. These pins can be configured to trigger an interrupt on a low value, a rising or falling edge, or a change in value. See the attachInterrupt() function for details.<br />
-PWM: 3, 9, 10, 11, and 13. Provide 8-bit PWM output with the analogWrite() function.<br />
-LED: 13. There is a built-in LED connected to digital pin 13. When the pin is HIGH value, the LED is on, when the pin is LOW, it's off.<br />
-Analog Inputs: A2-A5. The LilyPad Arduino USB has 4 analog inputs, labeled A0 through A11, all of which can also be used as digital i/o. Each analog input provide 10 bits of resolution (i.e. 1024 different values). By default the analog inputs measure from ground to 5 volts, though is it possible to change the upper end of their range using the analogReference() function.</font></p>
<p><font color="#cccccc" size="2" face="Arial, Helvetica, sans-serif">Communication</font><font color="#262626" size="2" face="Arial, Helvetica, sans-serif"><br />
The LilyPad Arduino USB has a number of facilities for communicating with a computer, another Arduino, or other microcontrollers. The 32U4 also allows for serial (CDC) communication over USB and appears as a virtual com port to software on the computer. The chip also acts as a full speed USB 2.0 device, using standard USB COM drivers. On Windows, a .inf file is required. The Arduino software includes a serial monitor which allows simple textual data to be sent to and from the Arduino board. The RX and TX LEDs on the board will flash when data is being transmitted via the USB connection to the computer.</font></p>
<p><font color="#262626" size="2" face="Arial, Helvetica, sans-serif"> A SoftwareSerial library allows for serial communication on any of the LilyPad's digital pins.
The LilyPad Arduino USB also supports I2C (TWI). The Arduino software includes a Wire library to simplify use of the I2C bus; see the documentation for details.
The LilyPad Arduino USB appears as a generic keyboard and mouse, and can be programmed to control these input devices using the Keyboard and Mouse classes.</font></p>
<p><font color="#cccccc" size="2" face="Arial, Helvetica, sans-serif">Programming</font><font color="#262626" size="2" face="Arial, Helvetica, sans-serif"><br />
The LilyPad Arduino USB can be programmed with the Arduino software. Select "LilyPad Arduino USB" from the Tools > Board menu (according to the microcontroller on your board). For details, see the reference and tutorials.
The ATmega32U4 on the LilyPad Arduino USB comes preburned with a bootloader that allows you to upload new code to it without the use of an external hardware programmer. It communicates using the AVR109 protocol.
</font></p>
<p><font color="#262626" size="2" face="Arial, Helvetica, sans-serif">You can also bypass the bootloader and program the microcontroller through the ICSP (In-Circuit Serial Programming) header. While the holes are too small to insert pins into, you can insert male header pins into the ISP connector on your programmer and press them against the ICSP header on the board (from above). </font></p>
<p><font color="#cccccc" size="2" face="Arial, Helvetica, sans-serif">Automatic (Software) Reset and Bootloader Initiation</font><font color="#262626" size="2" face="Arial, Helvetica, sans-serif"><br />
Rather than requiring a physical press of the reset button before an upload, the LilyPad Arduino USB is designed in a way that allows it to be reset by software running on a connected computer. The reset is triggered when the LilyPad's virtual (CDC) serial / COM port is opened at 1200 baud and then closed. When this happens, the processor will reset, breaking the USB connection to the computer (meaning that the virtual serial / COM port will disappear). After the processor resets, the bootloader starts, remaining active for about 8 seconds. The bootloader can also be initiated by pressing the reset button on the LilyPad Arduino USB twice in quick in succession. Pressing the reset button once will reset the board and jump directly to the user sketch, bypassing the bootloader. Note that when the board first powers up, it will jump straight to the user sketch, if present, rather than initiating the bootloader.
</font></p>
<p><font color="#262626" size="2" face="Arial, Helvetica, sans-serif">Because of the way the LilyPad Arduino USB handles reset it's best to let the Arduino software try to initiate the reset before uploading, especially if you are in the habit of pressing the reset button before uploading on other boards. If the software can't reset the board you can always start the bootloader by pressing the reset button on the board twice in quick succession.</font></p>
<table width="100%" border="1" cellspacing="0" cellpadding="0">
<tr>
<td colspan="2"><font color="#cccccc" size="2" face="Arial, Helvetica, sans-serif">Specs</font></td>
</tr>
<tr>
<td><font color="#262626" size="2" face="Arial, Helvetica, sans-serif">Microcontroller</font></td>
<td><font color="#262626" size="2" face="Arial, Helvetica, sans-serif">ATmega32u4</font></td>
</tr>
<tr>
<td><font color="#262626" size="2" face="Arial, Helvetica, sans-serif">Operating Voltage</font></td>
<td><font color="#262626" size="2" face="Arial, Helvetica, sans-serif">3.3V</font></td>
</tr>
<tr>
<td><font color="#262626" size="2" face="Arial, Helvetica, sans-serif">Input Voltage</font></td>
<td><font color="#262626" size="2" face="Arial, Helvetica, sans-serif">3.8-5V</font></td>
</tr>
<tr>
<td><font color="#262626" size="2" face="Arial, Helvetica, sans-serif">Digital I/O Pins</font></td>
<td><font color="#262626" size="2" face="Arial, Helvetica, sans-serif">9</font></td>
</tr>
<tr>
<td><font color="#262626" size="2" face="Arial, Helvetica, sans-serif">PWM Channels</font></td>
<td><font color="#262626" size="2" face="Arial, Helvetica, sans-serif">4</font></td>
</tr>
<tr>
<td><font color="#262626" size="2" face="Arial, Helvetica, sans-serif">Analog Input Channels</font></td>
<td><font color="#262626" size="2" face="Arial, Helvetica, sans-serif">4</font></td>
</tr>
<tr>
<td><font color="#262626" size="2" face="Arial, Helvetica, sans-serif">DC Current per I/O</font></td>
<td><font color="#262626" size="2" face="Arial, Helvetica, sans-serif">40 mA</font></td>
</tr>
<tr>
<td><font color="#262626" size="2" face="Arial, Helvetica, sans-serif">Flash Memory</font></td>
<td><font color="#262626" size="2" face="Arial, Helvetica, sans-serif">32 KB (4 KB used by bootloader)</font></td>
</tr>
<tr>
<td><font color="#262626" size="2" face="Arial, Helvetica, sans-serif">SRAM</font></td>
<td><font color="#262626" size="2" face="Arial, Helvetica, sans-serif">2.5 KB</font></td>
</tr>
<tr>
<td><font color="#262626" size="2" face="Arial, Helvetica, sans-serif">EEPROM</font></td>
<td><font color="#262626" size="2" face="Arial, Helvetica, sans-serif">1 KB</font></td>
</tr>
<tr>
<td><font color="#262626" size="2" face="Arial, Helvetica, sans-serif">Clock Speed</font></td>
<td><font color="#262626" size="2" face="Arial, Helvetica, sans-serif">8 MHz</font></td>
</tr>
</table>

Arduino LilyPad USB - ATmega32U4
The LilyPad Arduino USB differs from previous LilyPad boards in that the ATmega32u4 has built-in USB communication, eliminating the need for a separate USB-to-serial adapter.

$22.99
Robot MarketPlace - Arduino LilyPad USB - ATmega32U4

Electronics
    Arduino


Click photo to enlarge.

Arduino LilyPad USB - ATmega32U4
Part# 0-E000017




Please see this product on the new Robot MarketPlace web site. Click here