neuoy / OneWireArduinoSlave

An arduino library to communicate using the Dallas one-wire protocol, where the Arduino takes the role of a slave. Entirely implemented using interrupts, you can perform other tasks while communication is handled in background.
58 stars 19 forks source link

Sync with PaulStoffregen:OneWire read function? #14

Open MohsinEngineer opened 7 years ago

MohsinEngineer commented 7 years ago

I am trying to make a DS1993, an ibutton, emulator on Arduino Uno using your library. The master side arduino uno is running the PaulStoffregen:OneWire library.

The write function of that library successfully transmits the data to the slave (verified through simulations) but can't get in sync when reading back the data. It always gets distorted. I have run multiple simulations trying to get both in sync but it is damn near impossible.

Can you see that your write function is compatible with OneWire read function? Remember the master has allowed parasite power in this case (DS1993 runs on parasite power).

I have asked the same thing from PaulStroffregen. Hopefully you both can find a solution to this problem.

I can provide arduino sketches and proteus simulations highlighting the issue.

MohsinEngineer commented 7 years ago

Here is a link to the project https://github.com/MohsinEngine/DS1993