-
Notifications
You must be signed in to change notification settings - Fork 86
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
ATtiny85 one wire issue #29
Comments
oh man, i missed your issue. sorry. were you able to solve your problem? i can give you some hints for your problems:
with which attiny-library are you working? arduino itself does not support these chips. |
i haven't been back to think for a long while. still something that is
interesting to do. i'll have to put the hardware back together and get
back to it to try. i'll see maybe this weekend
…On Sun, Aug 20, 2017 at 6:20 PM, inʒo ***@***.***> wrote:
oh man, i missed your issue. sorry. were you able to solve your problem?
i can give you some hints for your problems:
- calibrate by bus-timing has the following setup: upload sketch to
controller and hook it up to a OW-master. controller will listen to the bus
and determine value_ipl by measuring the resetpulse
- but this won't work with your attiny, because it should have no
serial
- you are right, the "attiny85-4slaves.ino" example was broken due to
changes in data-types, newest lib-version works now
with which attiny-library are you working? arduino itself does not support
these chips.
did the compiler tell you, that your value_ipl has to be determined or did
you stumble on "calibrate_by_bus_timing" yourself?
—
You are receiving this because you authored the thread.
Reply to this email directly, view it on GitHub
<#29 (comment)>,
or mute the thread
<https://github.com/notifications/unsubscribe-auth/AZI_YxQe4quOYQBALI6nSU2E6963ZESdks5saFzCgaJpZM4MajXD>
.
|
As I understood I can use OneWireHub to make my attiny85 (in my case) as 1-wire device through emulation. Correct me if im wrong. UPDATE: Thanks a lot for this lib... it's perfectly working on my attiny85 as slave. |
I'm using this library for almost 3 years now, but a rather old version, slightly patched to work on (my) ATtinys. I was unable to use more recent code on my 1-Wire bus because of the timing. Further I had to run the Tiny85 at 8 MHz, which I'm fine with - but still my clients keep to disappear from the bus, cause read errors - but everything turns good itself on the next reading, so I do not care much about it. These days I started another approach to emulate a DS18B20 and faced the same problems as @dakarym . I read about the inaccurate clock timing of the Tinys and guess the Nano runs a real oscillator. @mursel - at what environment does your attiny85 run perfectly? |
I just tried the newest version of the library with ATtiny85. At first, it was now working at all but after switching from 1 MHz internal oscillator to 16 MHz external one everything works perfectly. |
I want to emulate a DS18B20 sensor from an ATTiny85. I have followed your instructions the best I can but fail to get it to work. Using an Uno, I can try to read the OW temperatures. The device number (ROM) is ok, but the temperature data is erratic and coming through as mostly FF's.
Latest master repository from git
1.8.1 version of Arduino IDE
Use serial debug and use gpio debug both set to 0 in onewirehub_config
A real DA18B20 sensor works properly with my OW master Uno
Your "calibrate_by_bus_timing" sketch does not seem to run on either my ATtiny85 or Uno, unless I am not using it correctly. It just shows report the "OneWire-Hub calibration by observing the OW-Bus" via serial. nothing more, and the led pin doesn't blink
The attiny85-4slaves.ino debug example fails to compile due to an ambiguious error
I can see that the ds18b20 sensor is receiving and reporting the correct number via the below lines in the test sketch, but the digital value via OW is not correct.
mySerial.print("Test - set Temperatures to 0 degC: ");
ds18b20.setTemperature(int8_t(0));
mySerial.print(ds18b20.getTemperature());
I have a scope and can look at the one wire signal, but I do not know what feature to monitor or which of the timing values to change.
The text was updated successfully, but these errors were encountered: