-
Notifications
You must be signed in to change notification settings - Fork 23
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
BMP280 I2C address and values #4
Comments
About #1, the value in BMP280.h is not used currently.cpp About #2, I have no BMP280 to test but I will try to compare oXs code on AVR and on RP2040. I have no experience with platformio CLI. I can check this. |
About #2, I saw a bug in one line 103 of code in BMP280.cpp It should be Can you try it? |
About platformio CLI. I am here with Debian and I like it simple. Don't have to install Visual Studio. I make my modifications in the project, get the RP2040 in loader mode and then 2 commands Looks like this For your changes in BMP280.cpp I'll try tomorrow. I'll put the sensor in my 'pressure camber' ;-) (Just a glass with lid and a syrinx for simulation of pressure changes) and report back. I think oXs on RP2040 could be a small solution for ELRS in a plane with telemetry. ~5 PWMs, a vario, Lipo voltage and current (ACS712 mod. with 713, to measure unidirectional!) with the sensor for both values in between Lipo and ESC and maybe a GPS. No fancy PCB needed. But this project needs people, who do some testing and report back to you. The thread on RCN seems to be dead. br KH |
Could not resist. Made a short test, modified the line in BMP280.cpp as proposed and made a short video. https://www.youtube.com/watch?v=rU570tZ50OQ My test installation on a breadboard. RP2040, BMP280, ELRS RX and my PWM display instead of servos. The white cable is for a GPS Beitian BN 180 to be placed on the window sill. Not attached at the moment. Demo of corrected PWM values and then the BMP280 values on the radio. Then I changed to a SPL06 for comparison. Please have a look .... br KH PS. At this stage, no sense putting the BMP280 in my 'baro chamber' ..... |
I think I found a second bug for BMP280. I expect it should be (removing the "*10000") Thanks for testing this change too. |
OK. You have seen the YT video, so I can delete it now. I'll do the modifications in BMP280.cpp and report back. At the moment, I am struggling a bit with GPS. Beitian BN 180. I had it working, but at the moment it refuses to show up. ;-( I have a 120R in between RP2040 TX <> GPS RX, that should be ok That is the 'old' screenshot. The SAT number is a bit strange '105'! br KH |
The number of sat is OK. The resistance between RP2040 TX and GPS RX should not be an issue. |
I just merged the branch "test for 16 PWM" into the Main branch. |
Next YT video. Sorry for the bad quality ... https://www.youtube.com/watch?v=Wq1DZv8qevI First part with the SPL06, trying to fly a bit and then the BMP280. If I do the same soft slow movements with the syringe, NO reaction, I have to make heavy strong movement to see a then heavy reaction on the telemetry screen. I checked the BMP280 in the camber connected to an arduino uno with a standard BMP280 sketch. The sensor is ok! Your modifications in BMP280.cpp I have applied, but still no good. I'll postpone my GPS test for the moment (some problems also) and concentrate on BMP280. One remark: Paket rate on ELRS is 100Hz Full and Telem ratio was 1:32, but that seems to slow for the vario values, I'll change that for further test to 1:8. br KH |
thank for testing.
If you have time and if your arduino sketch for testing allows it, you could also provide a screen shot of the BMP280 calibration paramaters as they are read by this sketch (to check if the calibration values are the same or not) |
No problem!
I am missing those lines. I use the terminal in Arduino IDE for visualization and when opened, those lines rush .... If I blow lightly at the sensor, pressure and temp change a little, alt is stuck!
I'll have a look into some ino sketches, how to get the calib. values. I have 2 BMP280 sensors here on the table. PS. I'll remove the YT video, but I think, a short video tells (sometimes) more then 1000 words. br KH |
OK. Could you change it to (so just adding a ".0" |
You can delete the videos. The problem with the video is that the contrast was quite low and so it was difficult to read the lowest lines on the display. |
Had the output of the 2 BMP280 sensors in a Terminal and pushing 'reset' several times, if lucky SENSOR 1
SENSOR 2
In 'oXs_on_RP2040-Test-for-16-PWM' I guess? No problem ;-) br KH |
Always in Main branch ( I do no update to the other branch for now). |
About the GPS. The problem was, I have to say, me! But could you please give me an answer on some questions, I have concerning the data shown I think, this is BEFORE FIX It shows the coordinates, so the are saved somewhere I guess. What is the meaning of SAT 3, a sign for 'no fix'? And here a fix, I think. How many SATs are that now? 10 SAT and 7 is a status number? PS. Just see your reply, I'll change over to MAIN and report .... br KH |
Sorry perhaps a misunderstanding; About the number of sat the meaning is the following:
|
Note : your display shows a "" before each telemetry value when it get an update. |
Thanks for having tested. Perhaps we can close this issue (and open a new one if you find something else). Note: about "voltages": please note that ELRS is not as flexible as SPORT FRSKY. There is one type of ELRS packet sent by the Rx to the TX about "battery". It has 4 fields named Voltage, Current, Capacity and Remain (only one byte max value is 128 I think). |
I tested GPS, servo output and baro sensors here on my test board.
The servo values have been explained, but about the baro sensors, I have two questions.
I tested with MS5611, SPL06 and BMP280.
#1. The BMP280, you can get on shield normally has 0x76. The I2C address of BMP280 can be found in BMP280.h and in main.cpp. So on both files the I2C address has to be modified!? Please confirm.
#2. Values with MS5611 and SPL06 made sense here on the bench, but the BMP280 values looked a bit strange. High alt and vario values. Cross checked with different BMP280s, but still 'bad' values.
How can I help?
Besides, the new 'configuration' for basics in terminal is certainly helpful. but it should be pointed out, that platformio is necessary for modifications. Platformio IDE can be a bit daunting for 'normal' users like me, so maybe it should be said, that platformio CLI is sufficient to do the job.
br KH
The text was updated successfully, but these errors were encountered: