Go Down

Topic: OneWire in Due (Read 23183 times) previous topic - next topic

Paul Stoffregen

Your best chance is OneWire 2.2 with the latest nightly build of Arduino.

Markus_L811


Your best chance is OneWire 2.2 with the latest nightly build of Arduino.

Yes that works just changing a few files and the new OneWire lib from Paul and the Due is working correctly.

DominicG

As discussed earlier in this thread, the delayMicroseconds() function does not work correctly with interrupts disabled in IDE version 1.5.2.

Since the last post several months ago, IDE versions 1.5.3 and 1.5.4 have been released, and supposedly the delayMicroseconds() function was corrected for version 1.5.3.

I have just tried using both versions 1.5.3 and 1.5.4, but now the OneWire library no longer works.  The first step for data transfer, the reset signaled by pulling the line low, is not occurring.  Looking at the signal on an oscilloscope I can confirm that the line is never pulled low.  It seems like the DIRECT_WRITE_LOW function is no longer working.

Anybody know why?  Seems like there must have been some library changes in version 1.5.3 that broke this functionality.

Thanks,

Dominic

Paul Stoffregen

It definitely was working in 1.5.2 and the github code in late February (2013).

DominicG

Paul,
I tried downloading the "nightly build" from the Arduino website download page, but that seems to be the latest available nightly build.

Is there a way that I can download the old nightly builds from February?

Thanks,

Dominic

Paul Stoffregen

Yes, it's possible to use git to obtain the source from any point in Arduino's history.  You'll only get the source code, so you'll need to build it yourself (easy on Linux & Mac, requires setting up lots of stuff for Windows).

I'm not an expert with git & github.  You'll need to look for info online (there is a lot of info on may sites), or find someone who's more knowledgeable about git to help you.

DominicG

Thank you for your quick reply Paul!

Dominic

Just wanted to let everyone in this thread know that it is working great for me!

I am using Arduino 1.5.5 IDE under Mac OS X
Using OneWire_preview22_17jan13.zip library

Thanks guys!  :)

Dear Dominic ,

I appreciate what you have done. I was trying to find the SdFatHsmci library zip. I was unable to find library in github or here.

Please let us know where we can download that library.


Thanks

Go Up