Skip to content

General Discussion

A place to talk about whateeeever you want
1.5k Topics 14.2k Posts
  • 12V distribution box

    8
    0 Votes
    8 Posts
    3k Views
    A
    I need some help in finding a case for this setup. Here is a list of stuff that goes in it: VA display shown above on the top or side. around 6 DC 2.1mm connectors. All the mysensors circuitry. I will probably be using the myS or slimnode pcb. hall effect sensor module as linked in post above. Still waiting on some of the parts to trickle in so that I can get a better idea of the space I need but I am open to suggestions. -AM
  • Cant get I2C LCD working

    11
    0 Votes
    11 Posts
    5k Views
    GertSandersG
    @y4CdW42Ol8 Try compiling with SDA instead of A4 and SCL instrad of A5 in the pinmode function. This should make the sketch board independant. And then use the correct pins on each board.
  • ESP IOT net

    1
    0 Votes
    1 Posts
    931 Views
    No one has replied
  • Add LF to Serial Gateway text?

    1
    0 Votes
    1 Posts
    710 Views
    No one has replied
  • Project statistics

    1
    0 Votes
    1 Posts
    424 Views
    No one has replied
  • Mosquitto

    11
    0 Votes
    11 Posts
    5k Views
    YveauxY
    @moskovskiy82 can you subscribe and publish something on the pc? Then do the same on the rpi. At least that should work...
  • 0 Votes
    3 Posts
    2k Views
    ChakkieC
    @mfalkvidd Thanks The idea of changing the pulseCount is correct. However I had set the value at the wrong place without realizing the pulseCount is reset at the Void setup() section. // Water Reset pulsecount pulseCountW = oldPulseCountW = 0; // Zonnepanelen Reset pulsecount pulseCountZ = oldPulseCountZ = 0; The solution is Change the 0 to : Value (meter) - Value (Controller) Upload the sketch. wait until the first pulse is sent to the gateway. If successed the controller (domoticz in my case) will show the total value matching the value on the physical meter. Now change the value in the sketch back to 0. (Otherwise each time you reset the sensor or the gateway the value wil be added to the total value.) Upload the sketch to the sensor. You are done. There is no need to Modify the Domoticz database with SQL tool. You will get the value you've just added to the total value in the day value log. If you find this ignoring you can delete this value the next day. This only applies to Energy meter. Do not apply this to the water meter as the result the total value of the water meter will be gone too.
  • Dust sensor GP2Y1010

    4
    0 Votes
    4 Posts
    2k Views
    alexsh1A
    @moskovskiy82 said: GP2Y1010 There are many sketches available for Arduino: http://arduinodev.woofex.net/2012/12/01/standalone-sharp-dust-sensor/ You have to (1) adopt it for MySensors (2) change it according to your needs Good luck
  • MQTT Gateway change controller IP address

    1
    0 Votes
    1 Posts
    566 Views
    No one has replied
  • Your Multi Room Audio System

    3
    3 Votes
    3 Posts
    3k Views
    G
    Very cool stuff you are doing here. I have been messing with my Media Center and ways of getting all this media played easily anywhere whether it is movies, TV shows or music for several years. I also wanted all my media to be stored in a single place and be available not only in the house, but also anywhere I have internet access. Here is most of what the latest version look likes. I currently have two Raspberry Pi running Kodi in my office and Family room. I have a third Raspberry Pi running MySQL to store the common media's meta data in for both media centers. This is great stuff. One of them is my DNLA media server, and I use Kodi to setup the connections to the network shares on my NAS for use in the DNLA server. About 2 years ago I put together the following. I have one of these in the master bedroom and the backyard. They have been working very well. Raspberry Pi HiFiBerry Amp+ A case that works with both of these. Bookshelf speakers And this is how I made it all work. http://blog.scphillips.com/posts/2014/05/playing-music-on-a-raspberry-pi-using-upnp-and-dlna-v3/ [image: 1464925721006-20160602_204436.jpg] The other part of my adventure has been a BubbleUPnP server and BubbleUPnP android app on my phone. The sever brings some additional features. Secure access to my media from the internet. It enables you to create a second OpenHome DNLA render for every one on your network. This lets you queue up your music or videos using your phone and be able to leave to go get some beer during the party and not loose the music. Re-encode on the fly my Blu-Ray quality movie files to a smaller size so I can watch them remotely through via internet. I am right in the middle of my next generation Music rendering adventure. It will be using Chomecast Audio. You are now able to group more then one of these together to be able to play the same music in multiple rooms for very little money. I will be connecting one of these to my stereo in my office and family room. I will be putting something close to the following in the living room, backyard and side yard. The BubbleUPnp app on my phone and the BubbleUPnP server app has added additional features to the Chromcast Audio to make this even better. http://www.amazon.com/DROK-Amplifier-Dual-channel-Bookshelf-Speakers/dp/B0181Z4M4A?ie=UTF8&psc=1&redirect=true&ref_=oh_aui_detailpage_o03_s00 http://www.amazon.com/Yeeco-Waterproof-Converter-Converters-Transformer/dp/B00QTJWRFW?ie=UTF8&psc=1&redirect=true&ref_=oh_aui_detailpage_o00_s01 http://www.amazon.com/Adapter-JACKYLED-Switching-Converter-Transformers/dp/B017CJK4TS?ie=UTF8&psc=1&redirect=true&ref_=oh_aui_detailpage_o00_s00 http://www.amazon.com/Micca-COVO-S-Compact-Bookshelf-Speakers/dp/B00N8265I8?ie=UTF8&psc=1&redirect=true&ref_=oh_aui_detailpage_o05_s00. These will be used for a couple of them. [image: 1464926543733-chromecastmusicamp.jpg] Good luck everyone on your DIY adventures. Glenn
  • Need feedback for correct direction

    1
    0 Votes
    1 Posts
    459 Views
    No one has replied
  • LCD displays

    4
    0 Votes
    4 Posts
    2k Views
    mfalkviddM
    The comments on Youtube link to https://forum.mysensors.org/topic/153/irrigation-controller-up-to-16-valves-with-shift-registers where you'll find a lot of discussion. Happy reading :)
  • Dual Gateway's

    2
    0 Votes
    2 Posts
    995 Views
    T
    You don't need 2 gw to build such a Setup. Simply use the Mqtt persistence addon and set up a persistence rule for everything you want/need in your monitoring. Openhab will push every change of your items to your mqtt broker
  • Buzzer when door opened longer than X seconds

    3
    0 Votes
    3 Posts
    2k Views
    ChakkieC
    @Boots33 Thanks for the help. The main problem was how to set the time when the doors are opened. I have tried several attempts and everytime the timer is reset. Therefore the buzzer will never be triggered because the timer and the current time is always the same. I have solved this problem. The working script is here below: #include <MySensor.h> #include <SPI.h> #include <Bounce2.h> #define CHILD_ID_Koel 31 #define CHILD_ID_Vries 32 #define BUTTON_PIN_Koel 7 // Arduino Digital I/O pin for button/reed switch #define BUTTON_PIN_Vries 8 // Arduino Digital I/O pin for button/reed switch #define INTERRUPT BUTTON_PIN_Koel -2 // Usually the interrupt = pin -2 (on uno/nano anyway) #define INTERRUPT BUTTON_PIN_Vries -2 // Usually the interrupt = pin -2 (on uno/nano anyway) #define buzzPin 2 // I/O-pin from buzzer connects here unsigned long currentMillisKoel; unsigned long currentMillisVries; MySensor gw; Bounce debouncerKoel = Bounce(); Bounce debouncerVries = Bounce(); int oldValueKoel = -1; int oldValueVries = -1; int KoelBuzz = 0; int VriesBuzz = 0; unsigned long DoorDelay = 5000UL; unsigned long KoelTimer = 0UL; unsigned long VriesTimer = 0UL; MyMessage msgKoel(CHILD_ID_Koel, V_TRIPPED); MyMessage msgVries(CHILD_ID_Vries, V_TRIPPED); void setup() { gw.begin(NULL, 204, false, 0); // Setup the button pinMode(BUTTON_PIN_Koel, INPUT); pinMode(BUTTON_PIN_Vries, INPUT); //Buzz pin pinMode(buzzPin, OUTPUT); digitalWrite(buzzPin, HIGH); // Activate internal pull-up digitalWrite(BUTTON_PIN_Koel, HIGH); digitalWrite(BUTTON_PIN_Vries, HIGH); // After setting up the button, setup debouncer debouncerKoel.attach(BUTTON_PIN_Koel); debouncerVries.attach(BUTTON_PIN_Vries); debouncerKoel.interval(5); debouncerVries.interval(5); // Register binary input sensor to gw (they will be created as child devices) // You can use S_DOOR, S_MOTION or S_LIGHT here depending on your usage. // If S_LIGHT is used, remember to update variable type you send in. See "msg" above. gw.present(CHILD_ID_Koel, S_DOOR); gw.present(CHILD_ID_Vries, S_DOOR); } // Check if digital input has changed and send in new value void loop() { // Fridge door script debouncerKoel.update(); // Get the update value int valueKoel = debouncerKoel.read(); if (valueKoel != oldValueKoel) { // Send in the new value gw.send(msgKoel.set(valueKoel == HIGH ? 0 : 1)); // change this value to if NC then 0 : 1; if NO then 1 : 0 oldValueKoel = valueKoel; KoelBuzz = digitalRead(BUTTON_PIN_Koel); Serial.println(KoelBuzz); if (KoelBuzz == LOW) { //Door is open. KoelTimer = millis(); // Set the time. Serial.println(KoelTimer); } } // check how long the doors are opened unsigned long currentMillisKoel = millis(); if ((currentMillisKoel - KoelTimer) >= DoorDelay && KoelBuzz == LOW) { // Serial.println("Counter start"); // Serial.println(KoelTimer); // Serial.println(currentMillisKoel); digitalWrite(buzzPin, KoelBuzz); // Tone ON // Serial.println("Buzzer triggerd"); } // Freezer door script debouncerVries.update(); // Get the update value int valueVries = debouncerVries.read(); if (valueVries != oldValueVries) { // Send in the new value gw.send(msgVries.set(valueVries == HIGH ? 0 : 1)); // change this value to if NC then 0 : 1; if NO then 1 : 0 oldValueVries = valueVries; VriesBuzz = digitalRead(BUTTON_PIN_Vries); Serial.println(VriesBuzz); if (VriesBuzz == LOW) { //Door is open. VriesTimer = millis(); // Set the time. Serial.println(VriesTimer); } } if (VriesBuzz && KoelBuzz == HIGH) { digitalWrite(buzzPin, VriesBuzz); // Tone OFF } // check how long the doors are opened unsigned long currentMillisVries = millis(); if ((currentMillisVries - VriesTimer) >= DoorDelay && VriesBuzz == LOW) { // Serial.println("Counter start"); // Serial.println(VriesTimer); // Serial.println(currentMillisVries); digitalWrite(buzzPin, VriesBuzz); // Tone ON // Serial.println("Buzzer triggerd"); } // Sleep until interrupt comes in on motion sensor. Send update every two minute. // gw.sleep(INTERRUPT,CHANGE, SLEEP_TIME); // Serial.println("sleep"); }
  • Relay and Repeater - Just learning stuff

    4
    0 Votes
    4 Posts
    4k Views
    jl277013J
    Do I need to link/pair the repeater node to the gateway or does it just work when I power it up?
  • Sense if my Kitchen hood is running?

    house ventilation electrical consumer sensor
    6
    0 Votes
    6 Posts
    2k Views
    hugowsH
    What about a vibration sensor? At least in my kitchen, the fans do produce a slight vibration to the metal roof thing. They pretty cheap on Ebay, I must try it myself...
  • Safety first ;-)

    4
    2 Votes
    4 Posts
    1k Views
    YveauxY
    @Oitzu Hehe! Nope, but both were wrapped in huge antistatic bags, one could camp in :joy:
  • Dimensional Sensor

    3
    0 Votes
    3 Posts
    742 Views
    Andres LanzaA
    @parachutesj Thank you so much, I will check it out.
  • 4 channel AC dimer.

    2
    0 Votes
    2 Posts
    2k Views
    AWIA
    @csa02221862 A nice board if you look at the total package. However these are basic triac dimmer circuits (AC) with optocoupler isolation. You need to be aware that the steering circuit (arduino/ raspberry) needs to take care of the zero cross detection and firing of the triacs. It has been discussed a few times on this forum. Basically a circuit like this: [image: 1464201524452-upload-345bd0ae-15a9-4ba8-bea9-6b3ded0d6012] Where the upper part measures the "AC sine wave" (needed only once) and the part below the steering circuit (to be repeated for each channel) Building it with Ailexpress parts should not cost you more than €/$ 1 per channel. But as I said you don't get the complete assembled package)
  • Forum Creation here is nuts

    3
    0 Votes
    3 Posts
    1k Views
    A
    Do you really spend that much time writing responses? if your neck is aching from looking at the box then your screen isn't setup properly.

9

Online

11.8k

Users

11.2k

Topics

113.2k

Posts