One-wire Interface
Discovery
Posts: 606
in Propeller 1
I designed a system that uses the Propeller and the One-wire network but noticed that the maximum propeller input voltage is Vdd (3.6 vdc). The One-wire must be held at 5.0 vdc to power the parasitic devices.
What is recommended to bridge the logic gap between the propeller and the One-wire devices?
Discovery
What is recommended to bridge the logic gap between the propeller and the One-wire devices?
Discovery
Comments
Sparkfun also provides a hookup guide on how to use their board/product.
Is this connection using the GPIO idea for the One-Wire network? Because the company behind it uses an excellent I2C method, using their DS2482, Sparkfun also sells break-out boards for the same sized part. Problem here is that the part is indeed a SMT type and soldering one of these is sometimes difficult.
Incidentally Jon I'm still using your translated from PBASIC for the BS2 to the BS1 for running the classic Stamp to Calculator idea to confirm that I'm getting the power connections for the devices to work.
What about using a 3.3 volt zener diode limiting the input voltage to the IO and connected to the one-wire through a 100 ohm resistor?
Discovery
The 1W bus is designed to be open-collector/drain so you don't need an inline resistor; the 4.7K pull-up to 5v is sufficient to limit the current on the IO pin.
I was concerned about the absolute maximum ratings stated in the Propeller specifications...Vdd max.
If the input circuits are not damaged by the 5 volts...that is very good to know.
Thank you.
Sincerely,
Discovery
Available application notes: AN001 thru AN015, AN018, and AN019.
Sandy
I will now remove the zener diode and series resistor from my PCB artwork layout. I follow component maximum ratings in my designs to be sure that these components function in the proper operating region.
I used BS2s with the 1-wire at a length of 120 feet with no problem. I am replacing the BS2s with the Propeller.
Sincerely,
Discovery
There is no h in my name.
In my new facility, I can cut the length back to about 80 feet so the 3.9k resistor should do the trick...I will find out.
Sincerely,
Discovery
Rising edge will be a little slow, as you're probably will use DIR.
The P1 protection-diode will try to clamp it and re-route the excess voltage to Props Vcc-rail, so 3.3V+0.3Fv = 3.6V clamping on the gpio.
If it use uses up the excess the voltage, the one-wire will never reach 5V (and other device feeds of this resting voltage?)
If P1 sleeps a lot and is not using the excess, it could build-up to 4.7V, potentially damage anything on Vcc that is rated 3.6V Max.
Get a HCT buffer, or at least a n-mosfet for open collector drive with 1K pull-up to 5V (though will not be bi-directional)
The one-wire port uses OWIN and OWOUT commands. It must be bi-directional.
Sincerely,
Discovery
https://www.mouser.com/Search/Refine.aspx?Keyword=P82B96&Ns=Pricing|0&FS=True
My PCB layout is completed in accordance with JonnyMac's recommendation using the parasitic capacitors in the one-wire devices for power and the 3.9k pull-up resistor.
All I need now is to develop the PropBasic code for running the propeller's one-wire and verify that it works on a long-line coax with my Propeller Activity Board as a test module then the PCB artwork will be sent out for commercial fabrication. Writing the PropBasic code for the one-wire devices is proving difficult.
I will keep the I2C device concept should the need arise. Thank you.
Discovery
Like 4–20 mA for current loop communication is there for a reason.
If I run into problems reading and writing on the PropBasic one-wire during test...I will switch and test the I2C configuration you recommend.
Discovery