TOP Contributors

  1. MIKROE (2653 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 (136643 times)
  2. FAT32 Library (69857 times)
  3. Network Ethernet Library (55899 times)
  4. USB Device Library (46236 times)
  5. Network WiFi Library (41869 times)
  6. FT800 Library (41097 times)
  7. GSM click (28952 times)
  8. PID Library (26403 times)
  9. mikroSDK (26321 times)
  10. microSD click (25334 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 Temperature Over CAN

Rating:

0

Author: Peter Erasmus

Last Updated: 2012-02-16

Package Version: 1.0.0.0

Example: 1.0.0.0

Category: Communication

Downloaded: 1468 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

No Abuse Reported

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".

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

Example Blog

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 !

CAN Logger dbc File view

CAN Logger dbc File view

The image show the CAN value in a CAN logger with dbc file

View full image
Temperature log

Temperature log

Temperature Plot

View full image
Diplay

Diplay

Shows the Temperature on LCD

View full image

ALSO FROM THIS AUTHOR

CAN HID Servo Motor Control Application

6

This application controls a PMSM /BLDC Servo Motor over CAN bus from a PC over HID USB as used in Industrial Applications. Shows also CAN communication for PIC18 and dsPIC33

[Learn More]

CAN dsPIC33EP

0

The example shows how to use the ECAN module on the dsPIC33EP devices running at 140Mhz(70MIPS) The code transmit messages and Receive messages with interrupt driven events. The LM35 Tempsensor voltage is read and send over CAN . Development Board EasyPIC Fusion 7 with dsPIC33EP512MU810 module Example Code for mikroC compiler

[Learn More]

Phase Shifted Complementary PWM

0

This example shows how PWM1 and PWM2 running in Complemetary mode can be phase shifted this is useful for people working with Motor Control and Switch mode power supplies.Example also shows how to set Dead Time for individual PWM channels. The ADC is triggered by the PWM and Simulataneous conversion is done on 2 channels.

[Learn More]