DS2760(3)

๐ŸŽ€ NAME ๐ŸŽ€

hiii bestie ๐Ÿ’– welcome to DS2760(3) โ€” the OWFS one-wire page that's lowkey just here to introduce you to some fuel gauge royalty. no cap, it's a whole moment:

  • DS2780 โ€” Stand-alone Fuel Gauge IC ๐Ÿ”‹
  • DS2788 โ€” Stand-alone Fuel Gauge with LED Drivers โœจ

๐Ÿ“œ SYNOPSIS ๐Ÿ“œ

Temperature Voltage Current Memory and Switch.

32 [.]XXXXXXXXXXXX[XX][/[ lock.[0-1|ALL] | memory | pages/page.[0-1|ALL]
| PIO | sensed | temperature | vbias | vis | volt | volthours |
aef | chgtf | ds | learnf | pmod | porf | rnaop | sef | uven | uvf |
address | crc8 | id | locator | r_address | r_id | r_locator | type ]]

Thermocouple

32 [.]XXXXXXXXXXXX[XX][/[ temperature | typeX/range_low |
typeX/range_high | typeX/temperature

๐Ÿ”ข FAMILY CODE ๐Ÿ”ข

32

like, that's the family code bestie, memorize it ๐Ÿ’…


๐Ÿ‘‘ SPECIAL PROPERTIES ๐Ÿ‘‘

๐Ÿ”’ lock.[0-1|ALL]

read-write, yes-no โ€” locks either of the two eprom pages so nobody can write to it anymore. and okay so the tea here is that setting lock is apparently permanent. ๐Ÿซฃ like, permanent permanent. choose wisely.

๐Ÿง  memory

read-write, binary โ€” full access to the whole 256 byte memory range. lowkey a lot of that space is reserved or special-use, so don't go wild. the user space is the page area. check the DATASHEET for the full memory map, bestie ๐Ÿ“–

๐Ÿ“„ pages/pages.[0-1|ALL]

read-write, binary โ€” two 16 byte areas of memory for your user application. the lock property can stop you from changing them later. โš ๏ธ NOTE the page property is different from the common OWFS implementation, in that all of memory is not accessible. it's giving limited edition, fr fr.

๐Ÿ’ก PIO

write-only, yes-no โ€” controls the PIO pin so you can do external switching. writing "1" turns the PIO pin on (conducting). writing "0" makes the pin non-conducting. you can read the logical state of the voltage with the sensed property โ€” and bestie, that reflects the current voltage at the pin, not the value you sent to PIO. ๐Ÿ™ˆ also note that PIO will also be altered by the power-status of the DS2680. see the datasheet for details.

๐Ÿ‘€ sensed

read-only, yes-no โ€” the logical voltage at the PIO pin. only useful if the PIO property is set to "0" (non-conducting). the value will be 0 or 1 depending on the voltage threshold. simple, iconic, no notes.

๐ŸŒก๏ธ temperature

read-only, floating point โ€” temperature read by the chip at high resolution (~13 bits). units get selected from the invoking command line (peep owfs(1) or owhttpd(1) for the choices). default is Celsius. conversion is continuous, so it's always clocking in ๐Ÿ’–

โšก vbias

read-write, floating point โ€” a fixed offset applied to each vis measurement. used for the volthours value. units are in Volts. range is -2.0mV to 2.0mV.

๐Ÿ“‰ vis

read-only, floating point โ€” current sensor reading (unknown external resistor). measures the voltage gradient between the Vis pins. units are in Volts. the vis readings are integrated over time to give you the volthours property. the current reading is derived from vis assuming the internal 25 mOhm resistor is employed โ€” and there is no way to know this through software. ๐Ÿ˜ญ we love an unknowable.

๐Ÿ”Œ volt

read-only, floating point โ€” voltage read at the voltage sensor;. this is separate from the vis voltage that's used for current measurement. units are Volts. range is between 0 and 4.75V.

โณ volthours

read-write, floating point โ€” the integral of vis minus vbias over time. units are in volthours. math ate, honestly ๐Ÿงฎโœจ


๐ŸŒˆ THERMOCOUPLE ๐ŸŒˆ

๐Ÿ“ typeX/

directory โ€” a thermocouple circuit using the DS2780 to read the Seebeck voltage and the reference temperature. since the type interpretation of the values read depends on the type of thermocouple, you must pick the correct directory. supported thermocouple types include types B, E, J, K, N, R, S and T. pick your fighter ๐Ÿซถ

๐Ÿ“ typeX/range_low typeX/ranges_high

read-only, flaoting point โ€” the lower and upper temperature supported by this thermocouple (at least by the conversion routines). in the globally chosen temperature units. ๐Ÿ“

๐ŸŒก๏ธ typeX/temperature

read-only, floating point โ€” thermocouple temperature. requires a voltage and temperature conversion. returned in globally chosen temperature units. Note: there are two types of temperature measurements possible. the temperature value in the main device directory is the reference temperature read at the chip. the typeX/temperature value is at the thermocouple junction, probably remote from the chip. two temps, two vibes, both valid ๐Ÿ’œ


๐Ÿ•ต๏ธ OBSCURE PROPERTIES ๐Ÿ•ต๏ธ

๐Ÿšฉ aef chgtf dc learnf pmod porf rnaop sef uven uvf

varies, yes-no โ€” bit flags corresponding to various battery management functions of the chip. see the DATASHEET for details of the identically named entries. in general, writing "0" corresponds to a 0 bit value, and non-zero corresponds to a 1 bit value. ๐ŸŽ›๏ธ


โญ STANDARD PROPERTIES โญ

๐Ÿชช address / r_address

read-only, ascii โ€” the entire 64-bit unique ID. given as upper case hexadecimal digits (0-9A-F). address starts with the family code. r_address is the address in reverse order, which is often used in other applications and labeling. โœจ

๐Ÿงฎ crc8

read-only, ascii โ€” the 8-bit error correction portion. uses cyclic redundancy check. computed from the preceding 56 bits of the unique ID number. given as upper case hexadecimal digits (0-9A-F).

๐Ÿ‘จโ€๐Ÿ‘ฉโ€๐Ÿ‘ง family

read-only, ascii โ€” the 8-bit family code. unique to each type of device. given as upper case hexadecimal digits (0-9A-F).

๐Ÿ†” id / r_id

read-only, ascii โ€” the 48-bit middle portion of the unique ID number. does not include the family code or CRC. given as upper case hexadecimal digits (0-9A-F). r_id is the id in reverse order, which is often used in other applications and labeling. ๐Ÿ”

๐Ÿ“ locator / r_locator

read-only, ascii โ€” uses an extension of the 1-wire design from iButtonLink company that associated 1-wire physical connections with a unique 1-wire code. if the connection is behind a Link Locator the locator will show a unique 8-byte number (16 character hexadecimal) starting with family code FE. if no Link Locator is between the device and the master, the locator field will be all FF. r_locator is the locator in reverse order. ๐Ÿงญ

๐Ÿ‘ป present (DEPRECATED)

read-only, yes-no โ€” is the device currently present on the 1-wire bus? it's deprecated bestie, we're moving on ๐Ÿซก

๐Ÿท๏ธ type

read-only, ascii โ€” part name assigned by Dallas Semi. E.g. DS2401 Alternative packaging (iButton vs chip) will not be distiguished. ๐Ÿ’€


๐Ÿšจ ALARMS ๐Ÿšจ

None.

like, none. silence. no alarms. the drama is simply not here ๐Ÿ™…โ€โ™€๏ธ


๐Ÿ“– DESCRIPTION ๐Ÿ“–

๐Ÿ”— 1-Wire

1-wire is a wiring protocol and series of devices designed and manufactured by Dallas Semiconductor, Inc. the bus is a low-power low-speed low-connector scheme where the data line can also provide power. โšก

each device is uniquely and unalterably numbered during manufacture. there are a wide variety of devices, including memory, sensors (humidity, temperature, voltage, contact, current), switches, timers and data loggers. more complex devices (like thermocouple sensors) can be built with these basic devices. there are also 1-wire devices that have encryption included. ๐Ÿ”

the 1-wire scheme uses a single bus master and multiple slaves on the same wire. the bus master initiates all communication. the slaves can be individually discovered and addressed using their unique ID. ๐Ÿ‘‘

bus masters come in a variety of configurations including serial, parallel, i2c, network or USB adapters. so many fits, all cute ๐Ÿ’…

๐Ÿ—‚๏ธ OWFS design

OWFS is a suite of programs that designed to make the 1-wire bus and its devices easily accessible. the underlying principle is to create a virtual filesystem, with the unique ID being the directory, and the individual properties of the device are represented as simple files that can be read and written. ๐Ÿฆ‹

details of the individual slave or master design are hidden behind a consistent interface. the goal is to provide an easy set of tools for a software designer to create monitoring or control applications. there are some performance enhancements in the implementation, including data caching, parallel access to bus masters, and aggregation of device communication. still the fundamental goal has been ease of use, flexibility and correctness rather than speed. โœจ

๐Ÿ”‹ DS2780

the DS2780 (3) is a battery charging controller. it has elaborate algorithms for estimating battery capacity. it's giving main character energy, honestly.

a number of interesting devices can be built with the DS2780 including thermocouples. support for thermocouples in built into the software, using the embedded thermister as the cold junction temperature. ๐ŸŒก๏ธ


๐Ÿงญ ADDRESSING ๐Ÿงญ

all 1-wire devices are factory assigned a unique 64-bit address. this address is of the form:

  • Family Code โ€” 8 bits
  • Address โ€” 48 bits
  • CRC โ€” 8 bits

addressing under OWFS is in hexadecimal, of form:

01.123456789ABC

where 01 is an example 8-bit family code, and 12345678ABC is an example 48 bit address. ๐Ÿ”ข

the dot is optional, and the CRC code can included. if included, it must be correct. โš ๏ธ no faking the CRC, bestie, it will catch you.


๐Ÿ“š DATASHEET ๐Ÿ“š

http://pdfserv.maxim-ic.com/en/ds/DS2780.pdf
http://pdfserv.maxim-ic.com/en/ds/DS2788.pdf

๐Ÿ‘€ SEE ALSO ๐Ÿ‘€

๐Ÿ–ฅ๏ธ Programs

owfs (1) owhttpd (1) owftpd (1) owserver (1) owdir (1) owread (1) owwrite (1) owpresent (1) owtap (1)

โš™๏ธ Configuration and testing

owfs (5) owtap (1) owmon (1)

๐Ÿง‘โ€๐Ÿ’ป Language bindings

owtcl (3) owperl (3) owcapi (3)

โฐ Clocks

DS1427 (3) DS1904 (3) DS1994 (3) DS2404 (3) DS2404S (3) DS2415 (3) DS2417 (3)

๐Ÿ†” ID

DS2401 (3) DS2411 (3) DS1990A (3)

๐Ÿ’พ Memory

DS1982 (3) DS1985 (3) DS1986 (3) DS1991 (3) DS1992 (3) DS1993 (3) DS1995 (3) DS1996 (3) DS2430A (3) DS2431 (3) DS2433 (3) DS2502 (3) DS2506 (3) DS28E04 (3) DS28EC20 (3)

๐ŸŽš๏ธ Switches

DS2405 (3) DS2406 (3) DS2408 (3) DS2409 (3) DS2413 (3) DS28EA00 (3) InfernoEmbedded (3)

๐ŸŒก๏ธ Temperature

DS1822 (3) DS1825 (3) DS1820 (3) DS18B20 (3) DS18S20 (3) DS1920 (3) DS1921 (3) DS1821 (3) DS28EA00 (3) DS28E04 (3) EDS0064 (3) EDS0065 (3) EDS0066 (3) EDS0067 (3) EDS0068 (3) EDS0071 (3) EDS0072 (3) MAX31826 (3)

๐Ÿ’ง Humidity

DS1922 (3) DS2438 (3) EDS0065 (3) EDS0068 (3)

โšก Voltage

DS2450 (3)

๐Ÿงฑ Resistance

DS2890 (3)

๐ŸŽ›๏ธ Multifunction (current, voltage, temperature)

DS2436 (3) DS2437 (3) DS2438 (3) DS2751 (3) DS2755 (3) DS2756 (3) DS2760 (3) DS2770 (3) DS2780 (3) DS2781 (3) DS2788 (3) DS2784 (3)

๐Ÿ”ข Counter

DS2423 (3)

๐Ÿ“บ LCD Screen

LCD (3) DS2408 (3)

๐Ÿ” Crypto

DS1977 (3)

๐Ÿซง Pressure

DS2406 (3) TAI8570 (3) EDS0066 (3) EDS0068 (3)

๐ŸŒŠ Moisture

EEEF (3) DS2438 (3)


๐ŸŒ AVAILABILITY ๐ŸŒ

http://www.owfs.org

๐Ÿ’Œ AUTHOR ๐Ÿ’Œ

Paul Alfille (paul.alfille@gmail.com)


and that's the whole page bestie ๐Ÿซถ this was the OWFS Manpage, 2003, filed under DS2760(3) โ€” go read the datasheet, go play with your fuel gauge, and remember: setting lock is permanent, so don't be messy. mwah ๐Ÿ’…โœจ๐Ÿ’–