The BME280 data sending problem via TYWE3S

muammer
Posts: 7

yangjie 2024年 Aug 6日 18:14
muammer 2024年 Aug 6日 17:45

Yes, I see bme280 data without sketch parts of Tuya on Arduino IDE. When I add the coding related Tuya to the sketch, the codes I see on the Serial Monitor turn into meaningless shapes. When I convert the codes consisting of these meaningless shapes via converter programs they are hexadecimal. I think that BME280 data has Bytes incompatibility with Tuya and that it will be fixed by editing the CRC validation on sketch, but I don't know how to do it.

meaningless shapes: Probably because the arduino and tuya modules communicate using the same Serial port that your serial output uses.

The MCU and tuya modules communicate using hex.

I mean that hex is okay but it's incompatible.

yangjie
Posts: 209

Re: The BME280 data sending problem via TYWE3S

muammer 2024年 Aug 6日 18:07
yangjie 2024年 Aug 6日 17:56
muammer 2024年 Aug 6日 17:50

Or I don't know which is the correct '.h' bme280 library for Tuya.

What does startMeasurement do?

It's a start measurement cycle part of pocketBME280.h

I took a look at the pocketBME280, and his code is basically irrelevant to this program. But I don't know why he can't function properly. I don't have BME280 here either, but I suggest you use the logic analyzer to grab the waveform of BME280 to see if the mcu and BME280 waveforms are correct in the case of error.

Post Reply