One of the most popular posts on my blog is this post about using rotary encoders on the attiny85. Unfortunately that post is mostly things I tried that didn’t work. A few months after writing that post I realized why it didn’t work and posted about that. And finally, I’ve figured out the solution, which you can see below. Continue reading “Rotary Encoder on the ATtiny85 – Part 2”
Pin Change interrupts on the Arduino have eluded me for awhile so when I finally figured them out last week, I also started messing with Pin Change Interrupts on the ATtiny. Unlike with the ATmega chips, examples are much harder to find for the ATtiny interrupts and even when you find them, I don’t think the quality is quite as good. So here is a simple guide to working with Pin Change Interrupts on the ATtiny85. Continue reading “Pin Change Interrupts on ATtiny85”
I’m working on a project where I need several sensors that communicate back to a central processor. Since I’ll have several of these sensors I need them to be cheap and the ATtiny85 jumped to mind. The only problem is that I’ve never used i2c with the ATtiny series before. I read dozens of “tutorials” about it from around the web and couldn’t find a nice simple example. This is my solution.
I previously covered a method of programming the ATtiny85 using an Arduino Duemilanove. However, my Duemilanove board isn’t working at the moment and I need to work on a project so I decided to program it with an Atmel AVRISP mkII programmer. Here are the simple steps, mostly so that I don’t have to lookup the pinouts online next time I need to do this. Continue reading “Programming an ATtiny85 with the AVRISP mkII”
One of the many projects I’m working on requires rotary encoders communicating with a drawing program running on a computer. As always, I’d prefer to do this as cheaply as possible and since I’m working with the ATtiny a lot lately, I thought I’d try it on that. Continue reading “Rotary Encoder with the ATtiny85”
One of the first things I wanted to work on after figuring out how to program the ATtiny85 was to get serial communication working. Turns out this is incredibly simple. You just have to use the standard software serial library and define the rx and tx pins. Continue reading “Software Serial on the ATtiny85”
I’ve got a few projects I’m
working on thinking about that just don’t make sense with an arduino, both for size and cost reasons. This post was originally going to be about how to program and ATtiny with the arduino IDE (don’t worry, I’ll get to this soon). As I was writing it, I started comparing chips and realized the distinctions weren’t as cut and dry as I thought. So instead, this post will be a comparison of some of the popular Atmel chips: the ATmega328 used in the Arduino Uno, the ATmega2560 used in the Arduino Mega, the ATtiny84, ATtiny85, and ATtiny2313. Continue reading “Comparison of ATmel chips”