cu-ecen-aeld / final-project-DivyeshShashikant

final-project-DivyeshShashikant created by GitHub Classroom
0 stars 0 forks source link

Detect Temperature Sensor on BeagleBone Black #2

Closed DivyeshShashikant closed 2 years ago

DivyeshShashikant commented 2 years ago

DoD:

Task

Blockers

DivyeshShashikant commented 2 years ago
  1. Could not implement the above mentioned tasks due to the blocker faced.
  2. Post creating the buildroot image and flashing it onto the BBB board, we were expecting to log in via SSH over the USB interface. Unfortunately, we were not able to login.
DivyeshShashikant commented 2 years ago

After the i2c patch was applied and upon running the the commands i2cdetect -l and ls /dev/ | grep i2c on the BBB board, I noticed the i2c buses (0,1,2) respectively. i2cdev_patch_added_successful i2cdetect_l

DivyeshShashikant commented 2 years ago

ran the command i2cdetect -r -y 2 to list the slave device (TMP102) address (0x48) on the 2nd channel i2c of the BBB board. The outputs are before and after connecting the sensor to the BBB board. sensor_detect

DivyeshShashikant commented 2 years ago

executed the command i2cset -y 2 0x48 0x00 The first hex number is the i2c device address followed by the specific data register to be written. I verified the write transactions on a logic analyzer and found it to be correct. logic_i2cset

DivyeshShashikant commented 2 years ago

executed the command i2cdump -y 2 0x48 w to read raw temperature values. The first hex number is the i2c device address followed by the specific data register to be written. I verified the read transactions on a logic analyzer and found it to be correct. The first column values are the required values of out which 12 bits shall be the temperature readings. Further operations will be done on these values to get the temperature in a readable form. logc_i2chexdump