BME280 sensor.


Closed Thread
Results 1 to 20 of 20

Thread: BME280 sensor.

Hybrid View

  1. #1
    Join Date
    May 2013
    Location
    australia
    Posts
    2,705


    Did you find this post helpful? Yes | No

    Default Re: BME280 sensor.

    henrik
    i made a little change

    used this style
    IF P2.15 = 1 THEN
    p2.highWORD = 65535
    ENDIF

    for all the casts to long , it saves a worthwhile bit of code space

    can't test humidity on pic yet , just discovered the dishonest ebayer has sold me 4 out of 5 bmp280's in lieu of bme280 boards.
    i can't tell them apart with naked eye, must admit the temp seems more accurate in absolute terms for the bmp boards there is nearly a 3 deg difference between bme and bmp readings in the same aircon'ed room and thats closer to the mercury bulb . are cheap ebay things always a bit dodgy?
    Warning I'm not a teacher

  2. #2


    Did you find this post helpful? Yes | No

    Default Re: BME280 sensor.

    "are cheap ebay things always a bit dodgy?" not in my experience, most seem surprisingly interested in protecting their feedback score. Try email seller thro ebay and explain the mistake.
    George

  3. #3
    Join Date
    May 2013
    Location
    australia
    Posts
    2,705


    Did you find this post helpful? Yes | No

    Default Re: BME280 sensor.

    Try email seller thro ebay and explain the mistake.
    did that , even though i have had the boards for 2 months or more , got a full refund within a couple of hours.
    quite surprised in a good way
    Warning I'm not a teacher

  4. #4
    Join Date
    Oct 2005
    Location
    Sweden
    Posts
    3,624


    Did you find this post helpful? Yes | No

    Default Re: BME280 sensor.

    Richard,
    Your change to the "cast routine" saved some 400bytes worth of code space and probably also executes faster. Thanks!

    Yeah, both of my sensors reports temperature which I believe to be 2-3°C above actual. I don't know if it's due to self heating of the sensor itself, the PCB assembly or something else but the fact that they run different code but both reports values very close to each other makes me fairly confident in the code.

    Just now when I started it up again, the humidity reading was way high, around 70%.
    A restart fixed it and it's now around 42% which is more inline with the other sensor. This seems to happen now and then and I'm not sure what's going on.

    /Henrik.

  5. #5
    Join Date
    Nov 2003
    Location
    Greece
    Posts
    4,172


    Did you find this post helpful? Yes | No

    Default Re: BME280 sensor.

    Amazing piece of work by both of you! Thanks a lot for sharing!

    Ioannis

  6. #6
    Join Date
    May 2013
    Location
    australia
    Posts
    2,705


    Did you find this post helpful? Yes | No

    Default Re: BME280 sensor.

    due to self heating of the sensor
    seems possible , the fact that the bmp ver is less "hot" tallies with its lower power use [hum sensor nearly doubles the consumption]

    my esp code uses forced mode letting it sleep between readings and fares no better anyway, so maybe it is what it is

    Just now when I started it up again, the humidity reading was way high, around 70%.
    data sheet says writes to config reg 0xf5 may be ignored if device not in sleep mode, maybe por does not always achieve that.
    cannot say i have seen any issues with humidity readings from esp code.
    the pressure readings are consistent within 2hpa spread across the chips i have


    i find just reading the config reg 0xf5 can cause the device to stop responding completely some times
    Warning I'm not a teacher

Similar Threads

  1. MQ-7 Sensor
    By chipmaker in forum General
    Replies: 3
    Last Post: - 9th June 2017, 01:05
  2. Speed Sensor Anyone???
    By Ramius in forum General
    Replies: 19
    Last Post: - 18th May 2012, 05:37
  3. Pir Sensor
    By azmax100 in forum mel PIC BASIC Pro
    Replies: 4
    Last Post: - 20th May 2009, 17:34
  4. Accelerometer Sensor
    By Pesticida in forum mel PIC BASIC Pro
    Replies: 18
    Last Post: - 27th August 2008, 14:26
  5. Replies: 6
    Last Post: - 18th January 2008, 09:17

Members who have read this thread : 0

You do not have permission to view the list of names.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts