Go Down

Topic: attiny 85, any pointers?/ (Read 21 times) previous topic - next topic

winner10920

Im looking for something that uses the usi hardware for serial or spi, those are mostly what i use with peripherals

mr_electric

You can download the files from this link <http://hlt.media.mit.edu/?p=1695> I found it easier to leave the folder inside the Arduino's hardware folder, but you can use whichever method suits you best. Make sure you install the support for Arduino 1.0, for it is the one that has support for SPI, i2c, and NewSoftSerial...you will need to set the ATTiny's fuse settings to 8MHz which can be done by selecting "ATTiny85 8MHz" from the boards menu and clicking "Burn Bootloader" (it wont burn a boot loader, but set the fuses to 8MHz)..let me know if you have trouble...Ill try to get a video up


Cheers!
Mr_E

winner10920

Illdownload and try that out Monday when I get home,
That should set it to internal 8mhz right? I shouldn't need a resonator right?

mr_electric

Yup...it runs standalone..you'll only need a resonator/crystal if you set the fuses to 20MHz . I  was able to control an ultrasonic rangefinder and a servo from an ATTiny85 and transmit the servo postiton and sensor reading to my computer with a pair of XBee radios.. You'll just need to set it back to 1MHz to use the simple sketches like Blink and Fading.

Cheers,
Mr_E

winner10920

Why wouldn't simple sketches work? Does it affect millis() or something?

Go Up