Skip to content
  • MySensors
  • OpenHardware.io
  • Categories
  • Recent
  • Tags
  • Popular
Skins
  • Light
  • Brite
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Brand Logo
chamroeun ouC

chamroeun ou

@chamroeun ou
About
Posts
11
Topics
2
Shares
0
Groups
0
Followers
0
Following
0

Posts

Recent Best Controversial

  • Orange Pi Stability
    chamroeun ouC chamroeun ou

    Re: 💬 Building a Orange Pi Gateway

    Hello,
    I tested my Orange Pi 2G-iOT. Based on its price(11$), it's a very interesting gateway to try, especially with the 2G support which is very important for my Farming iOT projects.
    But it's very unstable and I don't know if it's my mistake or what. Many people blaming the unstable power supply issue.

    Here're the annoying problems, I got.

    1. Sometimes, I need to reset power a few times to get to the login prompt.
    2. Get stuck after keying in the password, which I have to wait for the password timeout and I try again and it normally work.
    3. May get stuck at any moment during the usage if I install some package...
    4. Its GPRS data rate is only around 4 to 10kbps, which is much slower than Huawei 2G modem.
    Hardware

  • Battery-powered irrigation controller
    chamroeun ouC chamroeun ou

    @user2684 I am also planning to build latching valve controller. But my valve is 2" to 4" and Its coil specifications are as follow:
    V: 6-20Volt DC (optimal is above 9volt)
    Capacitance Required: 4700uF
    Coil inductance: 90mH
    Pulse duration: 20 to 200mili seconds.

    Do you think h-bridge will work or do you have a better suggestion for this? My goal is also to run the controller on battery and place in farm so it must be waterproof.

    My Project

  • A tiny BME node - BME280 on ATtiny85
    chamroeun ouC chamroeun ou

    @BearWithBeard said in A tiny BME node - BME280 on ATtiny85:

    Overview page

    @BearWithBeard thanks, now i got my Attiny167+Sht30 working with Mysensors and Mysensor gateway. Next step will be formatting the data for Thingsboard cloud.

    My Project

  • Integrate with ThingsBoard
    chamroeun ouC chamroeun ou

    My idea is to customize the MySensor gateway and push data directly to Thingsboard cloud server.
    If I use Thingsboard gateway, I will have to deploy Mysensors gateway anyway in order to intercept the incoming RF24 data, right?

    What i have done so far is using my ESP32 to send sensors data(Not using Mysensors) to my cloud THingsboard using MQTT

    Development gateway

  • A tiny BME node - BME280 on ATtiny85
    chamroeun ouC chamroeun ou

    @BearWithBeard How do you get it compiled using Mysensors? which code you based on? I got many compiled errors:

    In function 'void hwPowerDown(uint8_t)':
    ../MySensors/hal/architecture/AVR/MyHwAVR.cpp:93:26: error: 'WDTCSR' was not declared in this scope
    const uint8_t WDTsave = WDTCSR;
    ^~~~~~
    
    /../MySensors/hal/architecture/AVR/MyHwAVR.cpp: In function 'uint16_t hwCPUFrequency()':
    /../MySensors/hal/architecture/AVR/MyHwAVR.cpp:305:26: error: 'WDTCSR' was not declared in this scope
    const uint8_t WDTsave = WDTCSR;
    ^~~~~~
    ..MySensors/hal/architecture/AVR/MyMainAVR.cpp: In function 'int main()':
    Arduino/libraries/MySensors/hal/architecture/AVR/MyMainAVR.cpp:34:7: error: 'serialEventRun' was not declared in this scope
    if (serialEventRun) {`
    

    For your question on SPI+IIC on Attiny85, someone has done it successfully by using NRF24 3 PIN so it's left with 2 PIN and use SoftWire library to force BME t use those two PINs.

    Another sketch that I come across is like this: https://github.com/chaeplin/esp8266_and_arduino/tree/master/_51-attiny85-nrf24-lcd-getntp
    But I can't get it to work maybe due to some pullup resistor or something.

    My Project

  • Integrate with ThingsBoard
    chamroeun ouC chamroeun ou

    @mfalkvidd , What is your suggestion for mapping Mysensors gateway to Thingsboard mqtt format? I have to update the Mysensors gateway code or override it or other smarter solution?

    Development gateway

  • Integrate with ThingsBoard
    chamroeun ouC chamroeun ou

    I have deployed Thingsboard(Communitiy edition) and use it with a few sensors, I find it's very feature-rich and mature. But hard to customize the code, lack of scheduling and reporting(only Professional edition have them). My problem with it now is it seems to lack the sensor level code or maybe due to my limited knowledge of it.

    So I want to use Mysensors with it by passing the data to thingsboard via Mysensors MQTT gateway. The question here is either to customize the Mysensors MQTT Payload format or use another tools in between.

    Thanks for your suggestion or anyone have tried this before?

    Development gateway

  • A tiny BME node - BME280 on ATtiny85
    chamroeun ouC chamroeun ou

    @BearWithBeard , it's not my code. it is based on @fabyte 's code. Actually, I want to use SHT30 I2C but space is the biggest challenge.

    There's a NRFLite(https://github.com/dparson55/NRFLite) which I think it may save space and can also work with 2 PIN for NRF24 as its created for Attiny but it may not work MySensors without code change.

    My decision now is to use Attiny167 instead but the problem now is it's not working on Mysensors. I try this approach but not work https://github.com/mysensors/MySensors/pull/1485.

    My Project

  • A tiny BME node - BME280 on ATtiny85
    chamroeun ouC chamroeun ou

    To use Attiny, i think there's a need to optimize Mysensor for it as Mysensor consumes the most space of the 8K.

    My Project

  • A tiny BME node - BME280 on ATtiny85
    chamroeun ouC chamroeun ou

    Ok, now it works with your BME-i2c code. not enough memory maybe due to update in AttinyCore which is bigger than your version. I think memory limit is the challenge.

    My Project

  • A tiny BME node - BME280 on ATtiny85
    chamroeun ouC chamroeun ou

    Hi, I try to compile your code change for Mysensors against my Attiny85 but it failed with many errors like

    yHwAVR.cpp:74:2: error: 'EIFR' was not declared in this scope
      EIFR = _BV(interrupt);
    MyHwAVR.cpp:93:26: error: 'WDTCSR' was not declared in this scope
      const uint8_t WDTsave = WDTCSR;
    ...
    

    Please note that my environment is AttinyCore.

    How is your sensors after 1 year? What is your recommendation?

    My Project
  • Login

  • Don't have an account? Register

  • Login or register to search.
  • First post
    Last post
0
  • MySensors
  • OpenHardware.io
  • Categories
  • Recent
  • Tags
  • Popular