New to the BS2p24 - one wire woes.
pwillard
Posts: 321
I'm looking for some guidance.
I have a part labeled DS1820. I've tried the code from the BS2P section of the BASIC STAMP EDITOR for owin owout examples... and I just get:
DS1822
10 C
50 F
No matter what.
I've verified that the Stamp finds the ROM ID with other methods (code samples from the forums) and the BS2p24 gets the right ID: 10 A5 C5 54 01 08 00 B7, but looking at the scratchpad after a temperature conversion command always returns the following 16 BIT values LSbyte: FF MSByte: 00. ALWAYS.
I'm stumped... Ive tried lots of code from the forums that seems to work for others... and I've tried multiple DS1820's. I know they work because they are fine in my weather station. I'm not going to trudge off to write my own code from scratch till I see it work once... make sense?
The BS2P24 just doesn't like my devices?
They are parasitic (DQ has a 4.7K resistor to STAMP Vdd and the GND and Vdd pins are tied together to enable parasitic mode on the sensor)
▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
There's nothing like a new idea and a warm soldering iron.
I have a part labeled DS1820. I've tried the code from the BS2P section of the BASIC STAMP EDITOR for owin owout examples... and I just get:
DS1822
10 C
50 F
No matter what.
I've verified that the Stamp finds the ROM ID with other methods (code samples from the forums) and the BS2p24 gets the right ID: 10 A5 C5 54 01 08 00 B7, but looking at the scratchpad after a temperature conversion command always returns the following 16 BIT values LSbyte: FF MSByte: 00. ALWAYS.
I'm stumped... Ive tried lots of code from the forums that seems to work for others... and I've tried multiple DS1820's. I know they work because they are fine in my weather station. I'm not going to trudge off to write my own code from scratch till I see it work once... make sense?
The BS2P24 just doesn't like my devices?
They are parasitic (DQ has a 4.7K resistor to STAMP Vdd and the GND and Vdd pins are tied together to enable parasitic mode on the sensor)
▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
There's nothing like a new idea and a warm soldering iron.
Comments
Dave
▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
Dave Andreae
Parallax Tech Support·
▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
There's nothing like a new idea and a warm soldering iron.
▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
Tracy Allen
www.emesystems.com
▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
There's nothing like a new idea and a warm soldering iron.
▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
Shawn Lowe
When all else fails.....procrastinate!
It relies on infrequent polling of the device and stores energy in the cap while the I/O line is pulled high. When the line is low, the diode blocks, keeping the cap from draining into the I/O line. The cap will have to be big enough to provide adequate hold-up time while the device is drawing its active current. This needs to be offset by the required charge time through the pullup resistor. A slightly stiffer pullup at the Stamp end may help in this regard.
-Phil
Ultimately, I plan to use the STAMP with my Dallas 1-wire weather unit, so if this modification works... it would make moving forward easier with the rest of the devices.
I thought the 1-wire bus stays high with no data... data pulls it low... so if I DON'T write... it will charge the cap...right?
...or do I understand that wrong?
▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
There's nothing like a new idea and a warm soldering iron.
Post Edited (pwillard) : 6/19/2009 1:51:51 AM GMT
-Phil
But a while ago I was trying to get the sensor connected to a BS2, and after posting and searching I found this:
http://www.beescollc.com/MBENZ/MBSENSOR.htm
At the bottom of the page there is a link for his design. Got in contact with the gentlemen and sure enough, I need better than a BS2 (soon to purchase a BS2P)
and a 1 wire won't work.
Just to let you know !
Cheers
▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
There's nothing like a new idea and a warm soldering iron.