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]
Rating:
Author: Peter Erasmus
Last Updated: 2012-02-16
Package Version: 1.0.0.0
Example: 1.0.0.0
Category: Communication
Downloaded: 1490 times
Followed by: 2 users
License: MIT license
This Example shows how to read the DS1820 Temperature sensor with One wire and send the value over CAN to the Master node.
This is based on the Example by Dogan Ibrahims in his book Advance PIC Projects which many users have a problem with Hope this helps you
Do you want to subscribe in order to receive notifications regarding "Ds1820 Temperature Over CAN" changes.
Do you want to unsubscribe in order to stop receiving notifications regarding "Ds1820 Temperature Over CAN" changes.
Do you want to report abuse regarding "Ds1820 Temperature Over CAN".
DOWNLOAD LINK | RELATED COMPILER | CONTAINS |
---|---|---|
1329299521_ds1820_teperatur_mikroc_pic.zip [289.10KB] | mikroC PRO for PIC |
|
This Example is based on the CAN example in the Book Advance PIC projects from Dogan Ibrahim
Please note that I used the DS 1820 Teperature sensor and connected a EasyPIC6 board as the collector Node and the dsPIC Pro Board as master together.
The master sends the Command 'T' to the salve the slave then reads the DS1820 and send the Raw value over CAN to the master,
The master node converts the Raw CAN data to temperature and display it on the LCD .
To star the reading of the temperature the master node control commands are controlled by the User by pressing button RB0
The master node also write out on CAN the Actual temperature if you want to plot it ,
The supplied file include the dbc file to do so !