When the power backs on, the lamp stays off – it doesn’t keep its last change.You’re controlling a lamp with your Arduino and the lamp is on.It is specially useful to remember the last state of a variable or to remember how many times an appliance was activated.įor example, imagine the following scenario: The EEPROM is useful in Arduino projects that need to keep data even when the Arduino resets or when power is removed. Applications in Arduino projects – Remember last state This means you can read from the EEPROM as many times as you want without compromising its life expectancy. In Arduino, the EEPROM is specified to handle 100 000 write/erase cycles for each position. However, if you need to store more data you can get an external EEPROM. Take a look at the table below: Microcontroller The bytes you can store on EEPROM dependson the microcontrollers on the Arduino boards. How many bytes can you store?Įach EEPROM position can save one byte, which means you can only store 8-bit numbers, which includes integer values between 0 and 255. In Arduino, you can read and write from the EEPROM easily using the EEPROM library. The EEPROM can be read, erased and re-written electronically.
0 Comments
Leave a Reply. |
Details
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |