Skip to content

7semi-solutions/7Semi-DS2482

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

4 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

7Semi DS2482 Arduino Library

Arduino driver for the Maxim DS2482 I2C to 1-Wire bridge.

The DS2482 acts as a hardware interface between an I2C master and 1-Wire devices, enabling reliable communication with sensors like DS18B20 temperature sensors and other 1-Wire peripherals.

Features

  • I2C to 1-Wire bridge communication

  • 1-Wire reset and presence detection

  • Single byte read/write operations

  • Multi-byte read/write support

  • ROM commands:

    • Match ROM
    • Skip ROM
  • Device discovery using ROM search

  • Supports multiple 1-Wire devices on same bus

  • CRC8 validation for data integrity

  • Efficient bus handling using hardware-assisted timing


Connections / Wiring

The DS2482 communicates via I²C.


I²C Connection

DS2482 Pin MCU Pin Notes
VCC 3.3V / 5V Depends on module
GND GND Common ground
SDA SDA I²C data
SCL SCL I²C clock

1-Wire Bus

DS2482 Pin Connection
IO 1-Wire Data Line
VCC 3.3V/ 5V
GND Common ground

I²C Notes

  • Default I²C address: 0x18

  • Supported bus speeds:

    • 100 kHz
    • 400 kHz (recommended)

Installation

  • Arduino Library Manager

    1. Open Arduino IDE
    2. Go to Library Manager
    3. Search for 7Semi DS2482
    4. Click Install
  • Manual Installation

    1. Download this repository as ZIP
    2. Arduino IDE → Sketch → Include Library → Add .ZIP Library

Library Overview

Initialize Device

DS2482_7Semi ds;

ds.begin(0x18);

Scan for Devices

if (ds.searchROM())
{
  uint8_t count = ds.getDeviceCount();
}
  • Returns temperature in °C.

Read Device Address

uint8_t *device = ds.getDevice(0);

About

I2C-based DS2482 driver for 1-Wire devices with ROM search and sensor support.

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors

Languages