主循环内测试各个模块的耗时(485/json-parse/ads1115/sht30-dis/)
before sht30 : 9584
after sht30 : 9625
Temperature: 28.52 /C
Humidity: 62.59 %
before adc : 9626
after adc : 9662
hall_sensor_ampere :0.170
NTC_R value :10.960
loop time is:9662
before 485 parse9662
after 485 parse9662
before sht30 : 9673
after sht30 : 9714
Temperature: 28.54 /C
Humidity: 62.58 %
before adc : 9715
after adc : 9751
hall_sensor_ampere :0.158
NTC_R value :10.965
loop time is:9751
before 485 parse9751
after 485 parse9751
before sht30 : 9762
after sht30 : 9803
Temperature: 28.52 /C
Humidity: 62.55 %
before adc : 9804
after adc : 9840
hall_sensor_ampere :0.162
NTC_R value :10.965
loop time is:9840
before 485 parse9840
after 485 parse9840
before sht30 : 9851
after sht30 : 9892
Temperature: 28.49 /C
Humidity: 62.55 %
before adc : 9893
after adc : 9929
hall_sensor_ampere :0.149
NTC_R value :10.971
loop time is:9929
before 485 parse9929
after 485 parse9929
看得出:
sht30:41ms
ads1115(4-channel):36ms
before sht30 : 62235
after sht30 : 62276
Temperature: 28.54 /C
Humidity: 62.36 %
before adc : 62277
after adc : 62313
hall_sensor_ampere :0.153
NTC_R value :10.976
loop time is:62313
before 485 parse62313
PWM set DUTY is : 915
Parsed power values:
laser0_power: 915
laser1_power: 900
laser2_power: 950
laser3_power: 1022
laser4_power: 0
laser5_power: 0
after 485 parse62326
before sht30 : 62337
after sht30 : 62378
Temperature: 28.54 /C
Humidity: 62.39 %
before adc : 62379
after adc : 62415
hall_sensor_ampere :0.158
NTC_R value :10.965
loop time is:62415
before 485 parse62415
after 485 parse62415
before sht30 : 62426
after sht30 : 62467
Temperature: 28.52 /C
Humidity: 62.43 %
before adc : 62468
after adc : 62504
hall_sensor_ampere :0.153
NTC_R value :10.992
loop time is:62504
before 485 parse62504
PWM set DUTY is : 915
Parsed power values:
laser0_power: 915
laser1_power: 900
laser2_power: 950
laser3_power: 1022
laser4_power: 0
laser5_power: 0
after 485 parse62517
before sht30 : 62528
after sht30 : 62569
Temperature: 28.57 /C
Humidity: 62.41 %
before adc : 62570
after adc : 62606
hall_sensor_ampere :0.153
NTC_R value :10.998
loop time is:62606
before 485 parse62606
PWM set DUTY is : 915
Parsed power values:
laser0_power: 915
laser1_power: 900
laser2_power: 950
laser3_power: 1022
laser4_power: 0
laser5_power: 0
after 485 parse62619
485:13ms
单个通道的ads1115读取数据:
before sht30 : 8737
after sht30 : 8778
Temperature: 28.09 /C
Humidity: 63.53 %
before adc : 8779
after adc : 8788
hall_sensor_ampere :-0.170
NTC_R value :0.000
loop time is:8788
before 485 parse8788
after 485 parse8788
before sht30 : 8799
after sht30 : 8840
Temperature: 28.11 /C
Humidity: 63.53 %
before adc : 8841
after adc : 8850
hall_sensor_ampere :-0.170
NTC_R value :0.000
loop time is:8850
before 485 parse8850
after 485 parse8850
before sht30 : 8861
after sht30 : 8902
Temperature: 28.11 /C
Humidity: 63.54 %
before adc : 8903
after adc : 8912
hall_sensor_ampere :-0.175
NTC_R value :0.000
loop time is:8912
before 485 parse8912
after 485 parse8912
标签:power,sht30,esp32,after,adc,485,before From: https://www.cnblogs.com/aker-whale/p/17679703.html