Skip to content

General Discussion

A place to talk about whateeeever you want
1.5k Topics 14.2k Posts
  • Help make button-sketch sleep.

    6
    0 Votes
    6 Posts
    3k Views
    m26872M
    @Cliff-Karlsson There's a good example in the MySensors lib with sleep and two switches. https://github.com/mysensors/Arduino/blob/master/libraries/MySensors/examples/BinarySwitchSleepSensor/BinarySwitchSleepSensor.ino My adaption of that one to my own need and with one swtich looked like this #include <MySensor.h> #include <SPI.h> #define SKETCH_NAME "BinSwSleepBat" #define SKETCH_VERSION "1-2" #define CHILD_ID 0 #define BUTTON_PIN 3 // Arduino Digital I/O pin for button/reed switch. On Atmega328p (nano and pro mini) D2 and/or D3 are interrupt pins. MySensor mys; MyMessage msg(CHILD_ID, V_TRIPPED); // Change to V_LIGHT if you use S_LIGHT in presentation below int sentValue=2; void setup() { mys.begin(); pinMode(BUTTON_PIN, INPUT); // Setup the buttons digitalWrite(BUTTON_PIN, HIGH); // Activate internal pull-ups mys.sendSketchInfo(SKETCH_NAME, SKETCH_VERSION); mys.present(CHILD_ID, S_DOOR); } void loop() // Loop will iterate on changes on the BUTTON_PINs { mys.sleep(50); // Short delay to allow buttons to properly settle uint8_t val = digitalRead(BUTTON_PIN); if (val != sentValue) { // If value has changed from last transmission, send the updated value mys.send(msg.set(val==HIGH ? 1 : 0)); sentValue = val; } mys.sleep(BUTTON_PIN-2, CHANGE, 0); // Sleep until something happens with the sensor }
  • Question: reading from gateway from Linux

    2
    0 Votes
    2 Posts
    880 Views
    SparkmanS
    @zuru The gateway will dump info on the serial port, so you could write a script or application to parse that. The API info is here: http://www.mysensors.org/download/serial_api_15. Note that the controller also assigns node IDs so you would need to hard code them if the script or app you build does not respond to those requests. Cheers Al
  • This topic is deleted!

    1
    0 Votes
    1 Posts
    5 Views
    No one has replied
  • Sensor database and display

    3
    0 Votes
    3 Posts
    3k Views
    B
    I looked at your recommendations when provided, but was busy with other things so forgot to reply. I now have 3 systems of sensors reporting to the Uno (Blueline power meter reader, Acurite 5n1 weather station, Acurite 592TX temperature sensors (1 currently, but up to 3 channels))and will be adding 1 or more local sensors to it as well (barometric pressure currently, but probably temperature also at a minimum). I have all of this sending data to the RPi via MQTT and am working on optimizing the location for the Uno for best reception/least packet loss. I'm also planning on tracking UPS performance as well as RPi CPU/memory. That being said, I looked into emoncms again this morning and it appears that the data is stored on the cloud somewhere. If so, that's not ideal due to reasons I originally posted. I thought this would be the option I would utilize until I saw that. I've looked at Grafana/influxdb and they look great, but it will take more effort to figure them out. I decided against freeboard since I specificially want plots and not gauges. I considered using rrdtools, but it looks like it's only capable of storing at a single frequency and then purges anything over a certain age (maintains a certain database size and loops to overwrite the oldest data next). There's a number of tutorials/guides, but I haven't found one that's a close enough match to proceed. I have a working HA server at the moment, so I'm leery of installing too much and risk corrupting things. When I do proceed, I'll certainly back up the SD first!
  • Insect night!

    6
    0 Votes
    6 Posts
    2k Views
    OitzuO
    Ahh..That seems to be the "green it" everyone speaking of a few years ago. ;)
  • mega 2560

    3
    0 Votes
    3 Posts
    2k Views
    Andy PepA
    cheers for that sparkman ... i was thinking of trying some sort of 433mhz sniffer to wifi serial setup..and hook up a 70cm coliner antenna to the radio with a bit of filtering and narrow the band down and see what is out there that can be used in a local (mesh) of sensors.. i turned my 70cm ham radio and tuned it down to 433.92 and there is a load of traffic out there .. how many are remote weather sensors same with 315mhz ...could be handy in mapping local climate hotspots and microclimates.....
  • ser2net configuration

    2
    0 Votes
    2 Posts
    2k Views
    N
    Let me UP this thread. mb @tekka could help?
  • Feasibility question regarding Ethernet gateway

    1
    0 Votes
    1 Posts
    717 Views
    No one has replied
  • Problems uploading Serial Gateway on to Arduino Pro Micro

    19
    0 Votes
    19 Posts
    7k Views
    rvendrameR
    Maybe you can post a picture or schematics showing how you are connecting the radio to arduino? You last screenshot is showing only 'failed' for any radio operation.
  • Best Simple Display "Controller"

    10
    0 Votes
    10 Posts
    4k Views
    JohnJ
    @diggs I expect the first usable snapshot builds at the end of this week. They are located at: http://builder.pidome.org/view/Snapshot builds/job/PiDome clients collection/ These clients are build to provide ease of use. Data aggregation and details will stay on the server.
  • Maximum number of nodes to communicate with

    7
    0 Votes
    7 Posts
    4k Views
    BulldogLowellB
    @boozz glad to see you got your head around it.
  • Use arduino Uno as serial gateway/ sensor node

    4
    0 Votes
    4 Posts
    2k Views
    Mohsin HassanM
    Hello, I just started off trying to make a few sensors, Just like you i only had uno's and pro mini and no nano. Read this article and thought everything would be fine, but. So i loaded up the sketch onto an uno and plugged it into my vera loaded the files but Vera Serial port configuration dosent detect anything. Any idea how to get that working?
  • Nano shield from Robotale

    3
    0 Votes
    3 Posts
    3k Views
    greglG
    I bought 5 of these from iTead a long time back.. excellent to get going quickly and for testing.! Highly recommend these! This one has been running on my desk just as a light lux sensor for months without needing any attention. IMG_20150808_135557.jpg
  • Updating to 1.5

    3
    0 Votes
    3 Posts
    1k Views
    W
    Thanks... tried to update. But my serial is a Mega 2560. So it gives an error. Remembers me i found a topic to switch the pins and change them in the sketch.
  • Connect mysensors node to existing alarm system.

    2
    0 Votes
    2 Posts
    1k Views
    G
    I tapped into a newer alarm systems door sensors by measuring the voltage via the analog pins. My alarm still works, but I can also see open/closed via mysensors/openhab.
  • Can I use a Pro mini ATmega128 5V/16M for anything?

    1
    0 Votes
    1 Posts
    820 Views
    No one has replied
  • gps module on gateway for time keeping .

    3
    0 Votes
    3 Posts
    1k Views
    Andy PepA
    ok cool i understand ...and if people for what ever reason need that kind of accurcy then a simple dunio ntp gateway will do the job ..
  • Analog gauges on serial gateway

    1
    0 Votes
    1 Posts
    827 Views
    No one has replied
  • Cooler Controller needed

    9
    0 Votes
    9 Posts
    3k Views
    Moshe LivneM
    @CoolCooler good luck! May the force be with you....
  • Queued send commands?

    2
    0 Votes
    2 Posts
    1k Views
    hekH
    gw.wait is ok. It keeps node awake and process incoming messages. If you sleep the node it becomes more complicated. You could send something to the controller when waking up (and keep the node awake for a short time to receive new commands). And the controller buffers outgoing commands until it receives this "woke-up-message". If you enable ack on outgoing commands from the controller (and the node is sleeping) you won't get and ack message back... which indicates the node is down or is sleeping.

13

Online

11.7k

Users

11.2k

Topics

113.2k

Posts