Chat freely about anything...

User avatar
By asz
#92647 My hardware setup contains a drone "GPS & Compass" (https://www.aliexpress.com/item/3296379 ... 4c4dALA68I) and an GY-BME280-3.3 module.

The "GPS" part is a Ublox NEO M8N and that already transmits NMEA 0183 sentences over serial... so that part is kind of ready out of the box.

The BME280 is already implemented in you code...so fetching the values from that part is also kind of ready.

The "GPS & Compass" also have a compass chip labeled HA5883 0008 witch I think is the same as a QMC5883 that you can get very cheaply on a GY-271 module (https://www.aliexpress.com/wholesale?ca ... ext=GY-271)

I don't know the difference of QMC5883 and HMC5883, probably a clone of a clone of a clone with lower chip quality and not as good resolution. But I would guess that there is no difference in the I2C communication.

If you like I can buy the GY-271 module and send it to you (with the extra delay that gives). Just tell me on a PM.

I will start with putting all my stuff on a bread board and verify that I can power it up and communicate over all the buses.
Then, I think my next step will be to try to make a "wrapper" for your BME280 "driver" to format the values from BME280 in the XDR NMEA0183 sentence (https://gpsd.gitlab.io/gpsd/NMEA.html#_ ... easurement).

This will take me some time so don't hold your breath! :mrgreen:

Regards
/Andreas Schütz
User avatar
By asz
#92663 Hi again Erik
Maybe I have found you a bug ;-)

When I activate uart without connecting to a wlan first, the bridge will pipe the received data into the cli... no matter what I set the bp to, the received characters end up in "bp 0 24".

I agree, this is a special case...but it is actually not necessary to associate to a wifi it you want to have an "AP bridge" which I think is a cool feature .

Kind regards.
/Andreas Schütz
User avatar
By asz
#92664 I think that I have found another bug...

1) I set the wifi parameters and connect to wifi... No Problem.
2) I set the uart parameters and start fetching characters from uart on port 23.... No problem.
3) I set the i2c pins (im 0 5 i2c scl 5) and when pressing enter, my wemos d1 forget all config and restarts without config.
User avatar
By asz
#92671 Hi again.
So I have connected all my modules together and tested the various buses and it works just fine (with some quirks to avoid the "reset and forget everything bug").
I can see three sensors (51, 52 & 53) and the values they measure when i surf to the webpage or do a isd on the cli. Great!
On port 23 I can see everything received on the RX pin but no values from BME280 sensors.... how do they get visible in the port 23 stream?

Regards
/Andreas Schütz