Skip to content

Instantly share code, notes, and snippets.

Forked from speters/uid.ino
Last active August 16, 2023 13:59
  • Star 13 You must be signed in to star a gist
  • Fork 1 You must be signed in to fork a gist
Star You must be signed in to star a gist
What would you like to do?
Arduino atmega328p unique id/serial number
//found this code here
//Purpose is to simply run a memory check on ATMEGA238P to test for counterfeit parts
#include <avr/boot.h>
#define SIGRD 5
void setup() {
// put your setup code here, to run once:
Serial.println("boot sig dump");
int newLineIndex = 0;
for (uint8_t i = 0; i <= 0x1F; i += 1) {
Serial.print(boot_signature_byte_get(i), HEX);
if (newLineIndex == 8) {
newLineIndex = 0;
void loop() {
Copy link

Ziggy2013 commented Aug 18, 2021

The fake atmega328p-AU chips will not enter High Voltage Parallel Programming mode. The chip just gets very hot.

I have also noticed chips marked as made in Korea (on reverse side) are often (maybe always) fake.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment