background preloader

Programming an ATtiny w/ Arduino 0022

Programming an ATtiny w/ Arduino 0022
This tutorial shows you how to program an ATtiny45 or ATtiny85 microcontroller using the Arduino software and hardware. The ATtiny45 and ATtiny85 are small (8-leg), cheap ($2-3) microcontrollers that are convenient for running simple programs. This tutorial is obsolete! See the updated version of this tutorial (with support for Arduino 1.0). They are almost identical, except that the ATtiny85 has twice the memory of the ATtiny45 and can therefore hold more complex programs. We like to use both of them with paper circuits and other craft electronics. Materials and Tools For this tutorial, you’ll need: Arduino Uno or Duemilanove (w/ an ATmega328, not an older board with an ATmega168) ATtiny45 or ATtiny85 (8-pin DIP package) a 10 uF capacitor (e.g. from Sparkfun or from Digi-Key ) a breadboard jumper wires For more information, see our list of materials and parts and our list of prototyping supplies . Software Download: Arduino software , attiny45_85.zip The ATtiny45 / ATtiny85 Microcontroller

http://hlt.media.mit.edu/?p=1229

Related:  juguetesATTINYArduino

arduino-tiny - ATtiny core for Arduino Arduino-Tiny is an open source set of ATtiny "cores" for the Arduino platform. The Arduino platform currently supports Atmel ATmega processors. There is a need for the Arduino platform to work with physically smaller DIP package processors. The intent of this project is fulfill that need. Program an ATtiny Using an Arduino I am a big fan of the Arduino platform. For those who aren’t familiar with the Arduino, it is a microprocessor development environment & ecosystem. You can visit their site for more info.

PortManipulation Reference Language | Libraries | Comparison | Changes Port registers allow for lower-level and faster manipulation of the i/o pins of the microcontroller on an Arduino board. The chips used on the Arduino board (the ATmega8 and ATmega168) have three ports: B (digital pin 8 to 13) C (analog input pins) D (digital pins 0 to 7) Each port is controlled by three registers, which are also defined variables in the arduino language. The DDR register, determines whether the pin is an INPUT or OUTPUT.

V-USB - A Firmware-Only USB Driver for Atmel AVR Microcontrollers V-USB is a software-only implementation of a low-speed USB device for Atmel’s AVR® microcontrollers, making it possible to build USB hardware with almost any AVR® microcontroller, not requiring any additional chip. V-USB can be licensed freely under the GNU General Public License or alternatively under a commercial license. A comprehensive set of example projects demonstrates the wide range of possible applications. ATtiny breadboard headers These tiny controller boards are build to provide a quick start for projects with 8 and 20 pin AVR microcontrollers, e.g. ATtiny13, ATtiny45, ATtiny85 and ATtiny2313. They don’t include any fancy stuff, they are just as simple as possible. Where is the problem? Whenever I was prototyping on a breadboard I was annoyed by all the wires to setup before the actual project could begin. Arduino projects were much easier.

playground - BitMath Note: This page was inspired by a conversation that took place in the Arduino forum. Table of Contents Introduction Often when programming in the Arduino environment (or on any computer, for that matter), the ability to manipulate individual bits will become useful or even necessary. Here are some situations where bit math can be helpful: Bot Thoughts: I2C: mbed reading from Arduino Quite some time ago, I covered how to get two AVRs talking to each other using the I2C protocol. Here's how to get an mbed and AVR talking with I2C, with the mbed acting as Master and the AVR acting as Slave. Let's say you want the mbed to query the Arduino to respond with 4 bytes of data. The mbed will write an address byte with the read bit set, using the Arduino's address, and then it'll request to read four bytes. The protocol exchange looks like this:

protolab / TutorialSensors This group of tutorials will help you work with the continuous input values provided by analog sensors - potentiometers, accelerometers, distance rangers, etc. Dimmer: Fading an LED with a Potentiometer In this example we'll build a light dimmer: a knob connected to a light so that when you turn the knob, the light increases or decreases in brightness. We'll use a potentiometer (Wikipedia entry). The potentiometer has three terminals - the resistance between the first and the third terminal is constant (10k Ohms in our case). Arduino based analog device curve tracer In analog electronics component characteristics are very important criteria. If in digital circuit transistors mostly work in key mode then analog circuits whole volt-ampere characteristics matter. Most datasheets have these characteristics plotter out but sometimes this may be not enough. In this case why not to plot them by yourself. Of course you can do this with simple circuit and multimeter or do this automatically with free tools. As you know Arduino read analog signals with ADC inputs and output ones with pwm.

Guilherme Martins : PAPERduino continues to inspire others Everytime I see PAPERduino’s being featured in blogs, websites, and other people projects I feel joy! This time I have the surprise of looking at the Concurrency website, the new multithread language for Arduino, and I see the PAPERduino giving this guys the ideia of taking it to a higher level, I present you the Cardboarduino: “The Cardboarduino is physically larger than the PAPERduino, and includes space for a 9V battery clip.” The bottom shows all of the pins that need to be soldered together with wire.

ATtiny85 Proto Shield - Arduino StartGroup – Scott Lichtenstein The ATTiny by Atmel has been one of my favorite Arduino accessories since reading the blog post: “How-To: Shrinkify Your Arduino Projects” by Make Magazine. Since then I have made numerous projects including the “KNOCKturnal Watch” (details coming soon) that are 100% based on this chip. Since I am an Arduino fan and programming “newbie”, I prefer to use the method of programing this chip outline in this tutorial by MIT Media Lab’s High-Low Tech Group. However the amount of setup time and messy wires made the programming aspect a pain.

Arduino BiCMOS Curve Tracer Arduino BiCMOS Curve Tracer The curves above can be done with a Arduino board, a solderless breadboard, a dual Rail to Rail Input/Output Op amp, a few resistors and capacitors, and some free software. Everything

Related: