Attiny45 unique id

Hi all

Is it possible to get some kind of unique ID from the attiny45/85 chip?
I have one attiny generating a hardcoded unique ID to a 433Mhz transmitter, that works ok, but if i want to build 100 devices, i do not want to change manually that code.

Regards

AFAIK the AVRs do not have such thing as a serial number or chip ID. There are chips especially for this purpose, google "one wire serial number"

i was hoping that attiny had some hidden feature... But 1-wire serial number is a good way to solve my problem.
Thanks

If I may make a suggestion, you could use a time stamp to generate a bogus serial number at the time you run the code, depending on where you store that ID.

Hum... i can store the ID on the eeprom, but how to generate timestamp on the attiny without external components?

Well, you are right, but an RTC module is cheap if you want to go that route, though.

You could still use millis() as a time reference. You would still have to program each one one by one, right, maybe enter the time through the serial console before you begin.

Actually, if you have to do that, you could simply enter the serial number in a format you want, so forget my idea. :frowning: