News for hackers. Stuff that matters.
Re:The ATtiny 2-Series by snvzz on Monday November 28, 2022 @01:20PM (#33777319)
AIUI, Texas Instruments' MSP430 series[0] (which are 16-bit) is still king at low power.

0. https://embedded.fm/blog/ese101?format=amp

Re:The ATtiny 2-Series by zokier on Monday November 28, 2022 @01:44PM (#33777707)
While low-power has been the selling point for MSP430, in practice I understand the shitton of effort poured into making ARM power-efficient has allowed them to surpass MSP430, see e.g. https://www.eembc.org/ulpmark/ulp-cp/scores.php
Re:The ATtiny 2-Series by guenthert on Monday November 28, 2022 @01:45PM (#33777712)
True, but (some) ATtiny are still available in beginner-friendly tth DIP package.
Re:The ATtiny 2-Series by watchdogtimer on Monday November 28, 2022 @02:34PM (#33778418)
Unfortunately, judging from the article, this doesn't appear to be true for any of the new series.

Some of the new AVR series are, however. A few of these have some of the same features offered in these Tinys (e.g., 12-bit differential ADCs)

Re:The ATtiny 2-Series by puzzlingcaptcha on Monday November 28, 2022 @05:41PM (#33780932)
8-pin SOIC packages (like 412/212) are still very easy to handle as a hobbyist. I've used them in a variety of projects.
Re:The ATtiny 2-Series by BoorishBears on Monday November 28, 2022 @06:46PM (#33781584)
As a kid I remember ordering free MSP430 samples from TI (in DIP format)

SOIC would have been completely inaccessible for me as I mostly relied on breadboards and a radio shack soldering iron with a half-corroded tip that would probably be better suited for plumbing than placing SOICs

Re:The ATtiny 2-Series by unwind on Tuesday November 29, 2022 @03:52AM (#33785186)
This bears repeating every once in a while: surface-mount soldering is not very hard. It's perhaps harder than through-hole, since you don't get the benefit of having the component held mechanically, but not by a lot.

The actual soldering with surface-mount stuff does not mean you have to be like an industrial robot in your precision and gently apply heat to each tiny tiny leg, while also getting the solder in there just in time, all the while holding your breath so you don't blow things away. Not at all.

Surface-mount soldering can be done using way "uglier" techniques than through-hole, where you basically flood the component's legs with solder, heat it enough for it to melt and flow, and then remove the excess. Thanks to the magic of surface tension (and, if you have it, extra flux) the solder will flow to where you want it, all on its own. This kind of technique probably wouldn't cut it for production, where consistency and quality of course are important, but for hobby use it's fine!

There are plenty of YouTube videos showing this off, it can be really really easy. Please don't fear surface-mount soldering. Grab (the cool side of) your iron and join the fun!

Re:The ATtiny 2-Series by BoorishBears on Tuesday November 29, 2022 @01:39PM (#33791392)
As an adult with disposable income surface mount is easy, I have great soldering irons and I order PCBs all the time (used to make them too but it's gotten cheap enough that it's not worth the hassle)

But for a 15 year old with no budget and limited tooling (even flux would have been a luxury), being able to order off a sample form and get something that just worked was invaluable.

Re:The ATtiny 2-Series by snvzz on Monday November 28, 2022 @03:48PM (#33779383)
Several msp430 chips are still available in DIP too, and the new ATtiny's aren't either; it is not an ATtiny advantage.

On the bright side, some SMD packages are still reasonably workable with a soldering iron, like SOIC, and cheap devboards that do little else than breakout into a DIP package are commonplace.

Re:The ATtiny 2-Series by guenthert on Monday November 28, 2022 @06:31PM (#33781422)
Indeed. digikey even have some MSP430 in PDIP in stock for reasonable prices: https://www.digikey.com/en/products/filter/microcontrollers/...
Re:The ATtiny 2-Series by dragontamer on Monday November 28, 2022 @03:54PM (#33779471)
I did a brief search, and it seems that at 1MHz, all of the chips discussed in this discussion so far (ATTiny, MSP430, and STM32) are all 200 uA or less, while _fully active_.

Sleep modes bring that down below 50uA.

So on 2x AA batteries (~3000 mA-hours), it seems like these datasheets are telling me that all these chips can consistently hit 2.5 _YEARS_ of battery life? Or 6.5+ _YEARS_ of sleep-battery life?

I'm surprised at how low power modern microcontrollers are. The power-consumption metrics continue to get better-and-better year over year.

Re:The ATtiny 2-Series by ilyt on Monday November 28, 2022 @05:41PM (#33780935)
It's interesting tradeoff, because generally the bigger transistor the less quiescent current it has (=lower power when everything is off), but on the other side the bigger transistor the higher uA/MHz consumption
Re:The ATtiny 2-Series by squarefoot on Monday November 28, 2022 @06:39PM (#33781503)
A single ultra long life Li-SOCl2 D cell like the Tadiran TL5930/S could probably power one of these chips for no less than a decade.

https://www.mouser.com/ProductDetail/Tadiran-Batteries/TL593...

Re:The ATtiny 2-Series by snvzz on Wednesday November 30, 2022 @04:40AM (#33798716)
msp430 will get you into nA territory[0].

0. https://www.edn.com/ti-msp430-mcu-breaks-500-nano-amp-barrie...