Navigation

    • Register
    • Login
    • Search
    • OpenHardware.io
    • Categories
    • Recent
    • Tags
    • Popular
    1. Home
    2. mvdarend
    3. Posts
    • Profile
    • Following
    • Followers
    • Topics
    • Posts
    • Best
    • Groups

    Posts made by mvdarend

    • RE: HomeGenie, experience?

      @raptorjr said:

      @hek
      EDIT: I see now that HomeGenie is already a part of the ControllerMatrix, but no link and information in the list. Will see what I can dig out.

      AWI asked me to fill out the Controller Matrix form a few days ago, I hadn;t got around to creating a document yet. The document you made looks like I would have done it I think.

      posted in HomeGenie
      mvdarend
      mvdarend
    • RE: HomeGenie, experience?

      Thanks to the help of @raptorjr HomeGenie will also have support for the Ethernet Gateway. 👍

      posted in HomeGenie
      mvdarend
      mvdarend
    • RE: HomeGenie, experience?

      I've made a small update, S_WATER (V_FLOW, V_VOLUME) have been added. (not tested)

      Supported Devices:
      S_DOOR
      S_MOTION
      S_LIGHT / S_BINARY
      S_TEMP
      S_HUM
      S_POWER *
      S_DISTANCE *
      S_LIGHT_LEVEL
      S_IR *
      S_RGB_LIGHT *
      S_WATER *
      S_GAS *

      I_BATTERY_LEVEL *
      I_ID_REQUEST
      I_INCLUSION_MODE *

      • Not tested
      posted in HomeGenie
      mvdarend
      mvdarend
    • RE: HomeGenie, experience?

      @raptorjr Ah yes, I wasn't very clear there. What I meant is an example of how you are using the sensor, if I have understood correctly, you are doing the following:

      • Measure water temp, if too high (or low) then activate the water valve.
      • Keep water valve open until the desired temperature has been reached.

      But how the water flow sensor fits into this I'm not sure. Is it to make sure the water valve has been closed? Or to give an estimate of how long it will take? something else?

      posted in HomeGenie
      mvdarend
      mvdarend
    • RE: HomeGenie, experience?

      @raptorjr said:

      My current project includes a outdoor fishtank and the ability to regulate the temperature in the tank by filling it up with new water. Need support for waterflow meter and water valve for example.

      Water valve shouldn't be a problem, it's basically on/off? Then you could just assign it as a binary switch and give it a nicer widget icon in HomeGenie.

      For the water flow meter, could you give me an example of what you have made, and how you would like to see it work within HomeGenie. (comparison to the Domoticz solution would be a good help too)

      posted in HomeGenie
      mvdarend
      mvdarend
    • RE: HomeGenie, experience?

      @raptorjr said:

      But I haven't tried HomeGenie so much yet. How is it with automation? Easy/flexible to do? I need some automated way to measure water temperature and open/close water valve accordingly.

      HomeGenie is pretty good for flexible yet powerful automation rules, even if you're not great with coding. That shouldn't be a problem at all.

      posted in HomeGenie
      mvdarend
      mvdarend
    • RE: HomeGenie, experience?

      I've started a new thread on the HomeGenie forum with the first test version, you can find the forum here:

      MySensor v2.0 Serial Gateway for HomeGenie

      Edit: Quick summary

      Supported Devices (tested)
      S_LIGHT / S_BINARY - Actuators also tested
      S_TEMP
      S_HUM
      S_MOTION
      S_LIGHT_LEVEL

      Untested
      S_POWER
      S_DISTANCE
      S_RGB_LIGHT

      posted in HomeGenie
      mvdarend
      mvdarend
    • RE: HomeGenie, experience?

      No, I'm not a developer of HomeGenie, I've helped a little bit, but I'm not the greatest programmer and I think I'd hurt the project more than help 🙂

      It's basically a one man show, although Gene (the Developer) is very open to any help, and quite a few people have chipped in over the years.

      Not sure on the roadmap, what kind of devices are you looking at using?

      posted in HomeGenie
      mvdarend
      mvdarend
    • RE: HomeGenie, experience?

      At the moment there is no MySensors v2.0 support in HomeGenie, but I'm working on a new Serial Gateway.

      At first there will only be limited support (Switches, Temp, Humidity and Motion) but I'm hoping to have more available within a short time.

      The first test version will be available this Friday.

      posted in HomeGenie
      mvdarend
      mvdarend
    • RE: 110v-230v AC to Mysensors PCB board

      @shabba said:

      @mvdarend You discover your issue with the relay?

      Sorry, since that post I tried a few small things. But then I got caught up in other projects/work/family 🙂 and haven't had time time to look into it further.

      posted in Hardware
      mvdarend
      mvdarend
    • RE: Wall mounted 'mood light'

      @AWI said:

      ...and discarded some of the safety measures 😊...

      I see you've got something soldered where the fuse should be, but for the rest I can't see what you've left out. Could you tell us which components you eventually ended up using? (or not using, whatever you prefer :))

      posted in My Project
      mvdarend
      mvdarend
    • RE: 110v-230v AC to Mysensors PCB board

      I spoke too soon... the unit seems to work well, but I hadn't tested if the relay actually switched or not. The status seems to change fine in the serial monitor, but it doesn't seem to be actually switching. I'll have to do some more troubleshooting.

      posted in Hardware
      mvdarend
      mvdarend
    • RE: 110v-230v AC to Mysensors PCB board

      NIce little boards! I received mine yesterday 🙂 after a few hiccups I got it working fairly quickyl.

      Two small things that might need your attention:

      • The holes for fuse2 were too small for the resettable fuses I bought, had to drill them out a tiny bit.
      • I think the LE33 is the wrong way around in the pictures. I kept getting a "Check wires" message in the debugger. After checking a number of things I noticed that the voltage to the radio was too high. After looking at the diagrams I noticed that the LE33 is the wrong way around, after desoldering and turning it around (flat side facing Fuse2) the unit worked as expected.

      For anyone else that bought the 5.5v DC varistors from the given link, double check them before using them. I received a few that were defective, there was absolutely no resistance between the two poles. Causing Fuse2 to get a bit warm 🙂

      IMG_20151009_223249.jpg

      posted in Hardware
      mvdarend
      mvdarend
    • RE: 110v-230v AC to Mysensors PCB board

      @aproxx said:

      @mvdarend I'm not sure if I completely understand what you mean by "pulse switch"..

      Thanks for your reply, a 'pulse switch' is basically a push button type switch like you mentioned. I'll see if I can get it working when the boards come in. (I've already got all the other parts)

      posted in Hardware
      mvdarend
      mvdarend
    • RE: 110v-230v AC to Mysensors PCB board

      @aproxx I'm hoping to receive the boards soon (they were sent almost two weeks ago) and have one question for you.

      I've had a quick look at your example code in the Word document but I'm not familiar with Arduino Debouncing. My question is what kind of switch is the best to use, a standard On/Off switch or a Pulse switch?

      posted in Hardware
      mvdarend
      mvdarend
    • RE: How can i detect 230V (pump active)?

      A non-invasive current sensor?

      http://www.aliexpress.com/item/Free-Shipping-New-Non-invasive-0-100A-AC-Sensor-Split-Core-Current-Transformer-SCT-013-000/32280304935.html

      posted in Hardware
      mvdarend
      mvdarend
    • RE: 110v-230v AC to Mysensors PCB board

      Very nice. 👍 I ordered 10 boards on Saturday, can't wait for them to arrive.

      posted in Hardware
      mvdarend
      mvdarend
    • RE: Is there anyway to have Ethernet Gateway set to DHCP for IP address?

      How about cloning the Ethernet Gateway MAC address on your PC, once it's 'known' to the router you can change your PC MAC address back and plug in your Ethernet Gateway.

      Here's some info on how to do it:
      http://www.howtogeek.com/192173/how-and-why-to-change-your-mac-address-on-windows-linux-and-mac/

      Edit: Added link to more info

      posted in Troubleshooting
      mvdarend
      mvdarend
    • RE: Project boxes for MySensor's nodes and gateway?

      The Custom Enclosure Factory on AliExpress has some nice cases.

      And for a ghetto option, I've got a few old Mentos chewing gum containers around the place 🙂 (This one is stuck to the side of the Central heating unit with magnets. WIN_20150919_11_00_45_Pro.jpg

      posted in Enclosures / 3D Printing
      mvdarend
      mvdarend
    • RE: Hello there. Soil moisture sensor idea.

      @NeverDie Thanks for the explanation, I hadn't thought of dew point. The SHT10 you linked to looks interesting too, although it's way over the OP's budget.

      I don;t know if this has already been linked to, but this seems a nice cheap DIY solution:
      http://www.cheapvegetablegardener.com/how-to-make-cheap-soil-moisture-sensor-2/

      Edit: How about this one? It's still over budget but not too expensive:
      http://www.aliexpress.com/item/Protection-type-temperature-and-humidity-sensor-temperature-and-humidity-sensor-built-in-sht10/1650578403.html?spm=2114.031010208.3.76.Kuscd1&ws_ab_test=201407_2,201444_5,201409_3

      posted in General Discussion
      mvdarend
      mvdarend
    • RE: Hello there. Soil moisture sensor idea.

      @Matt said:

      So the dht is not in soil or water, it is in air only. I am hoping that this airs humidity and therefore my readings will have a direct relationship with the surrounding soils moisture levels....

      I actually thought your idea was really good one until I did some research.

      The main problem with this thinking (I'm not an expert, so don't quote me on this :)) is that Relative humidity is relative. Meaning that for the same amount of moisture in the air, you will get a different humidity reading depending on the temperature of the air.

      Imagine that there is 16 grains* of moisture in your plastic container and it's 27 degrees celsius outside, the relative humidity will be around 10%.

      If the temperature drops to 4 degrees with no change in the moisture level, the relative humidity will have jumped to about 45%.

      • Here is more info:
        http://www.engineeringtoolbox.com/water-vapor-air-d_854.html
      posted in General Discussion
      mvdarend
      mvdarend
    • RE: Safe In-Wall AC to DC Transformers??

      @rvendrame Thanks for the clarification.

      posted in Hardware
      mvdarend
      mvdarend
    • RE: Safe In-Wall AC to DC Transformers??

      @rvendrame said:

      Some more thoughts from the guy who analyzed it:

      "Hi Ricardo

      *It looks safe enough to me, except I want a fuse or fusible resistor before it. The purpose of the fuse is to blow when the module is worn down and maybe shorts.

      Would something like this be OK?
      http://www.aliexpress.com/store/product/100pcs-LOT-PTC-Resettable-Fuses-TRF250-080-250V-0-08A-80MA-PPTC-Polymeric-PTC-PolySwitch-DIP/1653204_32267664975.html

      posted in Hardware
      mvdarend
      mvdarend
    • RE: nMQTT library in HomeGenie

      I think I've found the problem, have submitted a bug report to HomeGenie.

      posted in HomeGenie
      mvdarend
      mvdarend
    • RE: nMQTT library in HomeGenie

      Thanks Hek, I've had a quick look at the code (and also posted in the HomeGenie forums) but haven't been able to find the cause yet.

      I posted here hoping that someone else may have seen this before and could point me in the right direction. I think I'll have to download the nMQTT code to see if I can find it there.

      Thanks.

      posted in HomeGenie
      mvdarend
      mvdarend
    • nMQTT library in HomeGenie

      Hi,

      I'm trying to adapt CptJacks script for HomeGenie to allow for sending messages to the MySensor MQTT Gateway. (Currently it only supports receiving of messages.)

      Problem is that the 'messages' are not arriving at the sensors, the Topic works fine, but the message part doesn't arrive.

      With MQQTLens I can get the message to arrive at my test node, in WireShark the message looks like this:

      0000   02 de ad 00 00 42 c8 f7 33 a4 79 87 08 00 45 00  .....B..3.y...E.
      0010   00 40 24 48 40 00 80 06 54 33 c0 a8 00 02 c0 a8  .@$H@...T3......
      0020   00 ea 54 f6 07 5b 53 74 eb 49 27 43 ef 8c 50 18  ..T..[St.I'C..P.
      0030   40 79 4c 24 00 00 30 16 00 13 4d 79 4d 51 54 54  @yL$..0...MyMQTT
      0040   2f 32 31 2f 31 2f 56 5f 4c 49 47 48 54 31        /21/1/V_LIGHT1
      

      When I send a message through HomeGenie (nMQTT) the message looks like this:

      0000   02 de ad 00 00 42 c8 f7 33 a4 79 87 08 00 45 00  .....B..3.y...E.
      0010   00 42 23 c8 40 00 80 06 54 b1 c0 a8 00 02 c0 a8  .B#.@...T.......
      0020   00 ea 5c 8e 07 5b b7 16 40 1f 2a f4 dd 49 50 18  ..\..[..@.*..IP.
      0030   40 df 97 3c 00 00 32 18 00 13 4d 79 4d 51 54 54  @..<..2...MyMQTT
      0040   2f 32 31 2f 31 2f 56 5f 4c 49 47 48 54 00 01 31  /21/1/V_LIGHT..1
      

      As you can see, there is a small difference, a 00 01 between the topic and message.

      Is there a way that I can change the MySensor code to strip the 00 01 from the message, or is there another way I can accomplish this?

      posted in HomeGenie
      mvdarend
      mvdarend
    • RE: Alternative to RFXcom (433 MHz) ?

      Here is a full description in English:
      http://www.nemcon.nl/blog2/

      posted in Hardware
      mvdarend
      mvdarend
    • RE: Washing machine state sensor

      @Moshe-Livne How is it working so far, have you been able to test it?

      posted in My Project
      mvdarend
      mvdarend
    • RE: Washing machine state sensor

      Created a custom widget in HomeGenie and set it up to send PushBullet notifications. After running for a week I've noticed a few small problems.

      • If I leave the door open and the sun shines on the sensor, it's status changes to 'Running'. Increasing the threshold doesn't help so I'll need to protect the sensor from outside elements better. *
      • The LED on the machine also flashes just before it goes into running mode. I think I'll go with an extra status depending on the previous one (Off -> Flashing = 'stand by', Running -> flashing = 'Idle') or something like that.

      Washing machine.png

      • My 3D printer is ordered and on its way, so I'll be able to create a custom holder. You guys are killing my finances 🙂
      posted in My Project
      mvdarend
      mvdarend
    • RE: Door, Motion and Temperature Sensor

      @CaptainZap said:

      @m26872 No idea how do to that, could you please help me ? 🙂

      Here is an excellent article; How and why to avoid Delay()

      posted in My Project
      mvdarend
      mvdarend
    • RE: Washing machine state sensor

      @kalle, I actually tried the vibration sensor (based on this design) but I could only get it to perform properly by pressing a button to tell the Arduino that the cycle had started, which made it useless for when I wanted the machine to delay the start.
      I tried checking for vibrations as a trigger for 'Machine start' but it would trigger when loading the machine, and again when unloading... basically that was useless.

      @Moshe-Livne, I wanted to try sensing electricity usage, but when profiling the machine I found that when 'off' it was still consuming almost 5 watts, which is not a major problem if you define that as a threshold, but our machine sometimes just sits there doing nothing as far as I can see during the cycle. I was worried it would be a bit of a 'hit and miss' affair as @hek experienced.

      @ServiceXp, I looked at your solution also when browsing the forums and almost went that way. But I didn;t want to open my machine, I know that my wife would not be happy about that. And with three small kids I can't afford to take my time about it, we need the machine every day 🙂

      posted in My Project
      mvdarend
      mvdarend
    • RE: Serial Gateway Board

      Wow, nice.

      I like the LED tunnel idea, only thing I don't like is the colour 😄

      posted in My Project
      mvdarend
      mvdarend
    • RE: Washing machine state sensor

      Thanks for the feedback and code improvement Moshe.

      I'm using a Nano with a simple photocell resistor. I'll post some pictures this evening if you like, it's still a bit ugly though 🙂

      The controller I'm using is HomeGenie.

      posted in My Project
      mvdarend
      mvdarend
    • Washing machine state sensor

      Hi all, I've been lurking a while here and finally made my first Gateway and Sensors last weekend. I couldn't beleive how easy it was to create and setup 👍

      Because my washing machine is up in the attic in a sound insulated room, I can't hear it, so I've created a sensor to detect the washing machine state.

      Basically it works as follows:
      The washing machine has an LED with three states:

      • On - Washing machine is Running
      • Flashing - Washing machine has finished the cycle and is Idle
      • Off - Washing machine is Off

      I have a simple light sensor stuck over the LED on the washing machine and have the following code:

      #include <MySensor.h>
      #include <SPI.h>
      
      #define ID 0
      
      enum WashingMachineState {
      	Off,
      	Running,
      	Idle
      };
      
      // these constants won't change:
      const int sensorPin = 7;    // the pin that the Light Sensor is attached to
      const int interval = 200;
      const int threshold = 300;
      
      const int triggerOnOffCount = 80;
      const int triggerIdleCount = 10;
      
      // Variables will change:
      int FlashValue = 0;
      int flashCounter = 0;   // counter for the number of flashes
      int offCounter = 0;
      int onCounter = 0;
      int lightState = 0;         // current state of the light
      int lastlightState = 0;     // previous state of the light
      
      WashingMachineState machineState;
      WashingMachineState lastMachineState;
      
      MySensor gw;
      MyMessage msg(ID, V_VAR1);
      
      void setup() {
      	gw.begin();
      	gw.present(ID, S_CUSTOM);
      
      	// initialize the button pin as a input:
      	pinMode(sensorPin, INPUT);
      
      	// Set default state
      	machineState = Off;
      	lastMachineState = Off;
      }
      
      
      void loop() {
      	delay(interval);
      
      	readLightStatus();
      
      	if (machineState == Idle && machineState != lastMachineState) {
      		lastMachineState = machineState;
      		// send notification
      		gw.send(msg.set("Idle"));
      	}
      
      	if (machineState == Off && machineState != lastMachineState) {
      		lastMachineState = machineState;
      		// send notification
      		gw.send(msg.set("Off"));
      	}
      
      	if (machineState == Running && machineState != lastMachineState) {
      		lastMachineState = machineState;
      		// send notification
      		gw.send(msg.set("Running"));
      	}
      }
      
      void readLightStatus() {
      	// read the Light sensor input pin:
      	FlashValue = analogRead(sensorPin);
      
      	if (FlashValue > threshold)
      	{
      		// light On
      		lightState = 1;
      	}
      	else
      	{
      		// light off
      		lightState = 0;
      	}
      
      	incrementCounters();
      
      	// save the current state as the last state, 
      	lastlightState = lightState;
      }
      
      void incrementCounters(){
      	if (lightState == 1)
      	{
      		// light On
      		onCounter += 1;
      		offCounter = 0;
                      if (onCounter > triggerOnOffCount) { onCounter = triggerOnOffCount; }
      	}
      	else
      	{
      		// light off
      		offCounter += 1;
      		onCounter = 0;
                      if (offCounter > triggerOnOffCount) { offCounter = triggerOnOffCount; }
      	}
      
      	// compare the lightState to its previous state
      	if (lightState != lastlightState && lightState == 1) {
      		// if the state has changed to On, increment the flash counter
      		flashCounter++;
                      if (flashCounter > triggerIdleCount) { flashCounter = triggerIdleCount; }
      	}
      
      	// 10 Flashes counted, machine is now idle
      	if (flashCounter >= triggerIdleCount && machineState != Idle) {
      		machineState = Idle;
      		offCounter = 0;
      		onCounter = 0;
      	}
      
      	if (onCounter >= triggerOnOffCount && machineState != Running)
      	{
      		machineState = Running;
      		offCounter = 0;
      		flashCounter = 0;
      	}
      
      	if (offCounter >= triggerOnOffCount && machineState != Off)
      	{
      		machineState = Off;
      		onCounter = 0;
      		flashCounter = 0;
      		offCounter = triggerOnOffCount; // don't let the number increment any further
      	}
      
      	//Serial.println("flashCounter: " + String(flashCounter));
      	//Serial.println("onCounter:    " + String(onCounter));
      	//Serial.println("offCounter:   " + String(offCounter));
      
      }
      

      It actually works great, but I've very little experience with Arduino programming (and even less with MySensors) and I'm sure that the code could be much better. Any pointers or tips would be very welcome.

      posted in My Project
      mvdarend
      mvdarend