MikroElektronika
1-Wire I2C click
1-Wire I2C click
SKU:MIKROE-2750
Couldn't load pickup availability
Share
1-Wire I2C click carries DS28E17 1-Wire-to-I2C master bridge from Maxim Integrated. The click runs on a 3.3V power supply.
It communicates with the target microcontroller over 1-Wire® protocol, using the following pins on the mikroBUS™ line: AN, PWM, RST.
How the click works
There are two on-board screw terminals used for connecting SCL, SDA, Vcc and GND of the I2C slave. After that, you are able to communicate with that slave through the onboard DS28E17 MCU.
DS28E17 features
The DS28E17 is a 1-Wire slave to I2C master bridge device that interfaces directly to I2C slaves at standard (100kHz max) or fast (400kHz max). Data transfers serially through the 1-Wire® protocol, which requires only a single data lead and a ground return. Every DS28E17 is guaranteed to have a unique 64-bit ROM registration number that serves as a node address in the 1-Wire network.
Specifications
Type | 1-wire |
Applications | 1-Wire I2C click can be used to extend the length of I2C lines by converting I2C to 1-wire |
On-board modules | DS28E17 1-Wire-to-I2C master bridge from Maxim Integrated |
Interface | 1-wire,GPIO |
Input Voltage | 3.3V |
Click board size | S (28.6 x 25.4 mm) |
Pinout diagram
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).
Programming
Code examples for 1-Wire I2C click, written for MikroElektronika hardware and compilers are available on Libstock.
Code snippet
The following code snippet shows 1-Wire I2C click communication with the Thermo 4 click. It uses skipRom, writeI2C, and readI2C commands to read the temperature data from the sensor, and displays it back via UART output.
01 void One_Wire_I2C_Task() 02 { 03 char uartText [20]; 04 char IWireData [20]; 05 06 IWireData [0] = 0x00; //Thermo 4 temperature register address 07 08 OWI2C_skipRom (); 09 OWI2C_writeI2C ( OWI2C_WRITE_NORMAL_NOSTOP, 0x48, 1, &IWireData); //0x48 is unshifted I2C address of Thermo 4 click 10 OWI2C_skipRom (); 11 OWI2C_readI2C ( 0x48, 2, &IWireData); 12 13 UART_Write (13); 14 UART_Write (10); 15 UART_Write_Text("Current temperature is: "); 16 ByteToStr(IWireData[0], uartText); 17 UART_Write_Text(uartText); 18 19 Delay_ms (2000); 20 }
Downloads
mikroBUS™ Standard specification
1-Wire I2C click schematic
DS28E17 datasheet








New Products
-
Sold out
OAK-FFC IMX577 M12
Vendor:POLOLURegular price Rs. 8,499.00Regular priceUnit price / perSold out -
Pololu Ideal Diode Reverse Voltage Protector, 4-60V, 20A
Vendor:POLOLURegular price Rs. 329.00Regular priceUnit price / perSold out -
Pololu Ideal Diode Reverse Voltage Protector, 4-60V, 25A
Vendor:POLOLURegular price Rs. 439.00Regular priceUnit price / perSold out -
Pololu I²C Isolator, ISO1640
Vendor:POLOLURegular price Rs. 449.00Regular priceUnit price / per -
3pi+ 32U4 OLED Robot Kit with 30:1 MP Motors (Standard Edition Kit)
Vendor:POLOLURegular price Rs. 15,549.00Regular priceUnit price / per -
Conductivity Calibration K 1.0 Set (4 pouches)
Vendor:Atlas ScientificRegular price Rs. 1,599.00Regular priceUnit price / perSold out -
Analog Discovery 3 Pro Bundle
Vendor:DigilentRegular price Rs. 42,569.00Regular priceUnit price / per -
Lighthouse swarm bundle - Crazyflie 2.1+ (250mAh batteries)
Vendor:BitcrazeRegular price Rs. 474,999.00Regular priceUnit price / perSold out -
Loco Swarm bundle - Crazyflie 2.1+ (250mAh batteries)
Vendor:BitcrazeRegular price Rs. 544,999.00Regular priceUnit price / perSold out -
Kopis X8 Cinelifter 5" Kit - Caged (Frame Kit)
Vendor:HolybroRegular price Rs. 28,199.00Regular priceUnit price / per -
Atlas Scientific i3 InterLink
Vendor:Atlas ScientificRegular price Rs. 6,349.00Regular priceUnit price / per -
Sold out
PoE Injector
Vendor:LuxonisRegular price Rs. 2,099.00Regular priceUnit price / perSold out -
Sold out
1-Port VINT Hub Phidget
Vendor:PhidgetsRegular price Rs. 2,699.00Regular priceUnit price / perSold out -
Holybro 1045 Propeller 2 Pair CW+CCW-Black
Vendor:HolybroRegular price Rs. 1,549.00Regular priceUnit price / per -
ACS37220LEZATR-100B3 Current Sensor Large Carrier -100A to +100A, 3.3V
Vendor:POLOLURegular price Rs. 829.00Regular priceUnit price / per -
CT433-HSWF50MR TMR Current Sensor Compact Carrier -50A to +50A, 3.3V
Vendor:POLOLURegular price Rs. 1,039.00Regular priceUnit price / per -
A5984 Stepper Motor Driver Carrier, Adjustable Current, Blue Edition
Vendor:POLOLURegular price Rs. 409.00Regular priceUnit price / per -
A5984 Stepper Motor Driver Carrier, Fixed 1A@5V / 660mA@3.3V, Blue Edition (Soldered Header Pins)
Vendor:POLOLURegular price Rs. 489.00Regular priceUnit price / per -
A5984 Stepper Motor Driver Carrier, Fixed 500mA@5V / 330mA@3.3V (Soldered Header Pins)
Vendor:POLOLURegular price Rs. 469.00Regular priceUnit price / per -
T Connector Male-Female Pair
Vendor:POLOLURegular price Rs. 169.00Regular priceUnit price / per -
Pololu Reverse Voltage Protector, 4-60V, 10A
Vendor:POLOLURegular price Rs. 159.00Regular priceUnit price / per -
Pololu Reverse Voltage Protector, 4-60V, 12A
Vendor:POLOLURegular price Rs. 199.00Regular priceUnit price / per -
Pololu Ideal Diode Reverse Voltage Protector, 4-60V, 10A
Vendor:POLOLURegular price Rs. 179.00Regular priceUnit price / perSold out -
Pololu Ideal Diode Reverse Voltage Protector, 4-60V, 12A
Vendor:POLOLURegular price Rs. 229.00Regular priceUnit price / perSold out -
Pololu Mini Plastic Gearmotor Bracket Pair - Tall
Vendor:POLOLURegular price Rs. 599.00Regular priceUnit price / per