原创 After Arduino, ATtiny is next

2013-10-3 18:22 1125 12 12 分类: 消费电子

Many if not most people who visit this site have been doing electronic engineering and circuit design for quite some time. However, as Max recently pointed out in What? EEs who do not know how to solder?, often a gap exists between the high-level design people are doing and their experience with basic prototyping. A few of you have branched out and tried prototyping with an Arduino at home. A board for experimentation like this is great, but what if you want to take the next step and shrink your project down to something that could rest on your fingertip? Appropriately named, the ATtiny chip fits the bill.


Smaller than a quarter and costing around $3 when not purchased in bulk, this little guy has a lot going for it. It does have its limits, however. The small package only gives you five IO pins, or six if you count the reset input. It also has only 8 kilobytes of programming space. Like anything, it's important to know the component's appropriate use.


It's a good thing for ATtiny that many, many applications need only a few IO pins. Something trivial like making a single LED blink, or several blink in sequence, is perfect for this chip. Simple data recording might be another application, and I've personally used it to make a very small version of a useless machine. Unfortunately, like many of my hobby projects, this will likely remain in a permanent prototype state. It did work as planned, and was very tiny, but was never pretty.


When programming the ATtiny, you have a few options. You can buy a dedicated ISP, or in-system programmer, which I would imagine works well and takes some of the wiring complexity out of things. If you're going to be programming these chips on a regular basis, buying one of these would probably be a good idea. These can be found for ten dollars or less if you search around.


I, however, programmed my ATtiny using an Arduino as the ISP. This involved installing some software from MIT's High-Low Tech group to magically convert your faithful Ardino into a programmer. This is also explained well by Make's Matt Richardson in his article about how to "Shrinkify" your Arduino projects. If you'd like to use this technique and clean up the wiring, there has also been some talk about an Arduino shield to use with this.


Matt uses a Macintosh for his project, and I'm happy to report that I was also able to get it working under Ubuntu Linux after some finagling. Windows, as you would suspect, is also compatible with this operation. Once you have the installation worked out, you can program the ATtiny85 as you would your Arduino. There is a list of supported Arduino commands on the HLT site, so it's possible you'll have to modify your code to work correctly.


Jeremy Cook
Manufacturing Engineer
 

文章评论0条评论)

登录后参与讨论
相关推荐阅读
engineeringinvestigations 2016-04-15 17:57
The Tale of Exploding Capacitors: A true story
A few weeks ago, Max the Magnificent considered what was described as The Great Capacitor Plague o...
engineeringinvestigations 2016-03-18 21:41
Are your charging habits bad for your smartphone?
Well, this is can be quite a shock and no mistake. I've been happily toddling along through life u...
engineeringinvestigations 2015-10-30 21:43
Tinkering with the ethics knob
What a controversial word is “ethics,” with its explosive potential lending itself to varying i...
engineeringinvestigations 2015-05-29 18:04
Traffic lights failure
I saw something I never expected to see on the way home a few evenings ago -- a set of traffic lig...
engineeringinvestigations 2015-05-13 21:19
Distributed computing for warming the world
Until about a decade ago, thermal energy was considered almost entirely as an analogue, bulk pheno...
engineeringinvestigations 2015-03-27 14:56
When the Internet of Things break
The "Things" in our world are becoming increasingly complicated, and the failure modes a whole lot...
我要评论
0
12
1
2
3
4
5
6
7
8
9
0
关闭 热点推荐上一条 /4 下一条