Remix.run Logo
bombela 4 days 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 4 days ago | parent [-]

What toolchain do you use to compile Rust for it? I have about had enough of undebuggable random Arduino segfaults.

bombela 4 days ago | parent [-]

The main Rust compiler. https://doc.rust-lang.org/nightly/rustc/platform-support/avr...

stavros a day ago | parent [-]

Do you know of any sort of tutorial for this? I'd love to have a play.

bombela 5 hours ago | parent [-]

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.

stavros 5 hours ago | parent [-]

I'll try that, thanks.