No temperature sensor detected
Hello!
I'm trying to build a floatty pill with your firmware, using a LOLIN32 CH340 board with GY-521 MPU-6050 gyro.
I've made three different devices and on all three seems like I have the same error, and it's saying that there is no temperature reading.
I pretend to use the temp of the gyro, so I am not using the ds18b20 ones.
I'm using the version 2.2.1 of gravitymon, and currently I only have the gyro board weld to the LOLIN one with two 220K to measure the battery level, however I've not just attached to the battery as I would like to have everything configure and working before installing it on the pill.
I will attach the image of the main menu
and the console output when starts in case it helps.
Serial console activated.
4 I: SDBG: Serial logging started at 115200.
E (698) esp_core_dump_flash: ~��ɕ�dump partition found!
E (699) esp_core_dump_flash: No core dump partition found!
39 I: Main: Started setup for 0f4e24.
40 I: Build options: 2.2.1 (..19953f) LOGLEVEL 5 GRAVITYMON ESP32 FLOATY
42 I: UTIL: Chip=ESP32, Rev=1, Feat=0x0032
74 I: WIFI: Current reset counter 0.
95 I: UTIL: Last reset cause 'vbat power on reset' (1)
[ 99][E][vfs_api.cpp:105] open(): /littlefs/gravitymon.json does not exist, no permits for creation
[ 113][E][vfs_api.cpp:105] open(): /littlefs/hardware.json does not exist, no permits for creation
207 I: CFG : Configuration file loaded.
211 I: CFG : Using wifi settings from EEPROM.
[ 226][E][vfs_api.cpp:105] open(): /littlefs/drd.dat does not exist, no permits for creation
247 I: GYRO: Detected MPU6050/MPU6000.
1135 I: GYRO: Movement detected (500) 1428 281 324.
1136 I: Main: Battery 4.11 V, Gyro=0.00, Run-mode=1.
1239 I: WIFI: Connecting to wifi using stored settings vodafoneEBC8.
...........................
4254 I: WIFI: Connected to wifi vodafoneEBC8 ip=xxx.xxx.xxx.xxx.
4254 I: WIFI: Using mDNS name ibrewpill.
4447 W: TSEN: No temp sensors found
4448 I: Main: Switching gyro to continous.
4454 I: OTA : OTA, SSL enabled without validation.
5855 I: OTA : Found version.json, response=200
5861 I: Main: Activating web server.
5862 I: WEB : Configuring web server.
5863 I: WEB : Configuring web server.
5894 I: WEB : File=gravitymon2.json, 2076 bytes
5914 I: WEB : File=mqtt.tpl, 164 bytes
5924 I: WEB : File=reset.dat, 1 bytes
5925 I: WEB : Setting up async web handlers.
5929 I: WEB : Web server started.
5940 I: WEB : Setting up handlers for web server.
5943 I: WEB : Web server started.
5943 I: WS : Starting serial websocket
5944 I: SDBG: Serial logging started at 115200.
5955 I: Main: Setup completed.
6850 I: GYRO: Movement detected (500) 1472 433 505.
7752 I: GYRO: Movement detected (500) 1484 383 550.
8653 I: GYRO: Movement detected (500) 1507 418 543.
9555 I: GYRO: Movement detected (500) 1474 399 535.
10456 I: GYRO: Movement detected (500) 1478 456 510
How did you hook up the temp sensor?
the temperature sensor is built in the GY-521 MPU-6050 gyro board, that's why I am not using a ds18b20 sensor
Do you get the temperature when sending data to remote service? Could be an ui rendering issue
I dont have a working esp32 lite board anymore so i can test that target.
nope when I test the mqtt push I don't receive anything:
You dont have a gravity reading either and movement warnings in the log, have you calibrated the gyro and seen that that works, if you dont get angles/gravity the temp will probably not work either
There was a bug in that version, if you dont have a valid gyro reading it will show temp sensor as missing
This is a known issue in the 2.2.x version where the temperature sensor is not shown as detected if the gyro is not providing valid readings.
Solution / Workaround: Calibrate and verify that the gyro is returning valid values and the temperature should be shown correctly as well. Not an issue when fermenting since without valid gyro readings no data will be transmitted.
This is fixed in 2.3 for the supported boards