| The use of Dallas 1Wire network is
the same with JStamp or SaJe, the only difference is where the serial
to 1Wire adapter is, and how it is powered. The Java code is identical.
SaJe has a DS2480 on board and a Dallas-pinout RJ12 with power and
1Wire signals already there. With JStamp you need to plug in a DS9097U
plus add a power connection to power the adapter, since the DS9097U
steals power from the serial port RTS and DTR lines, and these are
unconnected on JStamp dev station PCB rev 1.10 and older.
RTS and DTR are pins 4 and 7 on the JSDS DB9M. The DS9097U doesn't
say how much current it needs, but these pins feed a small 5V regulator,
so assume they need to be at least 5V. The latest DS9097U data sheet
(www.iButton.com) specifies >= 5V supply. They can handle at
least up to 10 or 12 volts since these are normal RS232 levels.
With a DS9097U-09 on a JSDS, applying power to DB9M pin 4
5V = 1.9 mA
6V = 1.65 mA
7 to 10V = 1.65 mA
Now with a blue dot reader DS1402-DR8 and a DS1920 button:
brief surge then same 1.65 mA
The DS9097U seems to be short circuit limited to 16 mA, that was
the most I could pull into it with the 1Wire outputs shorted (as
can happen when inserting an iButton a bit cocked into the reader).
The DS1920 can require up to 1 mA of current during conversion,
according to its data sheet.
For 3 mA of supply to the DS9097U you could use a 1600 to 2000
ohm resistor from the MAX232A's 10V signal (U1 pin2). Note that
U1 is under the JStamp socket, and its a small surface mount part.
This makes soldering to it a challenge. Plus then you need to get
the wire from the top of the board to the bottom to attach it to
the DB9 pin.
Better yet, and a lot easier, power the DS9097U with 5V from the
underside of the board. J8 pin 4 (adjacent to JStamp pin 40) is
Vcc. I used a 10 ohm resistor (it provides some minimal isolation
from Vcc to the 1Wire adapter - 500 mA short circuit current through
a 1/8 watt resistor should turn it into a fuse). Tie this to serial
A pin 4. With the 9097U and blue dot with DS1920 it still has 5.00
volts and seems happy.
|