~derf / projects / owi-slave
dark mode

This project is no longer being developed. There will be no updates and no security fixes. This page serves archival purposes only.

Assembly implementation of an One Wire Interface slave device on an ATTiny 2313A without external clock.

Though the schematic suggests bus-powered operation, the AVR's power consumption is probably too high for this to work. If connecting the AVR causes the bus voltage to drop below 3V, consider replacing the capacitors with a ~4.5V battery. Do not use a mains power supply -- it may not have the same ground level as the 1-Wire bus.

Building

set the desired onewire address in main.S. then run

make && sudo make flash

supported features

READ ROM (0x33)

Works fine. Successfully tested on:

  • DS2482-100 Single Channel 1-Wire Master
  • IBL USB iButton reader

TODO

  • test SEARCH ROM
  • implement readout of master direction bit in SEARCH ROM

See also owi-slave on GitHub.