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
Christoph BlankC

Christoph Blank

@Christoph Blank
About
Posts
12
Topics
6
Shares
0
Groups
0
Followers
0
Following
0

Posts

Recent Best Controversial

  • Humidity doesn't receive ACK, everything else works?
    Christoph BlankC Christoph Blank

    sorry it took a bit - this is my current test: https://gist.github.com/solars/688a635f791c2e558a1ec57b67c9beb4
    it's stitched together from sources I have found, so I might not be doing it right.

    Troubleshooting

  • Humidity doesn't receive ACK, everything else works?
    Christoph BlankC Christoph Blank

    From my point of view this is the only relevant code, but I can post it later when I'm on the other machine again.
    The humidity changes, I get the same result if I leave out the condition.

    Also, from my understanding, as I'm using ACK, it already waits 70ms before continuing, so there should be enough time with the additional delay?
    (When using only one send())
    I'm surprised that it only happens for humidity.. never had this problem on the other readings.

    Is there any way I can wrap this in a while loop? I think that ACK timeouts after 70ms or so IIRC, so I'm not sure how I would actually wait until I
    receive the ACK, and e.g. try 3 times.

    Troubleshooting

  • Humidity doesn't receive ACK, everything else works?
    Christoph BlankC Christoph Blank

    Hi there,

    I've got a weird behaviour, I'm using a BME280 and send humidity, temp, pressure via mysensors.
    The problem is that humidity never gets sent, so I tried to debug it and saw that it works if I send it twice,
    but one of the requests never receives an ACK.

    This only happens for humidity, the other measurements work fine.
    I tried adding a delay (100) but same result.

    Can anyone tell me how to fix this? Here is the relevant code:
    https://gist.github.com/solars/8339a486d21545a1efdce44f6b363023

    Troubleshooting

  • 💬 Button size radionode with sensors swarm extension
    Christoph BlankC Christoph Blank

    @koresh said in 💬 Button size radionode with sensors swarm extension:

    @christoph-blank Hi, thanks for using this board. In the first version of this board the divider is conected after LDO, so you can't measure voltage above 3.3V. In the second version the divider is connected to the battery directly. You use 3.2v battery so it is not problem for you. But LiFePo4 battery has very flat discharge curve so it can be hard to read this level with reasonable accuracy.
    alt text
    I will try to find LiFePo4 battery and add some piece of code soon. Yet you can play with followed code

      // Get the battery Voltage
      int sensorValue = analogRead(BATTERY_SENSE_PIN);
      // 1M, 470K divider across battery and using internal ADC ref of 1.1V1
      // ((1e6+470e3)/470e3)*1.1 = Vmax = 3.44 Volts
      /* The MySensors Lib uses internal ADC ref of 1.1V which means analogRead of the pin connected to 470kOhms Battery Devider reaches  
       * 1023 when voltage on the divider is around 3.44 Volts. 2.5 volts is equal to 750. 2 volts is equal to 600. 
       * RFM 69 CW works stable up to 2 volts. Assume 2.5 V is 0% and 1023 is 100% battery charge    
       * RFM 69 HCW works stable up to 2.5 volts (sometimes it can work up to 2.0V). Assume 2.5 V is 0% and 1023 is 100% battery charge  
       * 3.3V ~ 1023
       * 3.0V ~ 900
       * 2.5V ~ 750 
       * 2.0V ~ 600
       */
    
    #ifdef  MY_IS_RFM69HW
      int batteryPcnt = (sensorValue - 750)  / 1.5;
    #else
      int batteryPcnt = (sensorValue - 600)  / 3;
    #endif
    

    Thank you very much, what are the other differences between V1 and V2? I believe I have V1 but I'm not sure.
    The above code is what I currently use, and I removed the sensor part of the module. However, it shows 100% until the end (until it's not sending anymore).

    Looking forward to your tests!
    Christoph

    OpenHardware.io atsha204a flash humidity rf69 light uv light battery mysensor temperature ota

  • 💬 Button size radionode with sensors swarm extension
    Christoph BlankC Christoph Blank

    Hi guys, quick question: I'm using a LiFePo4 3.2V battery directly on the board (sensors part removed).
    Somehow the battery percentage always shows 100 - how should I change the default code to make this work?

    Right now I'm using the code like here: https://github.com/EasySensors/ButtonSizeNode/blob/master/ButtonSizeNode.ino

    OpenHardware.io atsha204a flash humidity rf69 light uv light battery mysensor temperature ota

  • Low power soil moisture sensor (battery)?
    Christoph BlankC Christoph Blank

    Hi there,

    I'd like to create a low-power, battery driven soil moisture sensor (I'm already using many battery powered mysensor nodes)
    and wonder what would be better:

    1. I2C - not sure about the deep sleep consumption here
      https://www.tindie.com/products/miceuz/i2c-soil-moisture-sensor/

    2. Analog (Standard Aliexpress Sensor, found a power consumption spec on this page)
      https://www.dfrobot.com/wiki/index.php/Capacitive_Soil_Moisture_Sensor_SKU:SEN0193

    Does anyone have experience with these? I'm not sure if they can be easily turned off when sleeping e.g. if I connect them to
    a digital out and switch it?
    What would you use?

    Thanks a lot!
    Christoph

    General Discussion

  • ESP8266/Wemos D1 Mini with RFM69?
    Christoph BlankC Christoph Blank

    Hi there,

    I'd like to get a Wemos D1 Mini running with a RFM69HC, but I have no idea how to do this.

    I've wired it like this:
    MISO > D6
    MOSI > D7
    NSS > D8
    SCK > D5
    DIO0 > D2

    But can anyone tell me how to adapt the code for it ( IRQ etc)?

    Troubleshooting

  • RFM69HC doesn't want to send/receive?
    Christoph BlankC Christoph Blank

    well - the blog post I used for the wiring missed the detail that the RFM69 does not seem to be 5V tolerant (inputs).

    Can anyone tell me:

    a) if it is damaged if the inputs had 5V
    b) how I can adjust the levels, can I do this with resistors or do I need more?

    Troubleshooting

  • RFM69HC doesn't want to send/receive?
    Christoph BlankC Christoph Blank

    Hi there, maybe someone here can help me:

    I've got two RFM69HC 434Mhz, connected to two Arduino Nano 3 clones.

    The code I use for testing is this:
    https://gist.github.com/solars/44b2398e62d07e29314538a70579663f
    (it's from sparkfun: https://learn.sparkfun.com/tutorials/rfm69hcw-hookup-guide/running-the-example-code)

    When I enter something in the serial console it seems to be sending. The LED flashes quickly.
    However, there is nothing received on the other side. If I eneable ACK I just get the 'no ack received' msg.

    Can anyone spot the problem? Is it maybe because I don't have a HCW, any settings wrong?

    Thank you very much

    Troubleshooting
  • Login

  • Don't have an account? Register

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