Pages: 1 2 3 [4]   Go Down
Author Topic: OneWire in Due  (Read 19426 times)
0 Members and 1 Guest are viewing this topic.
0
Offline Offline
God Member
*****
Karma: 25
Posts: 606
Always making something...
View Profile
WWW
 Bigger Bigger  Smaller Smaller  Reset Reset

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

Germany
Offline Offline
Full Member
***
Karma: 10
Posts: 230
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

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.
Logged

Offline Offline
Newbie
*
Karma: 0
Posts: 6
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

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
Logged

0
Offline Offline
God Member
*****
Karma: 25
Posts: 606
Always making something...
View Profile
WWW
 Bigger Bigger  Smaller Smaller  Reset Reset

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

Offline Offline
Newbie
*
Karma: 0
Posts: 6
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

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
Logged

0
Offline Offline
God Member
*****
Karma: 25
Posts: 606
Always making something...
View Profile
WWW
 Bigger Bigger  Smaller Smaller  Reset Reset

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.
Logged

Offline Offline
Newbie
*
Karma: 0
Posts: 6
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

Thank you for your quick reply Paul!

Dominic
Logged

Offline Offline
Newbie
*
Karma: 0
Posts: 4
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

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!  smiley
Logged

Pages: 1 2 3 [4]   Go Up
Jump to: