-
Notifications
You must be signed in to change notification settings - Fork 22
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
Using a genuine i2c bus master (DS2482-100) #74
Comments
Er, maybe. TBH I'm not sure, but we can certainly have a look. Can you talk more about the use case (the need for buffering and ESD protection)? I'd still like the option of direct GPIO connections for the hobbyist and of course, I have the ad-on board which is geared up for it. Perhaps as an aside, we could add the ESD protection diode to that? #67 might be relevant and I was thinking of moving away from the |
I'm wanting to spread a few sensors about the garden (weather station) and have long (10m or so) between the sensors and also between the sensor and the pizero. Looking at what other people have done, there seems to be agreement (within the 1-wire community) that the esd protection is fairly important and also having the devices wired on a bus rather than a star topology is better. |
Good stuff, this is defo on interest. I hadn’t really considered stringing sensors along a single cable (is that what you mean by “bus”?). I’m not familiar with the chip you mentioned or it’s purpose - is it about converting I2C to and from 1-wire as much as anything? So if we made the add-on board include ESD protection (which I’m guessing comes into its own with longer runs of cables?) would that meant you could do what you want without the boards you mentioned? How do you make up longer, daisy chained sensor cables? Would you use the RSJ45 connector? I’m thinking my boards can be made cheaper than those £10 ones and if it’s just about the ESD protection, there would be no mods to the code, the 1-wire stuff would “just work” (in theory). Do you have PCB design skillz - fancy to help design a more flexible add-on board? The Fritzlang files are on GitHub. |
All of the 1-wire sensors can be 'daisy-chained' onto a single gpio pin or bus master, preferred method is to use 3 wires, (power, data and gnd). |
Forgot to mention, 1-wire is a bus design, there can be issues with signal reflections on the bus. |
That's awesome, thanks. I come from a software background so appreciate any hardware pointers. I'd have to find out more about the 'hardware bus interface' and how we'd interact with it from software as I like the idea of a single wire. It's a bit confusing thought as the 1-wire protocol uses 3 wires (and the software currently uses |
This link might give more detail 1-wire was initially meant for on pcb use between ic's. But as dallas/maxim developed devices, like temp sensors, they adjusted things to work better over longer distances. I2C admittedly uses two pins SDA and SCL so rather defeats the 1 wire philosophy. You always need a gnd too ! :) For a small number of sensors (eg DS18B20) they can be powered via parasitic power and just use data and gnd. |
Thanks for the link. I guess your original question "ny difficulty adapting t-m to use a genuine i2c bus master (DS2482-100)?" is really about support I2C which by the looks of it, is straightforward (famous last words). I'll have to get a board to experiment but I really like the idea of supporting both and especially the option to include humidity into temperature-machine... have the change the name though ;) It'd be great if we could combine the likes of the AB Electronics board with my super-simple (1-wire focused) board and give people the option to do both. I've had batches of 10 prototyped for just a couple of £ which I like as it keeps accessible to the hobbyist. |
I think you could connect humidity via your interface, provided it supplies power which yours does. The esd diode (useful for longer runs) is only available in surface mount package. I believe it can be replicated with a couple of 7.5v zener diodes and two 5ohm resistors, so easy to add using Fritzing. |
Definitely. If we can detect it via software, we could avoid a config file setting (although I'll be building out a UI for the config file soon enough - making it just as easy). My preference for the add-on board is surface mount (mostly for aesthetics - I think it looks cooler) but defer to you on the PCB stuff. |
Oh yes, SMD is much neater and cooler. Some quick prices on the main parts: |
Just been playing with your pcb, added the esd diode (smd), obviously this makes the device harder to construct from a diy viewpoint... |
Love it! Thanks. Will follow up with some questions no doubt but good work 😄 |
Is this he right component? https://uk.rs-online.com/mobile/p/tvs-diodes/5402906/ It has a P+ postfix but the non-postfix DS9503 comes in quantities of 120! |
Yes, that is the part. Should have been more specific! |
I'm just catching up with this again and am thinking of getting some prototype boards made up (@Totoleheros had a good tip RE board printers in #35). Any extra thoughts or ideas? Could you share your Frizlang file? You could do a pull request if you like? |
Toby,
I would definitely be interested in paying for / testing any boards. My
system plans have grown since we last spoke and I am planning to include
humidity measuring for inside nodes and other environmental sensors on
external nodes.
Paul
…On Sat, 20 Apr 2019, 11:32 Toby, ***@***.***> wrote:
I'm just catching up with this again and am thinking of getting some
prototype boards made up ***@***.*** <https://github.com/Totoleheros>
had a good tip RE board printers in #35
<#35>). Any extra
thoughts or ideas? Could you share your Frizlang file? You could do a pull
request if you like?
—
You are receiving this because you are subscribed to this thread.
Reply to this email directly, view it on GitHub
<#74 (comment)>,
or mute the thread
<https://github.com/notifications/unsubscribe-auth/AIW7LT6EGZOQHZK7ETKVA2DPRLWNRANCNFSM4FDGGXRQ>
.
|
Hi Toby, You are welcome to use the Fritzing file, if I recall the only addition was the ESD protection diode (DS9503) to protect the PI input if using long wires. This device is surface mount and the resistor has also switched over to smd too, but you could easily solder a leaded resistor in its place. |
Great, thanks 👍 |
Would there be any difficulty adapting t-m to use a genuine i2c bus master (DS2482-100)?
There are a couple I have in mind:
AB Electronics
https://www.abelectronics.co.uk/p/76/1-wire-pi-zero
and
Sheepwalk Electronics
via ebay https://tinyurl.com/ydybdrp9
My reasoning is this gives a degree of buffering and esd protection as opposed to the direct gpio connection.
The text was updated successfully, but these errors were encountered: