Giter Site home page Giter Site logo

ATtiny85 one wire issue about onewirehub HOT 6 OPEN

orgua avatar orgua commented on May 20, 2024
ATtiny85 one wire issue

from onewirehub.

Comments (6)

dakarym avatar dakarym commented on May 20, 2024

I put a scope on the bus. Here is the OW bus messages, this is just repeating
screen shot 2017-03-12 at 5 08 39 pm

Message detail of 'shorter' message
screen shot 2017-03-12 at 5 40 49 pm

Message detail of 'longer' message
screen shot 2017-03-12 at 5 41 23 pm

from onewirehub.

orgua avatar orgua commented on May 20, 2024

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?

from onewirehub.

dakarym avatar dakarym commented on May 20, 2024

from onewirehub.

mursel avatar mursel commented on May 20, 2024

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.

from onewirehub.

Giermann avatar Giermann commented on May 20, 2024

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 even tried to run the Tiny85 at 16MHz (PLL), which does a better job - but still the device disappears, gives read errors or simply 0xFF register content. I verified this with a Logic Analyzer, but don't know the source of the problem.
I ran "calibrate_by_bus_timing", which gave me value_ipl=13 at 8 and 16 MHz.
There's no bus issue, as I'm running a DS9490R in a test environment with less than 1m cable.
Everything works as expected on an Arduino Nano (at 8MHz, but not on the Tiny.

I read about the inaccurate clock timing of the Tinys and guess the Nano runs a real oscillator.
Does anybody have experience with this on Tiny85?

@mursel - at what environment does your attiny85 run perfectly?
Internal clock? Which bus master?
Maybe I should switch to my own (Arduino based) bus master to solve the timing issues on my production bus, but what's wrong with these Tinys?

from onewirehub.

Lukkoz avatar Lukkoz commented on May 20, 2024

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.

from onewirehub.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    πŸ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. πŸ“ŠπŸ“ˆπŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❀️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.