It would be relatively simple to add a ton more decoupling to the supply rails, hopefully to get a cleaner supply. I'd try that before looking elsewhere for the cause.
yes I did a whole set of experiments with diferent types of capacitors. I tried filtering with parallel 2200uF capacitor directly to the 5V line, smaller 1, 10 and 100nF capacitors and even an lc filter like this:
Didn't notice any change... Even tried to power the sensors and I2C 1Wire bridge with an external lm7905. Nothing worked.
Do you have the external MOSFET and active pullup turned on as that device powers everything parasitically.
Mike.
I haven't hooked up the external mosfet. I understand that sensors are powered by the 5V line (and GND), and data line is only for 1Wire communications.
Today I studied the problem with an oscilloscope and discovered some stuff. but still can't make a conclusion about this... Is seems that there are 2 thing happening.
1. Ground isn't really ground:
**broken link removed**
here we can see at data communication when the bus is pulled to low, some bits don't stay at 0v as long as they should... Here's another image (it also looks that there are some negative peaks??):
**broken link removed**
2.There seems to be an intermitent noise in the bus:
**broken link removed**
First image looks fine (except for the misterious negative spike)... but then:
**broken link removed**
Look at all that noise (just when the bus is pulled low).....
OK so till here, one would think there's a psu noise problem, but as i said before, i tried LOTS of filtering options. In fact, i noticed (and this may be the most interesting discovery) that noise persists in the 1Wire line even when disconnecting the positive rail from the supply (tried this with a battery).
The noise observed had a (kind of) cyclic nature: It appeared and then disappeared. The noise looked just line the one seen in the last image.
The 1Wire line has an UTP CAT6 cable. I'm just using the twisted pairs as one wire for pair (as i'm not using a differential signal). So one possible theory would be that the UTP cable is acting as an antenna or something like that (is this possible?) BUT the problem (corrupt 1Wire data) seems to happen even when connecting sensors directly.
Also, at first (havn't had this problem today) i was having this wired problem which conssisted on the sensors (i suppose after reading some corrupted data) pulled the bus low untill disconnecting and reconnecting them (and so on till next corrupted data).
I understand this is not normal 1Wire behaviour, as i have seen the data lines bridged to ground and coming back after releasing.
UPDATE:
here's a screenshot when using a cheap chinese power supply:
**broken link removed**
a total mess...