gravitymon icon indicating copy to clipboard operation
gravitymon copied to clipboard

No temperature sensor detected

Open GabrielPeral opened this issue 2 months ago • 7 comments

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 Image

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

GabrielPeral avatar Nov 03 '25 18:11 GabrielPeral

How did you hook up the temp sensor?

mp-se avatar Nov 03 '25 21:11 mp-se

the temperature sensor is built in the GY-521 MPU-6050 gyro board, that's why I am not using a ds18b20 sensor

GabrielPeral avatar Nov 04 '25 08:11 GabrielPeral

Do you get the temperature when sending data to remote service? Could be an ui rendering issue

mp-se avatar Nov 04 '25 12:11 mp-se

I dont have a working esp32 lite board anymore so i can test that target.

mp-se avatar Nov 04 '25 12:11 mp-se

nope when I test the mqtt push I don't receive anything:

Image weird thing is that in console it doesn't say anything about temp

GabrielPeral avatar Nov 04 '25 12:11 GabrielPeral

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

mp-se avatar Nov 04 '25 12:11 mp-se

There was a bug in that version, if you dont have a valid gyro reading it will show temp sensor as missing

mp-se avatar Nov 04 '25 13:11 mp-se

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

mp-se avatar Nov 08 '25 12:11 mp-se