Skip to content

34. Coil: Coil code read and write

Fa-Hsuan Lin edited this page Oct 29, 2023 · 1 revision

Siemens Tim4G coils need an EEPROM to allow the system identifying customer-made coils. Here are setup and codes for writing and reading EEPROMs using Arduino.

1. EEPROM circuit and Arduino setup

The circuit below shows the schematics of an EEPROM board for a customized coil. Connect the Arduino with power (+5V or +3.3V) and ground (GND) pins. Also connect the SCL and SDA pins. These four pins (power, GND, SCL, and SDA) should be connected to the coil wire after code writing.

2. Write EEPROM

This Arduino script writes coil code and other fields to a 4K EEPROM. The code was tested by an Arduino Uno with the 4K EEPROM (AT24C04D) by Microchip Technology.

3. Read EEPROM

This Arduino script reads coil code and other fields from a 4K EEPROM.

Clone this wiki locally