Hardware

All about hardware or hardware related things.

After the summerbreak let’s make again ;)

The summertime has passed and new projects are coming up!

That’s a water valve in my cellar for the garden irrigation. I’ve had the problem that somebody opened the outside faucet at night 2 times this summer. Damn idiot!! (sorry …^^) To avoid abuse I now open the valve with the green lever before watering, but I now need to go down to the cellar and open the valve by hand – that’s really annoying!

2016-09-28-15-55-10

Some weeks ago I was recycling an old washing machine and examined a solenoid valve at the water inlet.
I was inspired and ordered a solenoid valve with water flow sensor at aliexpress. Here’s what it actually looks like :

2016-09-28-16-03-36

Not really finished yet – still need to connect to an Wemos D1mini ESP chip with ESPimatic – I really love it 😉
For switching the valve I will use a 5V relais. ESPimatic has a kWh pulse counter. I will try to hijack this for the water flow sensor. I just want to know when water is flowing at daytime and notice me via pushover, I do not need to know the amount of water that went through the pipe, just a flow/stop (true/false boolean) is good enough. At night the solenoid valve will shut the water connection via pimatic rule. Well, and of course a temp sensor in the cellar is a must have when using ESPimatic isn’t it 😉

Well that’s all for now.
Hopefully I can finish this project within the next days.

Boring Sunday …

… well, let’s do something useful and automatise something!
Hey, there’s a led bird thing and a led stripe in our pergola. Hehe … fire away !!

2016-05-29 19.52.03

Since I am a big ESPimatic fan, I set it up with the wemos D1 mini and a 2x 5v relay. Fortunately I had a little enclosure lying around with the inside diameters of 6x9cm. I cut a mounting plate out of some Plexiglas where I fixed the wemos, the relay and a simple power distribution pcb. The advantage of this power distribution pcb – you can easily change broken parts without soldering and you can easily add some other hardware. I like it and it’s so simple 🙂

2016-05-29 15.24.51

Here’s the ready made case already mounted to the wall
2016-05-29 19.44.17 2016-05-29 16.39.43

And of course the finish 😉
2016-05-29 19.48.46

The connected LED stripe was set up very simple – I just used a 12v psu and connected the stripe directly to it. The outlet where the 12v psu is plugged into is switched with one of the relays. The other relay is switching 3v3 directly from the wemos for the bird lighting.

2016-05-29 21.55.17

The powering of the wemos is done by a simple 5v 2A psu over a 2.1mm connector on the left side. I decided to not use the USB port for powering, since I use my well working power distributor adapter. On the top of the case I drilled a hole so that I am able to reach the USB port for an emergency case (if a reflash is neccesary).

In pimatic i am having two shell switches, that are talking to the wemos over the ESPimatic api.

    {
       "id": "espimatic_pergola_relais1",
       "name": "Pergola LED Beleuchtung",
       "class": "ShellSwitch",
       "onCommand": "curl --silent --data 'action=relay1&value=on' http://192.168.178.89/api",
       "offCommand": "curl --silent --data 'action=relay1&value=off' http://192.168.178.89/api",
       "getStateCommand": "curl --silent --data 'action=relay1&value=status' http://192.168.178.89/api",
       "interval": 60000
     },
     {
       "id": "espimatic_pergola_relais2",
       "name": "Pergola LED Vögel",
       "class": "ShellSwitch",
       "onCommand": "curl --silent --data 'action=relay2&value=on' http://192.168.178.89/api",
       "offCommand": "curl --silent --data 'action=relay2&value=off' http://192.168.178.89/api",
       "getStateCommand": "curl --silent --data 'action=relay2&value=status' http://192.168.178.89/api",
       "interval": 60000
     },

On the pimatic gui it looks like that :

Espimatic-Pergola2

Thinking of using the analog port of the wemos for some kind of rain detection sensor.
Maybe some day …

Cheers

Chris