ArticleslgStudy

computer science

AVR Butterfly

AVR Butterfly is a computer science topic covered in the lgStudy science library. This page brings together a partial reference excerpt, illustrations, worked examples, real-world applications and a short study plan, so you can understand AVR Butterfly rather than just read about it. In short: The AVR Butterfly is a battery-powered single-board microcontroller developed by Atmel and sold by Microchip Technology, which acquired Atmel in April 2016. It consists of an Atmel ATmega169PV Microcontroller, a liquid crystal display, joystick, speaker, serial port, real-time clock (RTC), internal flash memory, and sensors for temperature and voltage.

AVR Butterfly — main illustration
AVR Butterfly — illustration

Key takeaways

  • AVR Butterfly belongs to computer science; place it in that map before memorising details.
  • Learn the definition first, then one example that makes the definition concrete.
  • Connect AVR Butterfly to a quantity you can measure, compute or draw — that is where exam questions come from.
  • Reproduce the core statement of AVR Butterfly from memory before moving on to harder problems.

Reference excerpt

The AVR Butterfly is a battery-powered single-board microcontroller developed by Atmel and sold by Microchip Technology, which acquired Atmel in April 2016. It consists of an Atmel ATmega169PV Microcontroller, a liquid crystal display, joystick, speaker, serial port, real-time clock (RTC), internal flash memory, and sensors for temperature and voltage. The board is the size of a name tag and has a clothing pin on back so it can be worn as such after the user enters their name onto the LCD.

Feature set

LCD The AVR Butterfly demonstrates LCD driving by running a 14 segment, six alpha-numeric character display. However, the LCD interface consumes many of the I/O pins.

CPU & Speed The Butterfly's ATmega169 CPU is capable of speeds up to 8 MHz, however it is factory set by software to 2 MHz to preserve the button battery life. There are free replacement bootloaders available that will launch programs at 1, 2, 4 or 8 MHz speeds. Alternatively, this may be accomplished by changing the CPU prescaler in the application code.

Features ATmega169V AVR 8-bit CPU, including 16 Kbyte of Flash memory for code storage and 512 bytes of EEPROM for data storage 100-segment LCD (without backlight) 4-Mbit (512-Kbyte) AT45 flash memory 4-way Mini-Joystick with center push-button Light, temperature, and voltage (0-5 V range) sensors (light sensor no longer included due to the RoHS directive) Piezo speaker Solder pads for user-supplied connectors: 2 8-bit I/O ports, ISP, USI, JTAG RS232 level converter & interface (Cable and connector provided by end user) 3 V battery holder (CR2450 battery included)

Software The Butterfly comes preloaded with software that demonstrates many features of the ATmega169, including reading of the ambient light level and temperature and playback of musical notes. The device has a clothing-pin attached to the back, so it may be worn as a name tag — the "name" may be entered via the joystick or over the RS-232 port, and will scroll across the LCD.

Reprogramming The Butterfly can be freely reprogrammed using the same toolchains as for many other AVR controllers, for example using the Atmel AVR assembly language or the free integrated development environment (IDE) Atmel Studio for programming in C. A pre-installed bootloader allows the board to be re-programmed with a standard RS-232 serial port, requiring no special hardware. The board also has ISP and JTAG ports for in-circuit programming and debugging. All of these interfaces are implemented only as open soldering points, so the addition of some hardware is necessary to make them usable.

Butterfly projects and applications Several projects have been built using the Butterfly as a base platform, often with few or no additional parts:

There's an award-winning educational robot based around the Butterfly called the FlutterBot. Project ButtLoad offers free plans to convert the Butterfly into a portable AVR-ISP for programming other AVR devices. Several plans are available on the web to convert a Butterfly into an MP3 player. C Programming for Microcontrollers, a book for learning to program AVRs using C, was written for the Butterfly as development platform. The Butterfly Logger is an open source data logger based on the AVR Butterfly. The Butteruino project is a set of libraries to integrate the AVR Butterfly with the Arduino development environment.

References

External links Atmel's product page Getting Started Guide Archived 2005-09-04 at the Wayback Machine Butterfly Beginner Site Atmel AVR Butterfly Mini-FAQ for Linux

Illustrations

AVR Butterfly: AVR Butterfly Module
AVR Butterfly Module

Worked examples

Example 1 — a first encounter with AVR Butterfly

Start with the simplest possible case. Write down what AVR Butterfly claims or describes in one sentence, then invent the smallest concrete situation in which that sentence is true. In computer science, the smallest case is usually a single object, a single equation or a single measurement. Check that every symbol or term in your sentence has a meaning in that case.

Example 2 — changing one variable

Take the situation from Example 1 and change exactly one quantity: double it, halve it, or set it to zero. Predict what should happen to AVR Butterfly before you calculate. Comparing your prediction with the result is the fastest way to find out whether you understand the idea or only the words.

Example 3 — an exam-style question

Typical questions about AVR Butterfly ask you to (a) state it precisely, (b) apply it to given data, and (c) explain a limitation. Practise writing all three answers in under five minutes; the third part is what separates a full-mark answer from an average one.

Applications of AVR Butterfly

In research
AVR Butterfly appears in computer science research whenever the underlying quantities have to be modelled precisely. Papers usually cite it as a starting assumption and then explore where it breaks down.
In technology and industry
Engineering practice reuses AVR Butterfly in design rules, simulations and safety margins. Knowing the idea lets you read a specification sheet and understand why the numbers look the way they do.
In the classroom
AVR Butterfly is common in secondary-school and first-year university syllabi. It links to neighbouring topics Atmel microcontrollers, Educational hardware, Robotics hardware, so understanding it makes those chapters shorter.
In everyday life
Look for AVR Butterfly outside the textbook — in sport, cooking, traffic, electronics or the sky above you. An example you found yourself is remembered far longer than one you were given.
Ask Teacher Smith questions about this articleOpens your AI tutor with a question about “AVR Butterfly” →

How to study AVR Butterfly in 20 minutes

  1. Read the reference excerpt below once, without taking notes.
  2. Close the page and write down what AVR Butterfly means in your own words.
  3. Compare your version with the excerpt and mark what you missed.
  4. Work through the three examples above with pen and paper.
  5. Explain AVR Butterfly out loud to somebody else — or to Teacher Smith in the lgStudy chat.

Frequently asked questions

What is AVR Butterfly in simple terms?

The AVR Butterfly is a battery-powered single-board microcontroller developed by Atmel and sold by Microchip Technology, which acquired Atmel in April 2016. It consists of an Atmel ATmega169PV Microcontroller, a liquid crystal display, joystick, speaker, serial port, real-time clock (RTC), internal…

Why does AVR Butterfly matter?

Because it connects several computer science ideas at once: it gives you a definition you can apply, a quantity you can calculate, and a way to check whether a result is plausible.

How should I study AVR Butterfly?

Read the excerpt, restate it from memory, then work through the examples and applications listed on this page. The five-step study plan above takes about twenty minutes.

What does this page cover?

It gives you a compact reference excerpt plus original lgStudy explanations, examples, applications and study material on AVR Butterfly.

Tags

  • Atmel microcontrollers
  • Educational hardware
  • Robotics hardware
  • Single-board computers

Keep exploring