Basic Schematic. R1, R2 are 10,000 ohms.
Arduino Interfacing and Programming 24LC08 Serial EEPROM
Explanation of program:
On power up or reset the "setup" is executed once, setting up the hardware and writing the text message "Arduino" to the EEPROM. Then the "loop" section will run over and over. Whenever sw0 is pressed the text message "Arduino" is read from the EEPROM and sent via the serial port to a computer running for example Hyper Terminal. This demonstrates the use of the Wire.h library, serial ports, and an external switch tied to an input.
For the basic structure of an Arduino program see page 7 of Arduino Programming Notebook by Brian Evans
For information on setting up switches and pull ups on the Arduino see pages 4-6 on Arduino Projects by Tod Kurt
Basic I2C setup.
24LC08 Demo with the ATMEGA128
This is an 8-pin DIP serial EEPROM. It will store 1024 bytes. (0x3FF)
It uses I2C or "two wire" interface.
See 24LC08 Serial EEPROM
Pin designations for the 24LC08:
Pins 1, 2, 3 if tied to VCC (5 volts) address = 0x54. If tied to VSS 0x50. Only two can be used in a single circuit.
Pin 4 VSS or ground.
Pin 5 SDA or serial data. Tied to Arduino analog pin 4.
Pin 6 SCL or serial clock. Tied to Arduino analog pin 5.
Pin 7 WP or write protect. VCC disables write, VSS enables write.
Pin 8 VCC or +5 volts.
Arduino code for this project: arduino_24lc08.txt.
- Arduino Projects Revisited Revised
- Schematic for Following Projects
- Programming ADS1115 4-Channel I2C ADC with Arduino
- Arduino uses ADS1115 with TMP37 to Measure Temperature
- Connect Arduino to I2C Liquid Crystal Display
- Arduino Reads Temperature Sensor Displays Temperature on LCD Display
- Arduino with MCP4725 12-bit Digital-to-Analog Converter Demo
- Arduino with ADS1115 4-Channel 16-bit Analog-to-Digital Converter
- Arduino with MCP4725 12-Bit DAC
- Testing the Keyes IR Sensor Module with Arduino
- Arduino with Serially Interfaced MAX7219 Operates 8X8 LED Matrix
- Arduino RTC Clock with MAX7219 8-Digit LED Display
- BCD Conversion with Arduino Displayed on MAX7219
- Connecting the ATMEGA168/Arduino to MCP23016 and LCD Display
- Display Time-Date with Arduino, LCD Display, and DS1307 RTC
- Controlling Low-Voltage Driveway Lights with the Arduino
- Hatching Chicken Eggs with ATMEGA168/Arduino
- TSL230R Light to Frequency Converter and Arduino
- Interfacing Arduino to the MCP23016 I/O Expander
- Arduino with a DS1307 Real Time Clock
- Using a Unipolar Stepper Motor with a Arduino
- Arduino with the TA8050 Motor Controller
- Arduino with a 24LC08 Serial EEPROM
- Hardware Interrupts Demo and Tutorial for Arduino
- Micro-controller AC Power Control Using Interrupts