#define SLAVE_ADDRESS 0x08 Master Communication Where we define the SLAVE_ADDRESS as follows: If the Arduino is to made a slave then we write the following statement in the setup() function. If the Arduino is to made master then we declare it as I2C master device using the following statement in the setup() function. This needs to be imported when working with Use the I2C serial communication with Arduino there is a standard For sensor we will use the LM35 temperature sensor and for the external EEPROM we will use the microchip 24LC256 external EEPROM IC. For writing and reading string text data type see the tutorial read write to external EEPROM with Arduino tutorials. So here we show how to read write sensor float data into external EEPROM. This float type data sensor data is saved into EEPROM and read back again to show EEPROM write and EEPROM read operation of float data type. The sensor data is acquired using the Arduino analog pin and the final data type is usually of float type. In this Arduino with EEPROM programming tutorial we will show how to read/write sensor data into and from external EEPROM using I2C protocol.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |