Archive 07/10/2020.

Regarding making an extended RIOT application in TP7

vishalrathod

Hello sir,

I have made an riot application that read four sensor values and I didn’t get any error. But the problem is when I have run the application I got the following output for light and gyroscope.

Light value: 0 LUX
Light value: 0 LUX
Light value: 0 LUX
Light value: 0 LUX
Light value: 0 LUX
Light value: 0 LUX
Light value: 0 LUX
Light value: 0 LUX

Gyro data [dps] - X: 1 Y: 0 Z: 0
Gyro data [dps] - X: 1 Y: 0 Z: 0
Gyro data [dps] - X: 1 Y: 0 Z: 0
Gyro data [dps] - X: 1 Y: 0 Z: 0
Gyro data [dps] - X: 1 Y: 0 Z: 0
Gyro data [dps] - X: 0 Y: 0 Z: 0

I have also changed the code but always getting these type of output.
Can you give me direction in this?

Regards,
VIshal

vandaele

If you ran your experiment on the Grenoble site, it could explain this values because nodes are deployed in raised floors and false ceilings and are fixed.
Try to run it on the Lille site for example to observe different values.

vishalrathod

Dear sir,

Thanks for the reply.

I have tried to run on lille site but still the value of light sensor is “0”. for reference I have pasted the output.

######################################
Accelerometer x: 160 y: 632 z: -248
######################################
Magnetometer x: 129 y: -371 z: -41
######################################
Gyro data [dps] - X: 6 Y: 2 Z: 0
######################################
Pressure: 1017hPa, Temperature: 48.89°C
######################################
Light value: 0 LUX
######################################
Accelerometer x: 156 y: 636 z: -252
######################################
Magnetometer x: 128 y: -367 z: -46
######################################
Gyro data [dps] - X: 6 Y: 2 Z: 0
######################################
Accelerometer x: 160 y: 636 z: -248
######################################
Magnetometer x: 129 y: -367 z: -42
######################################
Gyro data [dps] - X: 7 Y: 2 Z: 0
######################################
Accelerometer x: 164 y: 636 z: -248
######################################
Magnetometer x: 129 y: -367 z: -45
######################################
Gyro data [dps] - X: 6 Y: 2 Z: 0
######################################
Pressure: 1017hPa, Temperature: 48.90°C
######################################
Light value: 0 LUX
######################################
Accelerometer x: 156 y: 636 z: -248
######################################
Magnetometer x: 128 y: -367 z: -42
######################################
Gyro data [dps] - X: 7 Y: 2 Z: 0
######################################
Accelerometer x: 160 y: 640 z: -248
######################################
Magnetometer x: 128 y: -367 z: -43
######################################
Gyro data [dps] - X: 6 Y: 2 Z: 0
######################################
Accelerometer x: 164 y: 636 z: -244
######################################
Magnetometer x: 128 y: -367 z: -43
######################################
Gyro data [dps] - X: 7 Y: 2 Z: 0
######################################
Accelerometer x: 156 y: 640 z: -244
######################################
Magnetometer x: 127 y: -368 z: -41
######################################
Gyro data [dps] - X: 7 Y: 2 Z: 0
######################################
Pressure: 1017hPa, Temperature: 48.90°C
######################################
Light value: 0 LUX
######################################
Accelerometer x: 160 y: 636 z: -248
######################################
Magnetometer x: 129 y: -368 z: -42
######################################
Gyro data [dps] - X: 6 Y: 2 Z: 0
######################################
Accelerometer x: 160 y: 628 z: -244
######################################
Magnetometer x: 128 y: -367 z: -42
######################################
Gyro data [dps] - X: 6 Y: 2 Z: 0
######################################
Accelerometer x: 160 y: 640 z: -252
######################################
Magnetometer x: 129 y: -367 z: -43
######################################
Gyro data [dps] - X: 6 Y: 2 Z: 0
######################################
Accelerometer x: 160 y: 636 z: -248
######################################
Magnetometer x: 129 y: -366 z: -42
######################################
Gyro data [dps] - X: 6 Y: 2 Z: 0
######################################
Pressure: 1017hPa, Temperature: 48.88°C
######################################
Light value: 0 LUX
######################################
Accelerometer x: 164 y: 632 z: -244
######################################
Magnetometer x: 127 y: -368 z: -43
######################################
Gyro data [dps] - X: 6 Y: 2 Z: 0
######################################
Accelerometer x: 156 y: 636 z: -252
######################################
Magnetometer x: 129 y: -368 z: -45
######################################
Gyro data [dps] - X: 6 Y: 2 Z: 0
######################################
Accelerometer x: 164 y: 644 z: -244
######################################
Magnetometer x: 128 y: -368 z: -42
######################################
Gyro data [dps] - X: 6 Y: 2 Z: 0
######################################
Accelerometer x: 156 y: 636 z: -248
######################################
Magnetometer x: 129 y: -367 z: -46
######################################
Gyro data [dps] - X: 7 Y: 2 Z: 0
######################################
Pressure: 1018hPa, Temperature: 48.94°C
######################################
Light value: 0 LUX
######################################
Accelerometer x: 164 y: 640 z: -248
######################################
Magnetometer x: 127 y: -367 z: -45
######################################
Gyro data [dps] - X: 6 Y: 2 Z: 0
######################################
Accelerometer x: 152 y: 636 z: -244
######################################
Magnetometer x: 129 y: -367 z: -41
######################################
Gyro data [dps] - X: 6 Y: 2 Z: 0
######################################
Accelerometer x: 160 y: 636 z: -244
######################################
Magnetometer x: 129 y: -368 z: -45
######################################
Gyro data [dps] - X: 6 Y: 2 Z: 0
######################################
Accelerometer x: 160 y: 644 z: -244
######################################
Magnetometer x: 129 y: -366 z: -43
######################################
Gyro data [dps] - X: 6 Y: 2 Z: 0
######################################
Pressure: 1017hPa, Temperature: 48.88°C
######################################
Light value: 0 LUX
######################################
Accelerometer x: 160 y: 640 z: -240
######################################
Magnetometer x: 129 y: -369 z: -42
######################################
Gyro data [dps] - X: 6 Y: 2 Z: 0
######################################
Accelerometer x: 160 y: 636 z: -248
######################################
Magnetometer x: 128 y: -368 z: -45
######################################
Gyro data [dps] - X: 7 Y: 2 Z: 0
######################################
Accelerometer x: 160 y: 636 z: -248
######################################
Magnetometer x: 128 y: -368 z: -43
######################################
Gyro data [dps] - X: 6 Y: 2 Z: 0
######################################
Accelerometer x: 160 y: 636 z: -244
######################################
Magnetometer x: 129 y: -368 z: -42
######################################
Gyro data [dps] - X: 6 Y: 2 Z: 0
######################################
Pressure: 1017hPa, Temperature: 48.87°C
######################################
Light value: 0 LUX
######################################

vishalrathod

Dear sir,

I have got the valid value (instead of 0) from light sensor.

Regards,
Vishal