OFF
MIKROE-2750
25 g
Status:
1-Wire I2C Click is a compact add-on board that provides an I2C interface communication over the 1-Wire interface. This board features the DS28E17, a 1-Wire-to-I2C master bridge from Analog Devices. It interfaces directly to I2C slaves in standard or fast modes of up to 400kHz. The data is transferred serially over the 1-Wire protocol, which requires only a single data lead and a ground return. This Click board™ makes the perfect solution for the development of applications for accessory identification and control, I2C sensors, display controllers, ADCs/DACs devices, and generally to extend the length of I2C lines by converting I2C to 1-Wire, and more.
1-Wire I2C Click is supported by a mikroSDK compliant library, which includes functions that simplify software development. This Click board™ comes as a fully tested product, ready to be used on a system equipped with the mikroBUS™ socket.
This product is no longer in stock
Availability date:
1-Wire I2C Click is based on the DS28E17, a 1-Wire-to-I2C master bridge from Analog Devices. The bridge supports 15Kbps and 77Kbps 1-Wire protocol with packetized I2C data payloads. The factory-programmed unique 64-bit 1-Wire ROM ID provides an unalterable serial number to the end equipment, thus allowing multiple DS8E17 devices to coexist with other devices in a 1-Wire network and be accessed individually without affecting other devices. The 1-Wire I2C Click allows communication with complex I2C devices, such as displays, ADCs, DACs, sensors, and more. The bridge provides 1-Wire communication with only one I2C device.
1-Wire I2C Click uses the 1-Wire interface as a bridge to the standard 2-Wire I2C interface to communicate with the host MCU. You can choose a One-Wire input pin over the OW SEL jumper, where the OW1 is routed to an analog pin of the mikroBUS™ socket and is set by default. You can also reset the bridge over the RST pin. The I2C device can be connected over a 4-pin screw terminal.
This Click board™ can be operated only with a 3.3V logic voltage level. The board must perform appropriate logic voltage level conversion before using MCUs with different logic levels. Also, this Click board™ comes equipped with a library containing functions and an example code that can be used as a reference for further development.
Type
1-Wire
Applications
Can be used for the development of applications for accessory identification and control, I2C sensors, display controllers, ADCs/DACs devices, and generally to extend the length of I2C lines by converting I2C to 1-Wire, and more
On-board modules
DS28E17 - 1-Wire-to-I2C master bridge from Analog Devices
Key Features
Converts 1-Wire communication protocol to I2C master IO, flexible 1-Wire slave and I2C master operational modes, I2C clock stretching automatically supported, low power consumption, unique 64-bit ROM ID, and more
Interface
1-Wire,GPIO
Feature
No ClickID
Compatibility
mikroBUS™
Click board size
S (28.6 x 25.4 mm)
Input Voltage
3.3V
This table shows how the pinout on 1-Wire I2C click corresponds to the pinout on the mikroBUS™ socket (the latter shown in the two middle columns).
Label | Name | Default | Description |
---|---|---|---|
- | PWR | - | Power LED Indicator |
- | OW SEL | Left | 1-Wire pin Selection OW1/OW2: Left position OW1, Right position OW2 |
Description | Min | Typ | Max | Unit |
---|---|---|---|---|
Supply Voltage | - | 3.3 | - | V |
I2C Bus Operating Frequency | - | - | 400 | kHz |
1-Wire Data Rate | - | - | 77 | Kbps |
We provide a library for the 1-Wire I2C Click as well as a demo application (example), developed using MIKROE compilers. The demo can run on all the main MIKROE development boards.
Package can be downloaded/installed directly from NECTO Studio Package Manager(recommended), downloaded from our LibStock™ or found on Mikroe github account.
Library Description
This library contains API for 1-Wire I2C Click driver.
Key functions
c1wirei2c_reset_device
This function resets the device by toggling the RST pin state.
c1wirei2c_write_data
This function addresses and writes 1-255 bytes to an I2C slave without completing the transaction with a stop.
c1wirei2c_read_data_stop
This function is used to address and read 1-255 bytes from an I2C slave in one transaction.
Example Description
This example demonstrates the use of 1-Wire I2C click board by reading the temperature measurement from connected Thermo 4 click board.
void application_task ( void )
{
float temperature = 0;
uint8_t reg_data[ 2 ] = { 0 };
uint8_t reg_addr = DEVICE_REG_TEMPERATURE;
if ( ( C1WIREI2C_OK == c1wirei2c_write_data ( &c1wirei2c, DEVICE_SLAVE_ADDRESS, ®_addr, 1 ) ) &&
( C1WIREI2C_OK == c1wirei2c_read_data_stop ( &c1wirei2c, DEVICE_SLAVE_ADDRESS, reg_data, 2 ) ) )
{
temperature = ( ( ( int16_t ) ( ( ( uint16_t ) reg_data[ 0 ] << 8 ) |
reg_data[ 1 ] ) ) >> 5 ) * DEVICE_TEMPERATURE_RES;
log_printf( &logger, "rn%s - Temperature: %.3f degCrn", ( char * ) DEVICE_NAME, temperature );
}
else
{
log_error( &logger, "%s - no communication!rn", ( char * ) DEVICE_NAME );
}
Delay_ms ( 1000 );
}
The full application code, and ready to use projects can be installed directly from NECTO Studio Package Manager(recommended), downloaded from our LibStock™ or found on Mikroe github account.
Other Mikroe Libraries used in the example:
Additional notes and informations
Depending on the development board you are using, you may need USB UART click, USB UART 2 Click or RS232 Click to connect to your PC, for development systems with no UART to USB interface available on the board. UART terminal is available in all MIKROE compilers.
This Click board™ is supported with mikroSDK - MIKROE Software Development Kit. To ensure proper operation of mikroSDK compliant Click board™ demo applications, mikroSDK should be downloaded from the LibStock and installed for the compiler you are using.
For more information about mikroSDK, visit the official page.
NOTE: Please be advised that any peripheral devices or accessories shown connected to the Click board™ are not included in the package. Check their availability in our shop or in the YMAN section below.