TinyBME - ATTiny85 + NRF24l01 + BME280/I2C



  • Hi.

    Just published current status of my work on ATTiny85 node with NRF24L01 and BME280 (4 pin I2C version) and want to share it here.

    https://github.com/rmrfus/tinybme

    TLDR - It works! πŸ™‚

    It is based on fabyte's work and couple of other resources.

    • NRF24L01 works from 3 pins - MOSI/MISO/SCK, keeping CE constantly high and multiplexing CE over SCK.
    • BME280 is connected via pins 3 and 4 on ATTiny85 and communicates over SoftWire
    • It works just fine from 18650 battery. Prolly should work from CR2032 too. Didn't test current consumption (yet).
    • Right now code is just 92 bytes under 8K limit - no space for conversions of units - I'm doing it at HASS.
    • There is neither free pins nor flash to report the battery status. Prolly some kind alarm on lost heartbeats is much as could be done in this situation.

    In general I'm open for suggestions and improvement ideas.

    Breadboard



  • Great achievement, congratulations πŸ‘ πŸ™‚

    I like that you also tried Nerd Ralph's 3-Pin configuration and got it to work. I tried it once but somehow it didn't connect to the radio, so discarded this idea. Also I thought it might be cheaper (from a memory point of view), just to use one bus. Nice work on stuffing all this in 8K πŸ™‚

    It would be great if you reported in a couple of weeks how stable it's running. Did you have a chance to measure the power consumption of the hole system?


Log in to reply
 

Suggested Topics

  • 1
  • 1
  • 1837
  • 17
  • 51
  • 2
  • 1
  • 496

4
Online

9.5k
Users

10.2k
Topics

105.5k
Posts