Skip to content
  • 0 Votes
    9 Posts
    4k Views
    S
    This should work with Domoticz, it's what I intend to use with it. I've received the boards from China and I'm currently working on a version 2 of this board. There are some errors in the design of version 1 that I need to get out. New version will be up shortly.
  • 0 Votes
    1 Posts
    2k Views
    No one has replied
  • 💬 Sensebender Gateway

    OpenHardware.io mysensors gateway samd
    382
    2 Votes
    382 Posts
    152k Views
    M
    I'll update the PDF once I get to my own computer (which should be Sunday evening)
  • 0 Votes
    27 Posts
    9k Views
    m26872M
    @joaoabs said in 💬 My Slim 2AA Battery Node: Thx! Done!
  • 0 Votes
    46 Posts
    17k Views
    G
    When you read the data sheet correctly you can see, that the distance between the pins is different for a AA and AAA battery holder. That`s why I was asking if somebody can recommend a holder that fits.
  • 💬 Easy/Newbie PCB for MySensors

    OpenHardware.io mysensors battery easy newbie pcb mysx
    716
    3 Votes
    716 Posts
    308k Views
    K
    @mickecarlsson , thanks for your answer and help I ordered the NRF24 version So , will cancel it and order RFM69 version Cheers, JC
  • 0 Votes
    3 Posts
    2k Views
    AnticimexA
    @fets So far, I have only built the 5x5 board (but the others should be schematically identical). The only issue I have found so far is that I cannot get the ISP port to work. But I have checked and I have an identical setup on the 1.0 board and that worked, so I suspect the programmer is too weak to drive the net on this one. So it is not a board-issue per se, and might only be an issue on the 5x5 board as routing is the most complex on that one due to the size.
  • 1 Votes
    116 Posts
    27k Views
    K
    @mfalkvidd Yes, that’s the one.
  • 0 Votes
    11 Posts
    13k Views
    SparkmanS
    @michlb1982 A couple of things, you put the device to sleep so while it's asleep, it won't respond to the commands to change the relays. Since you are combining relays and sensors, you need to keep the unit awake and find a different way to send the sensor data occasionally. For the relay status, read the comments in the sketch. You are saving the relay state and then reading that on startup. You can eliminate all of that code and just set the relay to off in the setup section. Cheers Al
  • Servo issues - Weird things happening!!

    Troubleshooting mysensors servo
    5
    0 Votes
    5 Posts
    4k Views
    M
    Just to let you know that I solved the issue. I found a library where you can control the speed and make sure it get to it's position. You can find it here: https://github.com/netlabtoolkit/VarSpeedServo I incorporated it in the Mysensor sketch and it works eventhoug it looks like it only goes like 90 degrees but it's enough for me : #include <MySensor.h> #include <SPI.h> #include <VarSpeedServo.h> // #include <Servo.h> #define SERVO_DIGITAL_OUT_PIN 3 #define SERVO_MIN 0 // Fine tune your servos min. 0-180 #define SERVO_MAX 180 // Fine tune your servos max. 0-180 #define DETACH_DELAY 900 // Tune this to let your movement finish before detaching the servo #define CHILD_ID 10 // Id of the sensor child MySensor gw; MyMessage msg(CHILD_ID, V_DIMMER); VarSpeedServo myservo; // create servo object to control a servo // a maximum of eight servo objects can be created // Servo myservo; // create servo object to control a servo // a maximum of eight servo objects can be created Sensor gw(9,10); unsigned long timeOfLastChange = 0; bool attachedServo = false; void setup() { // Attach method for incoming messages gw.begin(incomingMessage); // Send the sketch version information to the gateway and Controller gw.sendSketchInfo("Servo", "1.0"); // Register all sensors to gw (they will be created as child devices) gw.present(CHILD_ID, S_COVER); // Request last servo state at startup gw.request(CHILD_ID, V_DIMMER); } void loop() { gw.process(); if (attachedServo && millis() - timeOfLastChange > DETACH_DELAY) { myservo.detach(); attachedServo = false; } } void incomingMessage(const MyMessage &message) { myservo.attach(SERVO_DIGITAL_OUT_PIN); attachedServo = true; if (message.type==V_DIMMER) { // This could be M_ACK_VARIABLE or M_SET_VARIABLE int val = message.getInt(); myservo.write(SERVO_MAX + (SERVO_MIN-SERVO_MAX)/100 * val,255,true); // sets the servo position 0-180 // Write some debug info Serial.print("Servo changed. new state: "); Serial.println(val); } else if (message.type==V_UP) { Serial.println("Servo UP command"); myservo.write(SERVO_MIN,255,true); gw.send(msg.set(100)); } else if (message.type==V_DOWN) { Serial.println("Servo DOWN command"); myservo.write(SERVO_MAX,255,true); gw.send(msg.set(0)); } else if (message.type==V_STOP) { Serial.println("Servo STOP command"); myservo.detach(); attachedServo = false; } timeOfLastChange = millis(); }
  • 2 Votes
    92 Posts
    56k Views
    D
    @ricardot said in pimatic-mysensors controller plugin: @Dheeraj, Do you plan to continue to develop this plugin? I will very pleased to see a mysensors button. Thank you! I second this. And also see if we can lose the dependency on serialport 2.0.6 so that we can use Node.js > 4.9.1
  • Yet another MQTT gateway for MySensors :)

    Development mysensors mqtt
    6
    2 Votes
    6 Posts
    5k Views
    K
    @scurb This looks very interesting and my factor now to save me from having to create my own :-). I have been planning to do the same thing (although maybe on a smaller software scale) by writing a simple Python server that would pull serial packets off of a gateway arduino (either running mysensors or something I write myself) and pipe this through MQTT to openHAB. I have two questions: How do you interface with a sensor network? Do you go through a serial connection to read the serial packet format (a,b,c,d)? I see several implementations that put the mqtt client directly on the Arduino, but it seems much cheaper for me to just plug it into a USB port to get a virtual serial port instead of investing in a separate ethernet shield :-) How does an item configurations look like for a switch in openHAB? I'm looking to build a toggle switch which toggles light on or off every time it is activated, and I cannot really understand how to configure the switch to allow this behaviour for an mqtt input. Feel free to take the second question with me directly since this might not be very interesting to the others in the forum :-)

18

Online

11.7k

Users

11.2k

Topics

113.1k

Posts