News for hackers. Stuff that matters.
Re:Learning basic electronics by building fireflies by bombela on Tuesday July 29, 2025 @04:12PM (#44727741)
I have a bag of attiny13a that cost me $0.20 per chip. It is fully self contained. Just add a very small capacitor, give it from 2.8V to 5V. And then you program it the way you want. You can even program and debug it via a single pin if you wish.

At this cost for a hobbyist it's just hard to beat. It can be anything you want it to be in a few lines of code.

I personally write Rust for it, not Arduino C++, but it would work just the same.

Re:Learning basic electronics by building fireflies by Liftyee on Tuesday July 29, 2025 @04:57PM (#44728182)
What toolchain do you use to compile Rust for it? I have about had enough of undebuggable random Arduino segfaults.
Re:Learning basic electronics by building fireflies by bombela on Wednesday July 30, 2025 @02:10AM (#44731281)
Re:Learning basic electronics by building fireflies by stavros on Friday August 01, 2025 @09:18AM (#44756377)
Do you know of any sort of tutorial for this? I'd love to have a play.
Re:Learning basic electronics by building fireflies by bombela on Saturday August 02, 2025 @12:50PM (#44769132)
I do not, sorry. You can read the datasheet of the chip learn everything about it. You can then search online for some implementation of firmware uploader/programmer like "avrdude". Those chips are very simple, all controlled by toggling bits and values in registers.
Re:Learning basic electronics by building fireflies by stavros on Saturday August 02, 2025 @01:02PM (#44769252)
I'll try that, thanks.