FW_NAME=kd240-motor-ctrl-qei
# Load the target firmware package
dfx-mgr-client -loadByName ${FW_NAME}
```
* You can check if the slave entry is added under `/sys/bus/w1/devices` and if master bus also registers this slave.
```bash
bash-5.2# cd /sys/bus/w1/devices/
bash-5.2# ls
28-00000f051201 w1_bus_master1
bash-5.2# cat 28-00000f051201/name
28-00000f051201
bash-5.2# ls 28-00000f051201
alarms conv_time driver eeprom_cmd ext_power features hwmon id name power resolution subsystem temperature uevent w1_slave
bash-5.2# cd w1_bus_master1
bash-5.2# cat w1_master_slave_count
1
bash-5.2# cat w1_master_slaves
28-00000f051201
```
* You can also read the temperature through the filesystem
```bash
bash-5.2# cd /sys/class/hwmon/
bash-5.2# ls
hwmon0 hwmon1 hwmon2 hwmon3
bash-5.2# cat hwmon3/name
w1_slave_temp
bash-5.2# cat hwmon3/temp1_input
21250
```
* The sensor read through the filesystem provides temperature in millidegrees Celsius
* The `lm_sensors` utility's `sensors` command gathers information from the kernel interfaces provided by `hwmon` subsystem, aggregates this raw data,
applies scaling and calibration and presents it in a human-readable format.
* Run the 1-wire demo to measure temperature.
```bash
# Output should be the following
bash-5.2# sensors
ina260-i2c-1-40
Adapter: Cadence I2C at ff030000
in0: 1000.00 uV (crit min = +0.00 V, crit max = +0.00 V)
in1: 5.07 V (crit min = +0.00 V, crit max = +0.00 V)
power1: 2.55 W (crit = 0.00 W)
curr1: 504.00 mA (crit min = +0.00 A, crit max = +0.00 A)
w1_slave_temp-virtual-0
Adapter: Virtual device
temp1: +21.2 C
ams-isa-0000
Adapter: ISA adapter
VCC_PSPLL: 1.20 V
VCC_PSBATT: 0.00 V
VCCINT: 718.00 mV
VCCBRAM: 848.00 mV
VCCAUX: 1.80 V
VCC_PSDDR_PLL: 1.79 V
VCC_PSINTFP_DDR: 854.00 mV
VCC_PSINTLP: 847.00 mV
VCC_PSINTFP: 847.00 mV
VCC_PSAUX: 1.80 V
VCC_PSDDR: 1.09 V
VCC_PSIO3: 1.79 V
VCC_PSIO0: 1.79 V
VCC_PSIO1: 1.79 V
VCC_PSIO2: 1.79 V
PS_MGTRAVCC: 851.00 mV
PS_MGTRAVTT: 1.80 V
VCC_PSADC: 1.79 V
VCCINT: 717.00 mV
VCCAUX: 1.80 V
VREFP: 1.25 V
VREFN: 0.00 V
VCCBRAM: 848.00 mV
VCC_PSINTLP: 846.00 mV
VCC_PSINTFP: 850.00 mV
VCC_PSAUX: 1.80 V
VCCAMS: 1.78 V
Temp_LPD: +40.0 C
Temp_FPD: +40.1 C
Temp_PL: +41.3 C
```
* The output will have multiple sensors and `w1_slave_temp-virtual` is the desired One Wire Temperature Sensor value that is connected to KD240.
## Next Steps
* Go back to the [KD240 FOC Motor Control Application Start Page](../foc_motor_control_landing)
Copyright© 2023-2026 Advanced Micro Devices, Inc