News for hackers. Stuff that matters.
Re:I Over-Engineered a Fast Fourier Transform for Arduino by utopcell on Friday November 25, 2022 @04:51AM (#33740867)
Indeed, RP2040 and ESP32 is where the world has moved to. What would be the point of ever using ATMegas anymore, when the RP2040 has two Cortex-M0+ 133MHz cores, a bunch of peripherals and only costs $1 ?
Re:I Over-Engineered a Fast Fourier Transform for Arduino by type111 on Friday November 25, 2022 @06:41AM (#33741470)
The RP2040 itself 'only costs $1' without the flash chip it needs. Then what if you need an analog comparator? Another chip. Now what if you want a medium current PWM output? Another chip. AVRxt can output as much current on a single pin as an RP2040 can through its entire package. The two are simply not competing in the same space. AVR isn't strong in computation but is a great general purpose brain for many simple real world interfacing machines.
Re:I Over-Engineered a Fast Fourier Transform for Arduino by kragen on Friday November 25, 2022 @08:10AM (#33742044)
> Now what if you want a medium current PWM output

mmbt2222, 2n7000, uln2003, tip122, irf540/9540, sheesh

its inputs have a schmitt trigger mode. if you can deal with 200mv hysteresis you can maybe use three resistors instead of an analog comparator

Re:I Over-Engineered a Fast Fourier Transform for Arduino by type111 on Friday November 25, 2022 @08:24AM (#33742132)
All options and all costing you more money on top of the 'only $1'.
Re:I Over-Engineered a Fast Fourier Transform for Arduino by kragen on Friday November 25, 2022 @08:32AM (#33742188)
an mmbt2222 costs 1.6 cents and handles three times the current and six times the voltage of an avr

technically yes it's a chip but not an ic

resistors are under a cent

Re:I Over-Engineered a Fast Fourier Transform for Arduino by type111 on Friday November 25, 2022 @08:38AM (#33742234)
Looks like you've cracked the code. AVR is obselete after all.
Re:I Over-Engineered a Fast Fourier Transform for Arduino by kragen on Friday November 25, 2022 @08:39AM (#33742247)
has been for ten years
Re:I Over-Engineered a Fast Fourier Transform for Arduino by type111 on Friday November 25, 2022 @08:48AM (#33742319)
Given that's the case, do you have an explanation for Microchip's development of numerous new AVR product lines since their acquisition of Atmel in 2016?
Re:I Over-Engineered a Fast Fourier Transform for Arduino by kragen on Friday November 25, 2022 @09:35AM (#33742714)
people buy them
Re:I Over-Engineered a Fast Fourier Transform for Arduino by ComputerGuru on Friday November 25, 2022 @02:29PM (#33745929)
Comfort and familiarity. They’re comfortable chips you can learn inside and out with a fairly huge ecosystem (importantly one that is approachable because it’s also powered by people in a similar position and with similar priorities/concerns to your own) around the parts/arch/IS and you don’t have to read scary looking 600-page datasheets (then realize there’s a separate datasheet for the core vs the rest), worry about soldering TQFN or TFBGA packages with your (t)rusty old Weller iron, don’t need to learn the distinction between the Cortex Core and the manufacturer-specific everything else around it, worry about things like initializing timers and peripheral buses, concern yourself too much with power states, etc.
Re:I Over-Engineered a Fast Fourier Transform for Arduino by kragen on Friday November 25, 2022 @06:43PM (#33748213)
yeah, good points

also they do have adcs and comparators and can drive 200ma. and they are reasonably tough

but you don't need much adc precision or speed or much drive current before you want something better

Re:I Over-Engineered a Fast Fourier Transform for Arduino by ComputerGuru on Friday November 25, 2022 @02:22PM (#33745868)
RP2040 is for people that aren’t comfortable leaving the relative safety and comfort of Raspberry Pi and this prevented from exploring other, better options.

I’ll take an STM32 over an RP2040 any day. (The “Black Pill” dev/breakout board is a dollar and fifty cents on AliExpress, and I’ve seen it sell for a dollar or less.)

Re:I Over-Engineered a Fast Fourier Transform for Arduino by dragontamer on Friday November 25, 2022 @03:02PM (#33746210)
STM32 with integrated OpAmps probably is more useful to more people (especially as your "default pick" for most electronic projects), than almost any other microcontroller.

-----

EDIT: Speaking of which, I'd have to imagine that most FFT algorithms for low-power / simple electronics work would rather be implemented in analog OpAmps + Analog Filters rather than digital logic (or digital filters).