Lilypad для arduino

Arduino.ru

Arduino Lilypad

Общие сведение

Платформа Arduino LilyPad разработана с целью использования как часть одежды. Она может быть зашита в ткань со встроенными источниками питания, датчиками и приводами с проводкой. Платформа построена на микроконтроллере ATmega168V (маломощная версия с ATmega168) (технические данные) или ATmega328V (технические данные). Arduino LilyPad была создана Leah Buechley и SparkFun Electronics.

Схема и исходные данные

Характеристики

Внимание: запрещается подключать напряжение, превышающее 5.5 В, или менять его полюсы, это может повредить платформу.

Программирование

Платформа программируется посредством ПО Arduino версии 0010 или выше. Однако, имеется возможность записи программы ранними версия ПО Arduino, но при этом некоторые функции недоступны.

Микроконтроллеры ATmega168V и ATmega328V поставляются с записанным загрузчиком, облегчающим запись новых программ через ПО Arduino.. Имеется возможность не использовать загрузчик и запрограммировать ATmega через выводы ICSP (внутрисхемное программирование). Подробная информация находится в данной инструкции.

Питание

Arduino LilyPad может получать питание через подключение USB или от внешнего источника питания.

Напряжение внешнего источника питания должно составлять от 2.7 и 5.5 В. Напряжение может подаваться через преобразователь AC/DC (блок питания) или аккумуляторной батареей. Запрещается подключать напряжение, превышающее 5.5 В, или менять его полюсы, это может повредить платформу.

Физические характеристики

Платформа LilyPad имеет форму круга диаметром 50 мм. Толщина платформы составляет 0.8 мм, а в месте установки микроконтроллера и выводов — 3 мм.

Стойкость к стирке

Имеется возможность стирать платформу. Рекомендуется использовать мягкие моющие средства. Не следует отжимать. Перед началом стирки необходимо отключить питание.

Источник

Getting Started with the LilyPad Arduino USB

Like the other LilyPad Arduino boards, the LilyPad Arduino USB is designed to be sewn into clothing and other fabric with conductive thread. The LilyPad Arduino can be powered either from the USB connection or a 3.7V LiPo battery. The board runs at 3.3V; applying more voltage (e.g. 5V) to its pins may damage it. If you connect a USB cable from a computer and a LiPo battery to the LilyPad, it will charge the battery. The switch on the LilyPad allows you to turn the board on or off (use the «CHG» position to turn the board off).

Similar to the Arduino Leonardo and Micro, the LilyPad Arduino uses only a single microcontroller (the Atmel ATmega32U4) to both run your sketches and communicate over USB with the computer. This means that you only need a USB cable to program the LilyPad Arduino USB (as opposed to an FTDI USB-serial adaptor as with other LilyPads) but it also means that there are some differences in the way that the USB communication works.

The LilyPad Arduino USB is programmed using the Arduino Software (IDE), our Integrated Development Environment common to all our boards and running both online and offline. For more information on how to get started with the Arduino Software visit the Getting Started page.

Use your LilyPad Arduino USB on the Arduino Web IDE

All Arduino boards, including this one, work out-of-the-box on the Arduino Web Editor, you only need to install Arduino Create Agent to get started.

The Arduino Web Editor is hosted online, therefore it will always be up-to-date with the latest features and support for all boards. Follow this simple guide to start coding on the browser and upload your sketches onto your board.

Use your LilyPad Arduino USB on the Arduino Desktop IDE

If you want to program your LilyPad Arduino USB while offline you need to install the Arduino Desktop IDE.

Connect the board

Connect the Arduino board to your computer using the USB 2 Serial adapter and a USB cable.

Open your first sketch

Open the LED blink example sketch: File > Examples >01.Basics > Blink.

Select your board type and port

You’ll need to select the entry in the Tools > Board menu that corresponds to your Arduino board.

Upload the program

Now, simply click the «Upload» button in the environment. Wait a few seconds. If the upload is successful, the message «Done uploading.» will appear in the status bar.

Learn more on the Desktop IDE

See this tutorial for a generic guide on the Arduino IDE with a few more infos on the Preferences, the Board Manager, and the Library Manager.

Tutorials

Now that you have set up and programmed your LilyPad Arduino USB board, you may find inspiration in our Project Hub tutorial platform.

Please Read.

Differences from Other LilyPad Arduino Boards

The LilyPad Arduino USB uses a single processor (the ATmega32U4) to both run your sketches and communicate over USB with the computer. This provides more flexibility — for example, the board can emulate a keyboard or mouse — but it also means that the USB connection resets whenever the processor does (e.g. when you upload a new sketch).

For details on these differences, see the guide to the Arduino Leonardo and Micro. In addition, see the following section for a few differences between the LilyPad USB and the Leonardo or Micro.

Differences from the Leonardo and Micro

Because it operates at 3.3V, the LilyPad Arduino USB is limited to an 8 MHz clock speed vs. 16 MHz for the Leonardo and Micro. Your sketches should behave the same on either board (e.g. delay(1000) will pause for 1 second), but it’s important to correctly select the appropriate board in the boards menu. Uploading to a LilyPad Arduino USB with the board set to «Arduino Leonardo» or «Arduino Micro» will mean that your sketch won’t be able to communicate over USB (and the timing of other things will be off). If this does happen, you’ll need to recover using the method described in the next section.

About Uploading Sketches to the LilyPad USB

Typically, you’ll upload to the LilyPad Arduino USB as you do with other Arduino boards: select «LilyPad Arduino USB» from the Tools > Board menu and the appropriate serial port from the Tools > Serial Port menu and press the upload button. This will reset the LilyPad, launching the bootloader, which receives the new sketch from the computer and stores it on the board. The bootloader then automatically launches the new sketch. You can tell when the bootloader is running because the on-board (pin 13) LED will fade in and out (breathe).

Sometimes, however, this automatic reset fails. This can happen, for example, if you upload a sketch to the LilyPad with a different board (e.g. the Leonardo or Micro) selected in the Tools menu. If this does happen, there’s an easy fix: you can press the reset button on the LilyPad twice in quick succession to initiate the bootloader. To upload with this technique, first press the upload button in the Arduino software; then, when you see the status message «Uploading. » press the reset button twice. This should initiate the bootloader, and the Arduino software will upload your sketch. You might have to play a bit with the relative timing of pressing the upload button in the software vs. the double-press of the reset button on the board.

Additional Resources

LilyPad Arduino USB product page: details about the board’s hardware and software LilyPad Category on SparkFun: sensors, actuators, and other boards for use with the LilyPad Arduino

The text of the Arduino getting started guide is licensed under a Creative Commons Attribution-ShareAlike 3.0 License. Code samples in the guide are released into the public domain.

Источник

LilyPad Arduino Simple

LAST REVISION: 10/05/2022, 01:00 PM

The LilyPad Arduino Simple board

Unlike the LilyPad Arduino Main Board, the LilyPad Simple has only 9 pins for input/output. Additionally, it has a JST connector and a built in charging circuit for Lithium Polymer batteries. The board is based on the ATmega328.

The LilyPad Arduino Simple was designed and developed by Leah Buechley and SparkFun Electronics.

You can find your board warranty information here.

Getting Started

In the Getting Started section, you can find all the information you need to configure your board, use the Arduino Software (IDE), and start to tinker with coding and electronics. SparkFun Electronics has a range of accessories for use with the LilyPad Arduinos.

Need Help?

  • On the board on the LilyPad Arduino Simple Page
  • On Projects on the Arduino Forum
  • On the Product itself through our Customer Support

Documentation

OSH: Schematics

Lilypad Simple is open-source hardware! You can build your own board using the following files:

Power

The LilyPad Arduino Simple can be powered via an external power supply or an FTDI compatible adapter like the USBSerial Light Adapter.

The board can be turned on and off with the on-board switch. When the board is unplugged from an FTDI adapter and powered via a battery, the switch turns the board on and off; with the switch in the ON position, the microcontroller receives power and the board runs and with the switch in the OFF position, the microcontroller doesn’t receive power. When the board is powered via an FTDI adapter, the board remains on all of the time; with the switch in the ON position, the microcontroller receives power from the battery (or the FTDI board via the battery charging circuit if no battery is attached) and with the switch in the OFF position, the microcontroller receives power from the FTDI adapter.

An external power supply should provide between 2.7 and 5.5 volts. The Lilypad Simple is designed with battery use in mind; 3.7 volt Lithium Polymer batteries can be plugged directly into the on-board JST connector. Again, don’t power the LilyPad Arduino Simple with more than 5.5 volts, or plug the power in backwards: you’ll kill it.

The board contains a MCP73831 LiPo battery charging chip. If the board is connected to both a FTDI connection and a battery, the FTDI power will charge the battery. This is true regardless of the position of the switch. The LED adjacent to the switch lights up while the battery is being charged. The charging will stop automatically when the battery is fully charged.

Because of the battery charging circuit, it is not possible to power components like a BluetoothВ® modem via the FTDI connector.

Programming

The LilyPad Simple can be programmed with the Arduino Arduino Software (IDE). Select «LilyPad Arduino» from the Tools > Board menu. For details, see the LilyPad Arduino Getting Started Guide.

The ATmega328P on the LilyPad Arduino comes preburned with bootloader that allows you to upload new code to it with the Arduino software.

The LilyPad Simple does not have an onboard USBSerial adapter or USB connector. To program the board, you will need to use a FTDI compatible adapter like the USBSerial Light Adapter.

Inputs and Outputs

The LilyPad Simple has fewer inputs and outputs than the LilyPad Arduino Main Board. There are a total of 9 I/O pins on the Simple board, one exposed pin for +3.3VDC, and one pin for ground.

Each of the 9 digital I/O pins on the LilyPad Arduino Simple can be used as an input or output, using pinMode(), digitalWrite(), and digitalRead() functions. They operate at 5V volts. Each pin can provide or receive a maximum of 40 mA and has an internal pull-up resistor (disconnected by default) of 20 kOhms. In addition, some pins have specialized functions:

  • PWM: 5, 6, 9, 10, 11 Provide 8-bit PWM output with the analogWrite() function.
  • Analog Inputs: A2-A5. The LilyPad Simple Arduino has 4 analog inputs, labeled A2 through A5, 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.

Automatic (Software) Reset and Bootloader Initiation

Rather than requiring a physical press of the reset button before an upload, the LilyPad Simple Arduino is designed in a way that allows it to be reset by software running on a connected computer. The bootloader can also be initiated by pressing the reset button on the LilyPad Arduino Simple.

Because of the way the LilyPad Arduino Simple handles reset it’s best to let the Arduino software try to initiate the reset before uploading. If the software can’t reset the board you can always start the bootloader by pressing the reset button.

Physical Characteristics

The LilyPad Arduino Simple is a circle, approximately 50mm (2″) in diameter. The board itself is 0.8mm (1/32″) thick (approximately 3mm (1/8″) where electronics are attached).

Washability

We recommend washing projects in cold water by hand with a mild detergent. Drip dry. Do not dry clean or dry in a dryer. Remove the battery before washing the board!

Tech Specs

Microcontroller ATmega328P
Operating Voltage 2.7-5.5 V
Input Voltage 2.7-5.5 V
Digital I/O Pins 9
PWM Channels 5
Analog Input Channels 4
DC Current per I/O Pin 40 mA
Flash Memory 32 KB (of which 2 KB used by bootloader)
SRAM 2 KB
EEPROM 1 KB
Clock Speed 8 MHz

Warning: Don’t power the LilyPad Arduino with more than 5.5 volts, or plug the power in backwards, you’ll kill it.

Источник

LilyPad Arduino Main Board

LAST REVISION: 10/05/2022, 01:00 PM

The LilyPad Arduino Main Board

The LilyPad Arduino Main Board is based on the ATmega168V (the low-power version of the ATmega168) or the ATmega328V. The LilyPad Arduino was designed and developed by Leah Buechley and SparkFun Electronics.

You can find your board warranty information here.

Getting Started

In the Getting Started section, you can find all the information you need to configure your board, use the Arduino Software (IDE), and start to tinker with coding and electronics. SparkFun Electronics has a range of accessories for use with the LilyPad Arduino.

Need Help?

  • On Projects on the Arduino Forum
  • On the Product itself through our Customer Support

Tech Specs

Microcontroller ATmega168 or ATmega328V
Operating Voltage 2.7-5.5 V
Input Voltage 2.7-5.5 V
Digital I/O Pins 14
PWM Channels 6
Analog Input Channels 6
DC Current per I/O Pin 40 mA
Flash Memory 16 KB (of which 2 KB used by bootloader)
SRAM 1 KB
EEPROM 512 bytes
Clock Speed 8 MHz

Warning: Don’t power the LilyPad Arduino with more than 5.5 volts, or plug the power in backwards, you’ll kill it.

Источник

Adblock
detector