<?xml version="1.0" encoding="utf-8" standalone="yes"?><rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom"><channel><title>attiny on irq5 test</title><link>https://irq5-7854a1fdb9f4.pages.dev/tag/attiny/</link><description>Recent content in attiny on irq5 test</description><language>en-us</language><lastBuildDate>Sat, 09 Sep 2017 12:47:00 +0000</lastBuildDate><atom:link href="https://irq5-7854a1fdb9f4.pages.dev/tag/attiny/feed/" rel="self" type="application/rss+xml"/><item><title>Writing Code for the ATtiny10</title><link>https://irq5-7854a1fdb9f4.pages.dev/2017/09/writing-code-for-the-attiny10/</link><pubDate>Sat, 09 Sep 2017 12:47:00 +0000</pubDate><guid>https://irq5-7854a1fdb9f4.pages.dev/2017/09/writing-code-for-the-attiny10/</guid><description>&lt;p>I previously wrote about the hardware aspects of
&lt;a href=https://irq5-7854a1fdb9f4.pages.dev/2010/07/programming-the-attiny10/ rel=noopener>getting your code into an ATtiny10&lt;/a> some 7 years ago
(wow that was &lt;em>realllyy&lt;/em> a long time ago!).&lt;/p>&lt;p>Now, avrdude is at version 6.3 and
the TPI bitbang implementation has already been integrated in.
The upstream avr-gcc (and avr-libc) also have proper support for ATtiny10s now.
These software components are bundled with most distributions,
including the &lt;a href=https://www.arduino.cc/en/Main/Software rel=noopener target=_blank class=external>Arduino IDE&lt;/a>,
making it easily accessible for anyone.
Previously a fully integrated and working toolchain only came from Atmel and it was behind a registration page.&lt;/p>&lt;p>The price of the ATtiny10 has also dropped by a lot.
When I first bought this microcontroller in 2010,
element14 carried it for $1.85 in single quantities.
Now, they are only $0.56 each.&lt;/p>&lt;p>I thought I&amp;rsquo;d write up a short post about writing and compiling code for it.&lt;/p>&lt;p>&lt;picture>&lt;source srcset=/posts/2017/img/attiny10-closeup.jpg.webp type=image/webp>&lt;img src=https://irq5-7854a1fdb9f4.pages.dev/posts/2017/img/attiny10-closeup.jpg alt="ATtiny10 on a prototyping board" width=1023 height=682>&lt;/picture>&lt;/p>&lt;p>&lt;a href="https://irq5-7854a1fdb9f4.pages.dev/2017/09/writing-code-for-the-attiny10/#more">Continue reading…&lt;/a>&lt;/p></description></item><item><title>DIY Optical Slave Flash</title><link>https://irq5-7854a1fdb9f4.pages.dev/2012/03/diy-optical-slave-flash/</link><pubDate>Sat, 24 Mar 2012 01:13:00 +0000</pubDate><guid>https://irq5-7854a1fdb9f4.pages.dev/2012/03/diy-optical-slave-flash/</guid><description>&lt;p>I found a couple of old disposable cameras in storage that I played around with 15 years ago, shorting the caps to make a loud bang, wiring up the flash trigger to a remote-controlled relay kit I had assembled. I thought I&amp;rsquo;d do something useful with them.&lt;/p>&lt;p>I decided to turn them into optical slave flashes, since on-camera flashes are not very flexible. I was thinking of a way to detect the camera flash so that the slave could be fired, maybe using an LDR with the ADC to detect an increase in light intensity? It turns out there&amp;rsquo;s an even easier way to do this - with an infrared sensor. Apparently when flash tubes are fired, they give off infrared which can be detected more reliably than light intensity changes. When I read about this, I tested it out with a simple Arduino sketch and it works as advertised.&lt;/p>&lt;p>Disposable cameras usually have metal contacts that are placed near the shutter mechanism. When the shutter opens, the contacts are closed and if the flash was charged it would fire. To control the flash firing, I replaced the contacts with an SCR.&lt;/p>&lt;p>&lt;picture>&lt;source srcset=/posts/2012/img/flash-scr.jpg.webp type=image/webp>&lt;img src=https://irq5-7854a1fdb9f4.pages.dev/posts/2012/img/flash-scr.jpg alt width=499 height=395>&lt;/picture>&lt;/p>&lt;p>&lt;a href="https://irq5-7854a1fdb9f4.pages.dev/2012/03/diy-optical-slave-flash/#more">Continue reading…&lt;/a>&lt;/p></description></item><item><title>Reducing power usage on the iCufflinks' ATtiny4</title><link>https://irq5-7854a1fdb9f4.pages.dev/2011/08/reducing-power-usage-on-the-icufflinks-attiny4/</link><pubDate>Sat, 27 Aug 2011 14:24:00 +0000</pubDate><guid>https://irq5-7854a1fdb9f4.pages.dev/2011/08/reducing-power-usage-on-the-icufflinks-attiny4/</guid><description>I came across this very nice article which documents steps taken to reduce the power usage on the ATtiny4 used in the iCufflinks.
The process managed to shave off about 315 μA, which boosts battery life quite a bit:
The overall effect this has on the product is that the 24 hour time between battery changes can be upped to 38 hours. That is a pretty good power savings for the day.&lt;p>&lt;a href="https://irq5-7854a1fdb9f4.pages.dev/2011/08/reducing-power-usage-on-the-icufflinks-attiny4/#more">Continue reading…&lt;/a>&lt;/p></description></item><item><title>Programming the ATtiny10</title><link>https://irq5-7854a1fdb9f4.pages.dev/2010/07/programming-the-attiny10/</link><pubDate>Thu, 15 Jul 2010 22:03:00 +0000</pubDate><guid>https://irq5-7854a1fdb9f4.pages.dev/2010/07/programming-the-attiny10/</guid><description>&lt;p>Recently I wanted to use a really tiny, low pin-count microcontroller for a project, so I decided to buy a few &lt;strong>Atmel ATtiny10&lt;/strong> to experiment with.&lt;/p>&lt;p>To get it working, I would need a compiler and a programmer. I like working with Atmel chips because they have cross-platform development tools. The Arduino IDE that I&amp;rsquo;ve been using comes with &lt;em>avr-gcc&lt;/em> and &lt;em>avrdude&lt;/em>, both of which are really awesome open source tools for compiling and uploading code to the microcontrollers. If you just want the tools without the Arduino IDE, you can get the WinAVR package.&lt;/p>&lt;p>However both of these tools do not work with the ATtiny10 yet. I do not expect a C compiler, but even the GNU assembler that comes with avr-gcc still doesn&amp;rsquo;t support this chip. avrdude recently added support for uploading to the ATtiny10, but only through the STK or AVRISP programmer, which I didn&amp;rsquo;t want to fork out money to buy.&lt;/p>&lt;p>&lt;a href="https://irq5-7854a1fdb9f4.pages.dev/2010/07/programming-the-attiny10/#more">Continue reading…&lt;/a>&lt;/p></description></item></channel></rss>