Hello,
Overview:
I have created a motor controller for operating blinds, it's a very simple PCB 12V H bridge, 12->5V LDO and 433MHZ Reciver.
The hart is an atmega328p boot loaded as arduino mini pro.
I use the eeprom to store the paired remotes, I used a similar setup with the same code before - the new PCB, so code is the same new hardware and PSU,s. I only assembled everything couple of days ago but noticed problems with EEPROM loosing its data?!
Problem:
It's been now 3 times that the EEPROM lost its paired data, now my question is what can cause the EEPROM to be cleared/corrupted?!
I am 99,9% certain the software is OK, thus I think it could be something to do with either PSU or motor noise?
Also could the Atmega328p be faulty or fake? I didn't get it from a reliable supplier
Thanks
Eryk
PencilDH:
Hello,
Overview:
I have created a motor controller for operating blinds, it's a very simple PCB 12V H bridge, 12->5V LDO and 433MHZ Reciver.
The hart is an atmega328p boot loaded as arduino mini pro.
I use the eeprom to store the paired remotes, I used a similar setup with the same code before - the new PCB, so code is the same new hardware and PSU,s. I only assembled everything couple of days ago but noticed problems with EEPROM loosing its data?!
Problem:
It's been now 3 times that the EEPROM lost its paired data, now my question is what can cause the EEPROM to be cleared/corrupted?!
I am 99,9% certain the software is OK, thus I think it could be something to do with either PSU or motor noise?
Also could the Atmega328p be faulty or fake? I didn't get it from a reliable supplier
Thanks
Eryk
Are you sure your code is not changing the stored EEPROM data?
Try a two step process, write a simple sketch that writes your Paired code into the EEPROM,
Change your normal sketch such that there are NO EEPROM write commands in the code. If the EEPROM data never changes, you have a programming failure. If the EEPROM data changes something else is failing. I do not know how the EEPROM storage could fail without the FLASH also showing a failure.
Chuck.