Closed ahfynjj closed 2 years ago
Which board are you using?
Have you added pull up resistors to SDA and SCL?
Have you tested the ms5611 with a separate library to test if it works?
I use ATMEGA 328P and 10k pull up resistors, the 5611 is brand new, here is my schematic Both GPS and barometer are soldered on the PCB, and it won't work as long as the 5611 is turned on when flashing the firmware.
This is issue is due to no memory available. The maximum number of sensors for Jeti with ATmega328 (2k ram) is 11 sensors
I've added a parameter in jetiex.h, JETIEX_LOW_MEMORY. It is disabled by default. You need to enable it (uncomment it). If this parameter is enabled, some sensors with less important telemetry values are not created.
It disables the following sensors:
With your config, GPS+vario, and JETIEX_LOW_MEMORY enabled, there are 10 sensors. Still you can add one more sensor.
I also tested the MS5611 separately and it doesn't work either
Did you change the Jeti connections?
If you disable the GPS, you need to connect Jeti to Rx & Tx pins instead
Following your instructions, I disabled some sensors in the code and it worked successfully. thank you very much.
But I observed that the reading of MS5611 was abnormal, and the same thing happened with another brand new one
.
Please enable DEBUG_MS5611 in config.h, connect arduino Tx to programmer Rx and arduino GND to programmer GND. With a serial monitor at 9600, post the output
After many attempts I got correct data output at 250000 baud, not gibberish at 9600 baud. As shown below
At the same time, I conducted the serial port test of arduino Libraries, the data is as follows
Sorry, my bad. There was an error reading the PROM parameters from MS5611. Fixed with 57b3a8dcdd4de028674db9bdd88a07f961aa2330
The problem is stil
l
I enabled GPS at 115200 bit rate, and it seems normal to see the serial monitor, then I turned off the DEBUG MS5611, connected Jeti to pins 7&12, the problem persists
Abnormal data was observed, as shown in the figure:
Also, when I tried to blow a 100°C temperature to the 5611 with a heat gun, I didn't see the temperature reading of the sensor in the serial monitor rise, but there was a -2° drop, which is strange
.
To debug MS5611, keep GPS enabled (with baud rate as configured in the GPS module) in config.h. With a serial monitor at GPS baud rate (9600, 115200...) you'll see the debug output for MS5611. If you disable GPS, serial monitor will be switching between 125000 and 250000 due to Jeti. Also you will see some garbage characters when in 125000
Regarding the wrong sensor values, please download and flash the updated code as there was some issues when converting the raw sensor values. Fixed with dd36569482d0aeb8c4213f8d05a1ab26f7d53022
Thanks, I downloaded it and saw that the temperature is normal, the Altitude and Vario are still having issues. At the same time, I also have a FRSKY X20S. I tried to use RX_SMARTPORT, flashed the sensor and connected the GR6 receiver. The data of 5611 displayed on the X20S is normal. This seems to be a problem with JETI's data processing.
Altitude and Vario are still having issues
Which issues? There is no additional processing for Jeti
https://youtu.be/EgHonEp0JSk I recorded a video so it will be clearer
In order to rule out the problem of 328p, I used teensylc, and connected the iic interface through two wires, and connected GND, the result is the same. https://youtube.com/shorts/w3mQs1a8D0U?feature=share
Please post the debug for DEBUG_MS5611
It seems an issue of negative numbers with Jeti. I've changed handling of negative numbers for Jeti. Please try the updated code
Video of debug for DEBUG_MS5611 https://youtube.com/shorts/aJxN-QgIywY?feature=share
I downloaded the latest one and the problem persists
It seems that Jeti uses two complement for negative numbers.
Please try updated code. Should work now.
After 10 minutes of testing, 5611 works fine, thank you very much.
Still it was needed to fix the number of decimals for negative values. Please download updated code.
I am planning to make a 2 in 1 sensor, GPS and MS5611 altimeter, and tried to use the new GPS module, and the test was successful, but after compiling the code with MS5611, it does not work. I also tested the MS5611 separately and it doesn't work either. Here is my config.h file