TOP Contributors

  1. MIKROE (2652 codes)
  2. Alcides Ramos (351 codes)
  3. Shawon Shahryiar (307 codes)
  4. jm_palomino (112 codes)
  5. Chisanga Mumba (90 codes)
  6. S P (73 codes)
  7. dany (71 codes)
  8. MikroBUS.NET Team (35 codes)
  9. NART SCHINACKOW (34 codes)
  10. Armstrong Subero (27 codes)

Most Downloaded

  1. Timer Calculator (136628 times)
  2. FAT32 Library (69833 times)
  3. Network Ethernet Library (55887 times)
  4. USB Device Library (46226 times)
  5. Network WiFi Library (41861 times)
  6. FT800 Library (41080 times)
  7. GSM click (28942 times)
  8. PID Library (26402 times)
  9. mikroSDK (26316 times)
  10. microSD click (25328 times)
Libstock prefers package manager

Package Manager

We strongly encourage users to use Package manager for sharing their code on Libstock website, because it boosts your efficiency and leaves the end user with no room for error. [more info]

< Back
Example

DS1820 Examples

Rating:

0

Author: dany

Last Updated: 2014-05-16

Package Version: 1.0.0.0

Example: 1.0.0.0

Category: Measurement

Downloaded: 1408 times

Not followed.

License: MIT license  

4 examples of driving the DS1820, DS18S20 and DS18B20 digital temperature sensors, using the TempSensors and the OW_Utilities libraries. The examples can also be used with PIC24 (small changes in processor initialisation needed).

No Abuse Reported

Do you want to subscribe in order to receive notifications regarding "DS1820 Examples" changes.

Do you want to unsubscribe in order to stop receiving notifications regarding "DS1820 Examples" changes.

Do you want to report abuse regarding "DS1820 Examples".

  • Information
  • Comments (0)
DOWNLOAD LINK RELATED COMPILER CONTAINS
mikroPascal PRO for PIC
  • lib
  • src
  • exa
  • hlp
  • hex
  • sch
  • pcb
  • doc

Example Blog

The zipfile contains the source (main) files of 4 examples using the "TempSensors" and the "OW_Utilities" packages (next to of course the OW library and some others from mE). All examples can handle the DS1820, DS18S20 and DS18B20, except DS1820_1, which can not handle the DS18B20. All examples send their output to the Uart1 (115200 bd).

The examples are:

DS1820_1: very simple example, only one DS18x20 on the bus, not for DS18B20. It reads the RomCode of the device, showsits power mode (external or parasite), measures the temperature and shows it.

DS1820_2: Same as above, but can also handle the DS18B20 (next to DS1820 and DS18S20). Additionally the configuration of the device is shown and the possibility exists of setting the device configuration. Also a check is done for the "alarm" state of the device.

Multiple_DS1820_1: Same as DS1820_2, but multiple devices can be on the same ow bus, mixed DS1820, DS18S20 or DS18B20. The tempreature measurements are done and shown sequentially.

Multiple_DS1820_2: Same as Multiple_DS1820_1, but all temprerature measurements are done simultaneously, and after that alle measured values are shown sequentially.

ALSO FROM THIS AUTHOR

Thermostat with DS1820

5

Usage of the Ds1820 (one wire temp sensor) to control a heating system. Provides 2 different temp settings (e.g. day and night settings). Proportional control of the heater (which is basically on/off controlled) using PWM like method with a 1 minute timebase (x minutes on, y minutes off).

[Learn More]

I2c non blocking

10

Replacement routines for I2c1_Rd and I2c1_Wr but here with timeout, so no blocking any more when a device one tries to access is not present. The mE I2c library is still needed for the remaining I2c routines. Implemented also the code for controllers with 2 I2c's (e.g. P18F27K40).

[Learn More]

USB HID and MSD Host Library

10

This package contains the USB Host libraries for HID (e.g. Keyboard or Mouse) and MSD (e.g. USB stick)

[Learn More]