SparkFun Forums 

Where electronics enthusiasts find answers.

Discussions on the software and hardware for Atmel's STK standard.
By thankyou
#182045
I'm confused about why the Attiny85 is more popular (on hobby electronics sites) than the picoPower microcontrollers like Attiny43U. Why doesn't everyone want the lowest current consumption, as well as an Attiny with a built in booster to 3V? I'm not sure if there's something I'm missing. I have been using the Attiny85 in my project, and I found out that it was responsible for the majority of the 20 mA current draw. Now I regret not using Attiny43U because I could have had much better battery life.
User avatar
By Ross Robotics
#182056
The reason is most people buy what is offered. The majority won't search Atmel's site to see what controller would best suit their needs. They just buy what sites have..
By thankyou
#182058
Interesting...I was the same way and I saw it as convenient that there was a Tiny AVR programmer for the Attiny85 that I could use with Arduino. Now I'm going to figure out how to program the Attiny43U...
By jremington
#182059
You can dramatically reduce the power consumption of the ATtiny85 by employing proper power reduction techniques and having the processor sleep whenever possible. Much of the material in the following link to power reduction for the ATmega series also applies to the ATtiny series. http://www.gammon.com.au/power
By thankyou
#182066
Thanks for the link...Unfortunately I don't think there's much I can do because my program cannot go into sleep mode as I'm constantly reading from the ADC.
By skimask
#182071
Is it REALLY necessary to read from the ADC constantly? 100:1 says probably not...which also happens to be just about the ratio of current you could save by putting the thing to sleep in between the really necessary readings.
...but then again, as usual, we know nothing about the situation at hand...
By thankyou
#182075
I'm monitoring something with the ADC that can change at any moment, so I do have to read from the ADC constantly...I better read up on programming Attiny43U :)
By jremington
#182085
I'm monitoring something with the ADC that can change at any moment, so I do have to read from the ADC constantly
If it is so important to know exactly when the ADC input changes, what happens when the batteries fail? Seems like a poor overall approach.
By uChip
#182087
I agree with jremington. Remember that human time and MCU time are different. An MCU can be asleep 90% of the time and still respond in less than a second. Or if timing is that critical then use a micropower circuit to detect the event and wake the MCU when it happens.

In case you didn't get the other hint: If you would tell us more about what you are trying to do, we could be more helpful with our suggestions.
By thankyou
#182094
I'm using the ADC to read an analog distance sensor value, and I want an action to occur at the precise moment the analog reading is above a value (this value can be modified by the user, so I wouldn't want to use a comparator).
By jremington
#182095
It is impossible to know the "precise moment" that something occurs. An ADC reading can take a couple of hundred microseconds.

A comparator can compare an input to another voltage, set by a standard or digital potentiometer, and is thus adjustable by the end user. Furthermore, the comparator has higher resolution than the ADC and can wake the part up from sleep. So the ADC is neither necessary nor desired.
long long title how many chars? lets see 123 ok more? yes 60

We have created lots of YouTube videos just so you can achieve [...]

Another post test yes yes yes or no, maybe ni? :-/

The best flat phpBB theme around. Period. Fine craftmanship and [...]

Do you need a super MOD? Well here it is. chew on this

All you need is right here. Content tag, SEO, listing, Pizza and spaghetti [...]

Lasagna on me this time ok? I got plenty of cash

this should be fantastic. but what about links,images, bbcodes etc etc? [...]