ATMEGA168/Arduino with a 24LC08 Serial EEPROM
Basic Schematic. R1, R2 are 10,000 ohms.

Arduino Interfacing and Programming 24LC08 Serial EEPROM

by Lewis Loflin

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 connections
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.

Stepper Motors

Serial LCD Display and assorted Sensors

Web site Copyright Lewis Loflin, All rights reserved.
If using this material on another site, please provide a link back to my site.