ATTINY 85 Servo Library?

Hi everybody,

Is there a servo library for the Attiny 85 chip? I have an arduino I'd like to use as an ISP, and I am unsure of how to program the chip without using the arduino IDE.

Any help would be awesome!

I am running ubuntu btw.

Is there a servo library for the Attiny 85 chip?

As far as I know, the Arduino Servo Library has not been ported to the ATtiny85 processor.

I have an arduino I'd like to use as an ISP, and I am unsure of how to program the chip without using the arduino IDE.

I don't understand.

Thanks Dallas,

What I mean is, I can write software for the microcontroller in C or whatever, but I don't know how to go about programming this software to the device through a regular atmega 328 as an ISP. Does that make it more clear as to what I am trying to do?

omegacore: Thanks Dallas,

Who's Dallas?

What I mean is, I can write software for the microcontroller in C or whatever, but I don't know how to go about programming this software to the device through a regular atmega 328 as an ISP. Does that make it more clear as to what I am trying to do?

Yes. Your Arduino / 328 can be turned into an ISP by following these instructions... http://arduino.cc/en/Tutorial/ArduinoISP

...with the addition of a missing step...

1.5 Disable auto-reset. Instructions are available here... http://www.arduino.cc/playground/Main/DisablingAutoResetOnSerialConnection

Wiring instructions are available here... http://hlt.media.mit.edu/wiki/pmwiki.php?n=Main.ArduinoATtiny4585

There are several cores available... http://hlt.media.mit.edu/wiki/pmwiki.php?n=Main.ArduinoATtiny4585 http://sites.google.com/site/elettronicaarduinoesperimenti/Home/arduino-ide-and-attiny45 http://code.google.com/p/arduino-tiny/

[quote author=Coding Badly link=topic=55824.msg400010#msg400010 date=1300517995] Who's Dallas? [/quote]

On your post: Coding Badly / Dallas

He probably thinks your name is "Dallas" from the company "Coding Badly".

XD

K...

Oops, posted accidentally before I was even ready, should stop laughing while typing. And after all, I forget what was so important I started to post... :grin:

Cheers, Kari

XD

Oh man, I was sleepy/ not paying attention.

I kinda want to work on the port for the servo library now...

I am interested too, this is a good topic. Let's keep sharing if any information is available.

Cheers, Kari

The first problem is a lack of a 16 bit timer. The Servo library explicitly uses only 16 bit timers. Before touching the code, I suggest working through the math / algorithm on paper to make certain that an 8 bit timer provides enough resolution to reasonably control a servo.

Maybe it is just simplier to write timing code, so little I/O pins to take care, all resources can be used for two outputs. Or did I get the right impression from some topc, that all those pins can be used either way, in or out?

I really need to explore the datasheet, I need something simple to take care simple tasks.

Cheers, Kari