hey guys... total beginner here... got my arduino uno and did some basic experimenting... but the more i read/research, the more i realize i may do fine with ATtiny45... but confirmation from some experts would be great!.. with that said, here's the relevant portion of my sketch:
That servo library will not work on Attiny45.
A while ago I too tried to control a servo with Attiny and came across (i believe) this » ATtiny45/85 Servo Library Cunning Turtle
However, I had issues with certain models of servo. One would work OK, the other acted unpredictably.
That being said it certainly can work depending on the servo you pick.
thank you! all of your replies are very helpful as i try to wrap my head around this task (i know it's probably super-basic for most but as i said, this is brand new to me)...
just so that i understand this correctly - is there a downside to using Atmega328 even if it's "overkill" when Attiny45 would suffice?.. is it only the cost? (i assume Atmega328 costs a bit more?)... obviously if that's the only drawback, i'm happy to live with it to avoid the extra steps that Attiny45 involves...
LarryD:
Use a Atmega 328 purchased for $4.00 plus crystal caps a resistors in a standalone version.
You can then run the same code the UNO can.
Why not use the 328P internal oscillator? Then no crystal (or it's glue) is needed.
And, an Arduino UNO with a ZIF socket installed would make a really neat platform for development. Start with a 328P with a bootloader, write and compile to your heart's content, then burn the final version in with "#define F_CPU 8000000" in the source and use AVRDUDE to change the fuses to internal oscillator.