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
andredtsA

andredts

@andredts
About
Posts
27
Topics
0
Shares
0
Groups
0
Followers
0
Following
0

Posts

Recent Best Controversial

  • New library to read Arduino VCC supply level without resistors for battery powered sensor nodes that do not use a voltage regulator but connect directly to the batteries ;-)
    andredtsA andredts

    @Nca78 said in New library to read Arduino VCC supply level without resistors for battery powered sensor nodes that do not use a voltage regulator but connect directly to the batteries ;-):

    @andredts said in New library to read Arduino VCC supply level without resistors for battery powered sensor nodes that do not use a voltage regulator but connect directly to the batteries ;-):

    @Yveaux Thanks, that was exactly the insight I was looking, for my door sensor with 2aa battery, your way worked great. For a scene controller with a CR2032 a had to not send also decreases greater then 10%, but hey, 10 steps is more enough.

    For having consistent measurements with a CR2032 you should measure voltage as first action after waking up from sleep.
    I keep the value in a variable and process it after "action" message of the node.

    If possible, run at 1Mhz on internal oscillator so the power consumption of the atmega stays very low (around 1mA instead of 3 at 8MHz/3V).

    Hi, I do read the battery first thing after wake up, my problem was when a had various click too close together. It`s good now that I only send battery values that a 10% higher or lower than my last stored value. I will take a look on the 1Mhz bootloader. Thanks

    Development supply vcc

  • New library to read Arduino VCC supply level without resistors for battery powered sensor nodes that do not use a voltage regulator but connect directly to the batteries ;-)
    andredtsA andredts

    @Yveaux I know about that fluctuation, but for my use in a scene controller I would be happy just to know the battery is low. I have it running with a multi-button, were I have click, duble-click and click and hold, I only check battery at one click, because of its fluctuation, but if you use it more than 4 times e a short period that fluctuation is noted, and that is why a added to the 10% increase a 10% decrease gap on battery sent information. Thanks

    Development supply vcc

  • New library to read Arduino VCC supply level without resistors for battery powered sensor nodes that do not use a voltage regulator but connect directly to the batteries ;-)
    andredtsA andredts

    @Yveaux Thanks, that was exactly the insight I was looking, for my door sensor with 2aa battery, your way worked great. For a scene controller with a CR2032 a had to not send also decreases greater then 10%, but hey, 10 steps is more enough.

    Development supply vcc

  • New library to read Arduino VCC supply level without resistors for battery powered sensor nodes that do not use a voltage regulator but connect directly to the batteries ;-)
    andredtsA andredts

    @Yveaux Hi, thanks for your work. Maybe I´m going over something that was covered before, but I need some help, I´m using this code in a door sensor with 2 aa battery, and reporting if battery changes, when the door opens or closes. My problem is that I always get diferent readings from close to open, so I´m always reporting battery level and using more power than needed. Thanks

    Development supply vcc

  • Upgrading to 2.0 sketch dificulty
    andredtsA andredts

    @Boots33 Thanks, that was exactly what I needed. Synchronizing was a great bonus.

    Troubleshooting

  • Upgrading to 2.0 sketch dificulty
    andredtsA andredts

    @niccodemi

    Hi, I know that this is quite old topic, but only now I´m updating my home from version 1.5.4 to 2.*, most because reability issues. One thing I notice with you skecth is that if by any chance the gateway is not present the nodes can´t be used anymore after a power loss, I mean, one can not use the fisical buttons to switch the relays, because they will not respond. My question is if there is a way to keep the node up with out the gateway, in case it dies?

    Thanks

    Troubleshooting

  • OpenHab and RGB led strip
    andredtsA andredts

    @matt-shepherd Never got the time to do it. Sorry

    OpenHAB

  • openHAB binding
    andredtsA andredts

    @bkl Hi,

    Use this biding from it`s beginning, many thanks again. Just want to know if there is any function like the "ack" as there is on OH2 binding, where gateway re-sends the msg 5 times if it does not hear from the sensor after a command. It´s a killer function to make it more reliable, but I´m not ready for OH2 yet.

    Thanks

    OpenHAB

  • OpenHab and RGB led strip
    andredtsA andredts

    @xefil

    Thanks, I got it working the way it is there, for the Domoticz, on my Openhab. Using 3 separated slides, but now I´m trying to use the color wheel to set the colors with Openhab as the controller.

    OpenHAB

  • OpenHab and RGB led strip
    andredtsA andredts

    @mortommy

    Thanks, It seems great, but I will only control it from OH side. Unfortunately no Ikea on my country. Having that control would be great. If I can´t find anything simpler I will try to adapt that.

    OpenHAB

  • OpenHab and RGB led strip
    andredtsA andredts

    @xefil

    Thanks, take all the time you need, Now I´m using the RGB-3D exemple, I can get it to work on Openhab with 3 separated dimmers. But I can´t get it to recall the values or to use the color wheel.

    OpenHAB

  • OpenHab and RGB led strip
    andredtsA andredts

    @Dave-Dan

    Hi, would you please share the code, arduino, item and rules. I use serial gateway, OH 1.8.3 with bidding.

    Thanks

    OpenHAB

  • openHAB binding
    andredtsA andredts

    @Francois

    Hi, I use {mysensors="12;0;V_STATUS"}. Remember to give your node a ID, because OH does not give one.

    OpenHAB

  • openHAB binding
    andredtsA andredts

    @Pavel-Hrudka

    On my last post I miss lid you, copping your own line, but actually to use raspberry internal serial you have to add to Openhab's start.sh "-Dgnu.io.rxtx.SerialPorts=/dev/ttyAMA0 " before the line with the ".jar" because the serial got to start before you run the biddings.

    Hope it helps.

    OpenHAB

  • openHAB binding
    andredtsA andredts

    @Pavel-Hrudka

    I use RP2 with internal serial connected directly to ATmega328 chip. So it is also a unconventional serial. And for that to work I had to put the line " -Dgnu.io.rxtx.SerialPorts=/dev/ttyMySensorsGateway" on my start.sh file, before the line that has ".jar"

    Hope it helps

    OpenHAB

  • openHAB binding
    andredtsA andredts

    @andredts
    Using this bidding for 15 days, with 3 relay, a Micro Sensebender, Humidity, Motion and Water level (base on dust sensor). And everything is working great.

    Thanks again.

    OpenHAB

  • Sensebender Micro as gateway on raspberry pi
    andredtsA andredts

    @Stric
    Good to know! I don't have this kind of problem because I use a Atmega328 with external 16MHz clock. The Sensebender Micro uses internal clock and run as low as 1MHz, so there is your problem.

    Development

  • openHAB binding
    andredtsA andredts

    @bkl
    Thank you for your great work. Happy to help with what I can.

    Already tested and fully abandoned rules for setting up OpenHab with Mysensors.

    Next I will try a analogic read, based on the dust sensor.

    OpenHAB

  • openHAB binding
    andredtsA andredts

    Hi,

    Today I was testing Motion and Door sensors. Motion worked as expected, but the door sensor only works if it's set in OH as a "switch" item(on and off feedback), if you set it as a "contact"(open/closed) item you get the log: " No item configured for "5;1;V_TRIPPED". I have used the example sketch for the sensor

    OpenHAB

  • openHAB binding
    andredtsA andredts

    @bkl
    Working beautifully. I have three relay and three switches on the arduino, and no matter how fast I press them I got no miss command. Thanks

    I got one bug, but I think it is Openhab's, when I changed the item file with Openhab running and the switch in the user interface got inverted ON-OFF and OFF-ON.

    OpenHAB
  • Login

  • Don't have an account? Register

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