Go Down

Topic: Standalone proects (Read 7202 times) previous topic - next topic

strykeroz


Thanks a lot guys. I will be ordering a bunch of Attiny85's and using the Arduino Uno as the programmer. :D
Make sure to keep an ATmega328P or two in the parts draw to cater for project scope creep too :D
"There is no problem so bad you can't make it worse"
- retired astronaut Chris Hadfield

FallenDemon

Okay so turns out my local electronics store had some Attiny85 chips. Does the Arduino 1.0 software not support the core attiny45_85 files? I get an error while even compiling the Blink skecth while using Attiny85 w/Arduino as ISP. So it has nothing to do with the wiring or hardware side. I get the error, "OUTPUT not declared in this scope."

strykeroz


Okay so turns out my local electronics store had some Attiny85 chips. Does the Arduino 1.0 software not support the core attiny45_85 files? I get an error while even compiling the Blink skecth while using Attiny85 w/Arduino as ISP. So it has nothing to do with the wiring or hardware side. I get the error, "OUTPUT not declared in this scope."
Not out of the box, no.  You'll need to add some functionality - check http://hlt.media.mit.edu/?p=1695 for instructions on what to do and what to download.  If you decide to use someone else's ATtiny core software the instructions are still the same.
"There is no problem so bad you can't make it worse"
- retired astronaut Chris Hadfield

FallenDemon

Okay I found the core for 1.0. However when I go to Tools>Board which one do I choose? The exact chip came from here...http://www.newark.com/jsp/search/productdetail.jsp?SKU=68T3808&CMP=AFC-GB100000001

However the core includes choices for external and internal clocks.

strykeroz

If you're not using an external crystal in your circuit, it's internal.  Select the 1MHz one if you're using the chip out of the box, as it were, or the 8MHz one if you've followed the instructions to set the chip to 8.

Cheers ! Geoff
"There is no problem so bad you can't make it worse"
- retired astronaut Chris Hadfield

FallenDemon

I would assume to set it to 8? What is the difference?

strykeroz

Hi, Read the instructions in the link I posted above.  It shows how to change it to 8 from the factory default of 1.  It's for SoftwareSerial compatibility in the main but it's all explained there.  Cheers ! Geoff
"There is no problem so bad you can't make it worse"
- retired astronaut Chris Hadfield


mikerr

I've just ordered a pile of Attiny85's (they're really cheap!) to make permanent versions of a few of my arduino projects,
but while I'm waiting:

what are the main limitations of an Attiny85 over a Arduino Uno ?

- lower memory and less I/O ports
- port numbers differently

but will all the same code generally work with a recompile ?

e.g the easy servo drivers, i2c stuff for wii acceleromters etc ?

AIUI I'll have to configure them to 8Mhz, use arduino as an ISP, and download a few files for the IDE, but am I missing anything else ?

strykeroz

#39
May 22, 2012, 03:16 pm Last Edit: May 22, 2012, 03:19 pm by strykeroz Reason: 1
Sounds like you want a lot of pins you won't have.  Make sure you don't want many analog or PWM pins, and be mindful if you play with spi you lose the USI pins in one go.  I found the RAM was a big limitation for using one with an infrared controller...amazing how fast you can chew it up.

Remember one of the legs is also the reset so it has limitations too.  And of course there's no serial monitor for debug messages.

On the flip side I found using one with a pair of shift registers was a breeze for adding 16 digital outputs...but by the time you do that you could have bought an ATMega328 for the price and had more RAM...

And I've not strictly answered your question.  Compared with a UNO you lose power regulation, USB, shields, the ability to have SPI & I2C at the same time, the onboard status LEDs...but I'm pretty sure you were asking to contrast the 2 processors when used standalone...

You will have fun, though in my short time playing with them I find I think of a project that suits ATTiny and code for it from the start rather than migrating a working Arduino project to the smaller chippies.

Cheers!
Geoff
"There is no problem so bad you can't make it worse"
- retired astronaut Chris Hadfield

DuaneB

Hi,

At the one supplier I checked with, the 328 chip was only double the price of the 85, so I ended up sticking with the 328, bought 10. I also have some standalone projects based on ATMega8's as they were all that I could find in Dubai. I imagine that these may be available elsewhere as old stock at a lower cost, possibly less than attiny's ? Anyone seen this anywhere ?

Duane B

rcarduino.blogspot.com




Read this
http://rcarduino.blogspot.com/2012/04/servo-problems-with-arduino-part-1.html
then watch this
http://rcarduino.blogspot.com/2012/04/servo-problems-part-2-demonstration.html

Rcarduino.blogspot.com

Erni

#41
May 22, 2012, 07:04 pm Last Edit: May 22, 2012, 07:12 pm by Erni Reason: 1
Quote
And of course there's no serial monitor for debug messages.

Actualy there is, you can use TinyDebugSerial or even SoftwareSerial

And if you want to connect some servos, there is a library for the 45/85 here.

http://www.cunningturtle.com/servo8bit-library-version-0-6-released/


strykeroz


Quote
And of course there's no serial monitor for debug messages.

Actualy there is, you can use TinyDebugSerial or even SoftwareSerial

And if you want to connect some servos, there is a library for the 45/85 here.

http://www.cunningturtle.com/servo8bit-library-version-0-6-released/


I probably should have qualified that with the limited pins, I find I usually cannot spare the IO's for serial debugging :)
"There is no problem so bad you can't make it worse"
- retired astronaut Chris Hadfield

winner10920

You could venture into the 8Mhz area, with some isp you can run a atmega328 with just power, no crystal
you may want to keep a cap on there, but that's it

Nick Gammon

Like this, pretty minimal:

Please post technical questions on the forum, not by personal message. Thanks!

More info:
http://www.gammon.com.au/electronics

Go Up