News for hackers. Stuff that matters.
Re:Learning basic electronics by building fireflies by Workaccount2 on Tuesday July 29, 2025 @02:00PM (#44726449)
The juxtaposition between the cleanliness of the software and the absolute travesty of a schematic is jarring. But it still works!

I applaud the author for wading into analog electronics. Pretty much everyone nowadays would just put a timer on a micro and be done in 2 minutes. No fun in that. There is something to be said about the minimal elegance of purely analog designs, and a special rewarding feeling for wrangling electrons in their native habit rather than their boxed up binary bins.

Re:Learning basic electronics by building fireflies by diggan on Tuesday July 29, 2025 @03:20PM (#44727262)
> Pretty much everyone nowadays

I think it depends on the ecosystem. It's true much of the "maker" community tends to embrace whatever solution is the cheapest, fastest and easiest to get something working out the door, but on the other hand, the DIY synth community tends to be the opposite (in my experience at least), favoring simple schematics and "back to basics" building, even sometimes going as far as trying to skip any sort of prebuilt ICs.

Re:Learning basic electronics by building fireflies by JKCalhoun on Tuesday July 29, 2025 @10:55PM (#44730551)
This would include people building guitar pedals.
Re:Learning basic electronics by building fireflies by jabedude on Tuesday July 29, 2025 @03:13PM (#44727194)
I haven't touch anything like this in a good while, how cheap could I get a simple Arduino style chip with a few gpio to drive a yellow LED in 2025?
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.
Re:Learning basic electronics by building fireflies by alias_neo on Tuesday July 29, 2025 @04:12PM (#44727738)
You could grab any Atmega328p or similar DIL on eBay for a couple of quid, maybe less in batches.

I've got dozens of them in my electronics drawers I don't really use anymore since ESP32 dev boards are so cheap and capable for home projects.

Re:Learning basic electronics by building fireflies by roboror on Tuesday July 29, 2025 @03:18PM (#44727241)
Like $2 if you're patient
Re:Learning basic electronics by building fireflies by alnwlsn on Tuesday July 29, 2025 @04:22PM (#44727831)
For an "official" answer (programmable from Arduino IDE, genuine new chips) you can get an ATTINY202 from DigiKey or Mouser for $0.50 in qty. 1.
Re:Learning basic electronics by building fireflies by cluckindan on Tuesday July 29, 2025 @04:37PM (#44727988)
If you just need it to blink at some interval, get a NE555 for a dime.

Granted, you can almost get a microcontroller for that price…

Re:Learning basic electronics by building fireflies by dgacmu on Tuesday July 29, 2025 @10:43PM (#44730489)
You actually can: The Puya PY32 ranges from about $0.08 on up (well, $0.15 if you only want to buy 5, but the cheapest one is $0.0959 in qty 200 and $0.0676 in qty 5000+). ARM Cortex m0 in a 10-pin ESSOP-10 surface mount package: https://lcsc.com/product-detail/Microcontrollers-MCU-MPU-SOC...

Kind of mind-blowing. 24mhz 32-bit computer for under a dime.

But you'll learn more about the analog-ish world and not need to deal with SMD if you go the 555 route. And it'll save you power vs the astable monovibrator with NPN transistors.

Re:Learning basic electronics by building fireflies by dccoolgai on Wednesday July 30, 2025 @07:44AM (#44732982)
555s are so much fun. It's bananas how much you can do with that chip and a few dirt-cheap resistors and capacitors.

Make has a really nice little book where they walk you through some simple projects on a breadboard with 555s, transistors, etc. https://www.amazon.com/How-Use-Breadboard-Make-Handbook/dp/1...

Re:Learning basic electronics by building fireflies by bluescrn on Tuesday July 29, 2025 @06:02PM (#44728778)
Search YouTube for '10 cent microcontroller' to learn about the absolute cheapest chips.

For £3.50 you can get an ESP32 module with WiFi and Bluetooth (e.g. https://thepihut.com/products/esp32-c3-mini-development-boar...)

(A regular Arduino board might still be the best choice if you're just learning/tinkering though)

Re:Learning basic electronics by building fireflies by andoando on Wednesday July 30, 2025 @12:18AM (#44730867)
You can get a bluetooth/wifi enabled microcontroller like a Pi Pico 2 for $5 or a full on computer running linux for $15 (Pi zero 2)
Re:Learning basic electronics by building fireflies by the__alchemist on Wednesday July 30, 2025 @09:25AM (#44733900)
Buy any dev board that includes an LED. Nordic, ST, Espressif... doesn't matter for something like this.
Re:Learning basic electronics by building fireflies by btbuildem on Tuesday July 29, 2025 @07:48PM (#44729550)
Honestly, it's the easiest onramp for people coming from a software background. Analog circuits are HARD, but rewarding. And as you ramp up to various ICs, things start to ~~~ make sense ~~~ in a wonderful way. Oh, and also the battery life!
Re:Learning basic electronics by building fireflies by JKCalhoun on Tuesday July 29, 2025 @10:29PM (#44730430)
Yeah, for me, analog is the exciting domain — my undiscovered country. I have played with vacuum tubes as well and thoroughly enjoyed it.

Transistors were, for some reason, seemingly unknowable to me. But I made a kind of "transistor playground" [1] based around Forrest Mims III book [2] and then enjoyed playing with them.

[1] https://imgur.com/a/dChq4AZ

[2] https://archive.org/details/forrest-mims-basic-semiconductor...

Edit: actually, I had forgotten it was a transistor logic playground for I made for creating logic gates with transistors. Based on another Forrest Mims book: https://archive.org/details/engineersmininot00mims

Re:Learning basic electronics by building fireflies by zavec on Wednesday July 30, 2025 @05:35AM (#44732368)
That looks awesome, nice work! Very clean.
Re:Learning basic electronics by building fireflies by justaj on Wednesday July 30, 2025 @01:42AM (#44731166)
I still can't get over the fact that all electronics schematics is actually in reverse and everyone is still fine with that.
Re:Learning basic electronics by building fireflies by the__alchemist on Wednesday July 30, 2025 @09:26AM (#44733909)
Could you explain? Most of what I work with seems non-directional, except in cases like Diodes and transistors.