Comments (6)
I put a scope on the bus. Here is the OW bus messages, this is just repeating
Message detail of 'shorter' message
Message detail of 'longer' message
from onewirehub.
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.
from onewirehub.
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.
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.
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)
- Named emulation devices
- OneWireHub on ESP32 PROBLEM HOT 4
- ZONT controller HOT 4
- Possible 24B33 support ?
- error:first bit of byte timeout HOT 1
- Issue on ESP32. Missing bit because interrupts executed
- Why DS2506_EEPROM.ino can't emulate more than 574 bytes of data? HOT 1
- Build issues on PlatformIO (for Arduino Uno)
- Stability / timing issue HOT 1
- Non-Volatile Memory / Save Page Data to EPROM
- Would it be possible to adapt this project with ATtiny85 for 1-wire + I2C? HOT 1
- ESPHome , Home Assistant HOT 1
- Need solution for ESPHome HOT 1
- Support for Raspberry RP2040 HOT 3
- Supported and tested Hardware: Attiny84 - Global variables use 574 bytes (112%) of dynamic memory HOT 17
- samd51 m4
- Instability when connected with several real slaves HOT 2
- Support for ATtiny816 / 1-series ATtiny HOT 1
- Not Run Correctly on STACK-M5 ATOM-U (ESP32) HOT 4
- DS2431 wrong answer (0x55) at Copy Scratchpad Command
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
π Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google β€οΈ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from onewirehub.