Skip to content

Latest commit

 

History

5 Commits

Folders and files

NameName
Last commit message
Last commit date
 
 
 
 
 
 

Repository files navigation

ThermSDO

This Python 3 script for Raspberry Pi responds to SDO reads on CAN bus with temperature readings from a DS1621 thermometer via I2C. Command line arguments may be used to set the I2C bus address for the DS1621, the CANOpen node number, and the SDO index number. Temperature in degrees Celsius appears at subindex 1, as a 4-byte float. Temperature in degrees Fahrenheit appears at subindex 2, as a 4-byte float. The object dictionary is otherwise very sparse, as this implementation represents a small subset of CANOpen operations. Conversions on the DS1621 are free-running, while SDO reads are paced by the CANOpen master node. The smbus, python-can, and asyncio libraries are used here to good advantage.

About

Responds to SDO Reads With Temperature From DS1621

Topics

Resources

Stars

0 stars

Watchers

1 watching

Forks

Releases

Packages

Contributors

Languages