3 ms·
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 progr
by bombela 1y ago
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.
- Liftyee 1y agoWhat toolchain do you use to compile Rust for it? I have about had enough of undebuggable random Arduino segfaults.
- bombela 1y agoThe main Rust compiler. https://doc.rust-lang.org/nightly/rustc/platform-support/avr-none.html https://doc.rust-lang.org/nightly/rustc/platform-support/avr...
- stavros 1y agoDo you know of any sort of tutorial for this? I'd love to have a play.
- bombela 1y agoI 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.
- stavros 1y agoI'll try that, thanks.