Thanks for the comments - it's good to be asked these things as otherwise it'd never get captured!
daynehacks wrote:
"Moved away" meaning you are using atmel studio or something else? or are you still programing the "arduino" language with a different editor/compiler? I like the Arduino thing because its pretty easy for people to get a USBtiny programmer and the arduino software setup to program chips. A bit more complicated when using the RESET pin though like you're saying.
Yes, I started it using the Arduino IDE and did a lot of development there, but I found that I was losing a lot of cycles in the interrupt save/restore code (I'm an embedded software engineer, so this is a bit of a busman's holiday) so I switched initially to using Atmel Studio. Since I'm a Mac user, I had to run Atmel Studio on a VM, so once I had 'translated' the code to straight C, I moved to using command-line tools and
Make. Just prior to this I bought a TL866 EPROM programmer (for other repair work), which can also program the ATTiny85. The result is that I can type 'make flashcode' and get the program compiled and the processor programmed in less than 5 seconds

Much quicker than using the Arduino IDE. Using the programmer also means that I can repurpose the reset pin without a problem!
I will tidy up the code (and get the Arduino files compiling again) soon I hope.
daynehacks wrote:
Also, the "build guide" says MCP6002 for an opamp but the schematic shows different. I also see that only half of the opamp is being used, do you have a reason for that? or its just what you had?
I started using the TLV2472 because it was recommended somewhere as a good op amp for running off of a single supply and offered rail-to-rail input and output. Unfortunately it turns out that it's also more expensive than the ATTiny, and is over-specced for the stuff I wanted to use it for (the reconstruction filter on the PWM output of the processor, which tops out at about 20kHz). I looked around and found the MCP6002, which does the job and is much cheaper. Basically any op-amp allowing single supply operation (0-5v) and rail to rail input/output would do, but
budget was always a design constraint.
(Yes, half the chip is not used, but other designs will use both halves)
Hmm, I should probably write this rationale up somewhere
I'll update the schematic soon…